Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 106.9 kB / 17.06 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.00131, allocations: 191 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1776/0.1776, allocations: 38.05 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002334/0.002334, allocations: 55.91 kB / 458.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4779/0.4803, allocations: 58.05 MB / 0.5041 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008192/0.4885, allocations: 6.329 MB / 0.5103 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005688/0.4943, allocations: 2.662 MB / 0.5129 GB, free: 1.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006645/0.4949, allocations: 30.59 kB / 0.5129 GB, free: 1.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.4964, allocations: 342.1 kB / 0.5132 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.4984, allocations: 0.59 MB / 0.5138 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.4995, allocations: 287.9 kB / 0.5141 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001754/0.5012, allocations: 1.199 MB / 0.5153 GB, free: 280 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.5027, allocations: 0.8852 MB / 0.5161 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009281/0.5037, allocations: 492.4 kB / 0.5166 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.5047, allocations: 0.5353 MB / 0.5171 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000219/0.5049, allocations: 86.75 kB / 0.5172 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008481/0.5058, allocations: 326.6 kB / 0.5175 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005039/0.5063, allocations: 341.1 kB / 0.5178 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006013/0.5069, allocations: 456.3 kB / 0.5183 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002343/0.5093, allocations: 1.372 MB / 0.5196 GB, free: 14.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.317e-06/0.5093, allocations: 0 / 0.5196 GB, free: 14.46 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5093, allocations: 4.969 kB / 0.5196 GB, free: 14.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.721e-05/0.5093, allocations: 0 / 0.5196 GB, free: 14.45 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002755/0.5121, allocations: 1.144 MB / 0.5207 GB, free: 13.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.5121, allocations: 9.969 kB / 0.5207 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007028/0.5129, allocations: 131.8 kB / 0.5209 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.5142, allocations: 0.6936 MB / 0.5215 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.5143, allocations: 86.3 kB / 0.5216 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.5144, allocations: 63.78 kB / 0.5217 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001845/0.5163, allocations: 0.9588 MB / 0.5226 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/0.5163, allocations: 3.125 kB / 0.5226 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.603e-05/0.5164, allocations: 25.91 kB / 0.5227 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001359/0.5166, allocations: 61.94 kB / 0.5227 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.518, allocations: 0.7798 MB / 0.5235 GB, free: 12.35 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005532/0.5235, allocations: 3.829 MB / 0.5272 GB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008895/0.5244, allocations: 0.5182 MB / 0.5277 GB, free: 9.332 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004399/0.5249, allocations: 232.8 kB / 0.5279 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.031e-05/0.525, allocations: 20.12 kB / 0.528 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.525, allocations: 33.64 kB / 0.528 GB, free: 9.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.444e-06/0.525, allocations: 0 / 0.528 GB, free: 9.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01078/0.5358, allocations: 3.757 MB / 0.5317 GB, free: 6.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/0.5359, allocations: 116.7 kB / 0.5318 GB, free: 6.703 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008404/0.5368, allocations: 0.5241 MB / 0.5323 GB, free: 6.387 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/0.5368, allocations: 32.39 kB / 0.5323 GB, free: 6.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002934/0.5371, allocations: 395.6 kB / 0.5327 GB, free: 6 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.5373, allocations: 193.8 kB / 0.5329 GB, free: 5.832 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.5375, allocations: 131.7 kB / 0.533 GB, free: 5.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.5377, allocations: 377.1 kB / 0.5334 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004817/0.5382, allocations: 281.7 kB / 0.5336 GB, free: 5.242 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006581/0.5389, allocations: 0.5017 MB / 0.5341 GB, free: 4.793 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.5402, allocations: 0.8475 MB / 0.5349 GB, free: 4.156 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.5402, allocations: 6.594 kB / 0.535 GB, free: 4.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003311/0.5435, allocations: 1.447 MB / 0.5364 GB, free: 3.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.5436, allocations: 8.125 kB / 0.5364 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.5436, allocations: 11.8 kB / 0.5364 GB, free: 3.227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001577/0.5452, allocations: 452.9 kB / 0.5368 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.5456, allocations: 113.4 kB / 0.5369 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/0.557, allocations: 9.131 MB / 0.5458 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009129/0.558, allocations: 29.92 kB / 0.5459 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.447e-05/0.5581, allocations: 33.52 kB / 0.5459 GB, free: 11 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0006766/0.5587, allocations: 305.2 kB / 0.5462 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.5589, allocations: 59.25 kB / 0.5463 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003356/0.5623, allocations: 1.307 MB / 0.5475 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.5623, allocations: 10.84 kB / 0.5475 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.5623, allocations: 3.906 kB / 0.5475 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.5624, allocations: 1.25 kB / 0.5475 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004967/0.5673, allocations: 2.251 MB / 0.5497 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.417e-06/0.5674, allocations: 5.219 kB / 0.5497 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003689/0.5677, allocations: 63.31 kB / 0.5498 GB, free: 8.191 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001386/0.5691, allocations: 437.6 kB / 0.5502 GB, free: 7.754 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.922e-05/0.5692, allocations: 12 kB / 0.5502 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/0.5792, allocations: 8.853 MB / 0.5589 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.5793, allocations: 12.03 kB / 0.5589 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003875/0.5832, allocations: 1.844 MB / 0.5607 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004508/0.5836, allocations: 204.2 kB / 0.5609 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.801e-05/0.5837, allocations: 8.25 kB / 0.5609 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003944/0.5841, allocations: 27.98 kB / 0.5609 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.5844, allocations: 60.47 kB / 0.561 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.551e-05/0.5844, allocations: 19.94 kB / 0.561 GB, free: 12.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005553/0.585, allocations: 374.8 kB / 0.5614 GB, free: 11.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.585, allocations: 0 / 0.5614 GB, free: 11.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001327/0.5863, allocations: 252 kB / 0.5616 GB, free: 11.45 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003386/0.5867, allocations: 127.2 kB / 0.5617 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002353/0.589, allocations: 1.358 MB / 0.563 GB, free: 9.902 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.589, allocations: 0 / 0.563 GB, free: 9.902 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.5905, allocations: 0.9669 MB / 0.564 GB, free: 8.887 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.5916, allocations: 179 kB / 0.5642 GB, free: 8.719 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003017/0.5946, allocations: 1.668 MB / 0.5658 GB, free: 7.008 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008739/0.5955, allocations: 1.048 MB / 0.5668 GB, free: 5.934 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003567/0.5958, allocations: 113.7 kB / 0.5669 GB, free: 5.82 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.596, allocations: 47.42 kB / 0.567 GB, free: 5.773 MB / 430.1 MB Notification: Performance of SimCode: time 8.01e-07/0.596, allocations: 7.875 kB / 0.567 GB, free: 5.766 MB / 430.1 MB Notification: Performance of Templates: time 0.02705/0.623, allocations: 15.11 MB / 0.5817 GB, free: 6.766 MB / 446.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches