Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001066/0.001066, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 60.91 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.09505, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01238/0.1075, allocations: 11.43 MB / 370.3 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1703/0.2778, allocations: 3.589 MB / 373.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001369/0.2792, allocations: 72.2 kB / 374 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001966/0.2812, allocations: 0.8292 MB / 374.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002717/0.2839, allocations: 0.9337 MB / 375.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.285, allocations: 442.4 kB / 376.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004416/0.2895, allocations: 3.755 MB / 380 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003022/0.2925, allocations: 2.871 MB / 382.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002716/0.2952, allocations: 1.656 MB / 384.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003375/0.2986, allocations: 1.968 MB / 386.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009732/0.2996, allocations: 418.2 kB / 386.9 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001618/0.3012, allocations: 0.5089 MB / 387.4 MB, free: 6.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001365/0.3026, allocations: 1.189 MB / 388.6 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003334/0.306, allocations: 1.944 MB / 390.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005538/0.3115, allocations: 5.54 MB / 396 MB, free: 1.074 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3115, allocations: 1.219 kB / 396 MB, free: 1.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3116, allocations: 4 kB / 396 MB, free: 1.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001668/0.3117, allocations: 0 / 396 MB, free: 1.07 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.008022/0.3198, allocations: 3.814 MB / 399.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.3198, allocations: 10.97 kB / 399.9 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009637/0.3208, allocations: 389.7 kB / 400.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003852/0.3246, allocations: 2.062 MB / 402.3 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.3248, allocations: 216.3 kB / 402.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004005/0.3252, allocations: 285.2 kB / 402.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00595/0.3312, allocations: 3.864 MB / 406.7 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.107e-05/0.3312, allocations: 3.984 kB / 406.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002505/0.3315, allocations: 123 kB / 406.8 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001366/0.3317, allocations: 129.5 kB / 406.9 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005733/0.3374, allocations: 3.246 MB / 410.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0188/0.3562, allocations: 11.77 MB / 421.9 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003149/0.3594, allocations: 3.663 MB / 425.6 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.3613, allocations: 1.25 MB / 426.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002522/0.3616, allocations: 129 kB / 427 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.3616, allocations: 45.19 kB / 427 MB, free: 3.617 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.326e-06/0.3616, allocations: 4 kB / 427 MB, free: 3.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01421/0.3758, allocations: 7.321 MB / 434.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.3759, allocations: 68.72 kB / 434.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003092/0.379, allocations: 2.064 MB / 436.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001677/0.3792, allocations: 57.7 kB / 436.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009457/0.3802, allocations: 1.373 MB / 437.9 MB, free: 8.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004293/0.3806, allocations: 0.5068 MB / 438.4 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005697/0.3812, allocations: 347.2 kB / 438.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3813, allocations: 301.1 kB / 439 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.3827, allocations: 0.8705 MB / 439.9 MB, free: 6.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.3843, allocations: 1.374 MB / 441.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/0.3873, allocations: 2.324 MB / 443.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.3873, allocations: 4 kB / 443.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005824/0.3931, allocations: 3.284 MB / 446.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.3932, allocations: 8 kB / 446.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/0.3932, allocations: 16 kB / 446.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002301/0.3955, allocations: 0.8468 MB / 447.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.3967, allocations: 347.4 kB / 448.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01738/0.4141, allocations: 20.58 MB / 468.7 MB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.416, allocations: 95.89 kB / 468.8 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000138/0.4161, allocations: 76 kB / 468.9 MB, free: 7.422 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001587/0.4177, allocations: 0.9456 MB / 469.8 MB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003428/0.4181, allocations: 217.4 kB / 470 MB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004134/0.4222, allocations: 2.629 MB / 472.6 MB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.4223, allocations: 16 kB / 472.7 MB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.4223, allocations: 4 kB / 472.7 MB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/0.4223, allocations: 7.969 kB / 472.7 MB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009517/0.4318, allocations: 5.874 MB / 478.5 MB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.4318, allocations: 4 kB / 478.5 MB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007421/0.4326, allocations: 195.7 kB / 478.7 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001755/0.4344, allocations: 0.7464 MB / 479.5 MB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.4345, allocations: 35.98 kB / 479.5 MB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/0.4489, allocations: 18.15 MB / 497.7 MB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.4489, allocations: 12 kB / 497.7 MB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005428/0.4543, allocations: 3.796 MB / 0.4897 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/0.4556, allocations: 478.3 kB / 0.4902 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003132/0.4559, allocations: 35.94 kB / 0.4902 GB, free: 4.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.457, allocations: 107.9 kB / 0.4903 GB, free: 4.414 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003402/0.4573, allocations: 144.9 kB / 0.4905 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.587e-05/0.4574, allocations: 48.19 kB / 0.4905 GB, free: 4.223 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002003/0.4594, allocations: 1.4 MB / 0.4919 GB, free: 2.801 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4594, allocations: 3.938 kB / 0.4919 GB, free: 2.797 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002266/0.4617, allocations: 0.6562 MB / 0.4925 GB, free: 2.141 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003775/0.4621, allocations: 206.4 kB / 0.4927 GB, free: 1.934 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004485/0.4666, allocations: 3.45 MB / 0.4961 GB, free: 14.35 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4666, allocations: 8.812 kB / 0.4961 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00243/0.469, allocations: 2.208 MB / 0.4982 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002714/0.4718, allocations: 0.6847 MB / 0.4989 GB, free: 11.33 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008486/0.4803, allocations: 5.669 MB / 0.5044 GB, free: 5.594 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001874/0.4822, allocations: 2.292 MB / 0.5067 GB, free: 3.273 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001428/0.4836, allocations: 0.4949 MB / 0.5072 GB, free: 2.773 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003371/0.484, allocations: 139.4 kB / 0.5073 GB, free: 2.637 MB / 430.1 MB Notification: Performance of SimCode: time 4.61e-07/0.484, allocations: 0 / 0.5073 GB, free: 2.637 MB / 430.1 MB Notification: Performance of Templates: time 0.2654/0.7494, allocations: 36.03 MB / 0.5425 GB, free: 138.1 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches