Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001348, allocations: 108.8 kB / 17.06 MB, free: 6.023 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.001539/0.001539, allocations: 191 kB / 18 MB, free: 5.109 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.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1793/0.1793, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 63.91 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4354/0.4368, allocations: 58.06 MB / 0.5041 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006733/0.4436, allocations: 5.235 MB / 0.5092 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006269/0.4499, allocations: 3.958 MB / 0.5131 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000607/0.4506, allocations: 15.16 kB / 0.5131 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01098/0.4616, allocations: 4.798 MB / 0.5178 GB, free: 32 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001373/0.463, allocations: 328.1 kB / 0.5181 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007504/0.4637, allocations: 216.5 kB / 0.5183 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002918/0.4667, allocations: 1.548 MB / 0.5198 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00114/0.4678, allocations: 0.5977 MB / 0.5204 GB, free: 14.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007564/0.4686, allocations: 368.7 kB / 0.5207 GB, free: 14.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000679/0.4693, allocations: 409.7 kB / 0.5211 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.4694, allocations: 60.38 kB / 0.5212 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002299/0.4696, allocations: 67.72 kB / 0.5213 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003568/0.47, allocations: 254.3 kB / 0.5215 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004595/0.4705, allocations: 321.4 kB / 0.5218 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.4717, allocations: 0.8141 MB / 0.5226 GB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4717, allocations: 0 / 0.5226 GB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4717, allocations: 1.344 kB / 0.5226 GB, free: 13.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.4717, allocations: 0 / 0.5226 GB, free: 13.95 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.0019/0.4736, allocations: 0.8688 MB / 0.5235 GB, free: 13.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4737, allocations: 12.27 kB / 0.5235 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003512/0.474, allocations: 69.31 kB / 0.5235 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.4753, allocations: 0.5687 MB / 0.5241 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.088e-05/0.4753, allocations: 31.19 kB / 0.5241 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.4754, allocations: 55.31 kB / 0.5242 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.4766, allocations: 0.6292 MB / 0.5248 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.947e-05/0.4767, allocations: 3.656 kB / 0.5248 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.387e-05/0.4767, allocations: 21.06 kB / 0.5248 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001415/0.4769, allocations: 49.09 kB / 0.5249 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009342/0.4778, allocations: 464 kB / 0.5253 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003768/0.4816, allocations: 2.501 MB / 0.5277 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.4821, allocations: 278.4 kB / 0.528 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.4823, allocations: 150.5 kB / 0.5281 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.4824, allocations: 8.016 kB / 0.5282 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.4824, allocations: 32.84 kB / 0.5282 GB, free: 10.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.943e-06/0.4824, allocations: 3.938 kB / 0.5282 GB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.003084/0.4855, allocations: 1.544 MB / 0.5297 GB, free: 8.895 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.377e-05/0.4856, allocations: 80.11 kB / 0.5298 GB, free: 8.801 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006087/0.4862, allocations: 421.9 kB / 0.5302 GB, free: 8.535 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.4862, allocations: 30.86 kB / 0.5302 GB, free: 8.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.4865, allocations: 300.1 kB / 0.5305 GB, free: 8.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.4867, allocations: 116.8 kB / 0.5306 GB, free: 8.133 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.4868, allocations: 81.25 kB / 0.5307 GB, free: 8.078 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.487, allocations: 358.2 kB / 0.531 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.4872, allocations: 130.7 kB / 0.5311 GB, free: 7.668 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003407/0.4876, allocations: 278.3 kB / 0.5314 GB, free: 7.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006397/0.4882, allocations: 448.6 kB / 0.5318 GB, free: 7.066 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.4883, allocations: 1.25 kB / 0.5318 GB, free: 7.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0012/0.4895, allocations: 0.679 MB / 0.5325 GB, free: 6.633 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.4895, allocations: 11.44 kB / 0.5325 GB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.4895, allocations: 4 kB / 0.5325 GB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004872/0.49, allocations: 151.3 kB / 0.5327 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.4903, allocations: 73.56 kB / 0.5327 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003669/0.494, allocations: 3.679 MB / 0.5363 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004297/0.4945, allocations: 19.41 kB / 0.5363 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.855e-05/0.4945, allocations: 19.25 kB / 0.5364 GB, free: 3.098 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004688/0.495, allocations: 234.8 kB / 0.5366 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.745e-05/0.4951, allocations: 40.38 kB / 0.5366 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009915/0.4961, allocations: 0.5759 MB / 0.5372 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.4961, allocations: 3.312 kB / 0.5372 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007597/0.4969, allocations: 488.6 kB / 0.5377 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.4969, allocations: 0.9688 kB / 0.5377 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.4986, allocations: 1.004 MB / 0.5386 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.4987, allocations: 5.109 kB / 0.5386 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002154/0.4989, allocations: 34.3 kB / 0.5387 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002885/0.4992, allocations: 85.75 kB / 0.5388 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.4992, allocations: 6.375 kB / 0.5388 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002004/0.5012, allocations: 2.029 MB / 0.5407 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.5012, allocations: 1.25 kB / 0.5408 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.5023, allocations: 0.6509 MB / 0.5414 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.5025, allocations: 139.1 kB / 0.5415 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.5025, allocations: 7.656 kB / 0.5415 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.5027, allocations: 6.625 kB / 0.5415 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.5028, allocations: 31.5 kB / 0.5416 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.637e-05/0.5028, allocations: 10.77 kB / 0.5416 GB, free: 14.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003963/0.5032, allocations: 301.3 kB / 0.5419 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5032, allocations: 0 / 0.5419 GB, free: 14.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006693/0.5039, allocations: 118.6 kB / 0.542 GB, free: 14.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001488/0.5041, allocations: 111.4 kB / 0.5421 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.5052, allocations: 0.6165 MB / 0.5427 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5053, allocations: 0 / 0.5427 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000512/0.5058, allocations: 303.1 kB / 0.543 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006733/0.5065, allocations: 113.5 kB / 0.5431 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.5087, allocations: 1.122 MB / 0.5442 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007158/0.5094, allocations: 0.9132 MB / 0.5451 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002756/0.5097, allocations: 73.27 kB / 0.5451 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.5098, allocations: 40.42 kB / 0.5452 GB, free: 12.31 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.5098, allocations: 0 / 0.5452 GB, free: 12.31 MB / 414.1 MB Notification: Performance of Templates: time 0.01322/0.523, allocations: 5.698 MB / 0.5507 GB, free: 7.578 MB / 414.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches