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.001455/0.001455, allocations: 113.2 kB / 17.06 MB, free: 6.004 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.001492/0.001492, allocations: 198.9 kB / 18 MB, free: 5.082 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.535/1.535, 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.1783/0.1783, allocations: 38.03 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002386/0.002387, allocations: 63.89 kB / 458.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4741/0.4765, allocations: 58.04 MB / 0.5041 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.009065/0.4857, allocations: 5.237 MB / 0.5092 GB, free: 4.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.4968, allocations: 3.96 MB / 0.5131 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001142/0.498, allocations: 19.34 kB / 0.5131 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01817/0.5162, allocations: 4.784 MB / 0.5178 GB, free: 44 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002708/0.5189, allocations: 325 kB / 0.5181 GB, free: 15.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.5205, allocations: 215.2 kB / 0.5183 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005378/0.526, allocations: 1.545 MB / 0.5198 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002084/0.5281, allocations: 0.6037 MB / 0.5204 GB, free: 14.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.5296, allocations: 372.6 kB / 0.5207 GB, free: 14.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001519/0.5311, allocations: 402.2 kB / 0.5211 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003002/0.5315, allocations: 56.38 kB / 0.5212 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006086/0.5321, allocations: 70.84 kB / 0.5212 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007781/0.5329, allocations: 258.6 kB / 0.5215 GB, free: 14.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001275/0.5342, allocations: 321.9 kB / 0.5218 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002301/0.5365, allocations: 0.8114 MB / 0.5226 GB, free: 13.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.5366, allocations: 3.938 kB / 0.5226 GB, free: 13.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.5366, allocations: 0 / 0.5226 GB, free: 13.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.482e-05/0.5366, allocations: 0 / 0.5226 GB, free: 13.96 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.00375/0.5404, allocations: 0.8706 MB / 0.5234 GB, free: 13.31 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.233e-05/0.5405, allocations: 13.45 kB / 0.5235 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006603/0.5411, allocations: 72.33 kB / 0.5235 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002418/0.5436, allocations: 0.5618 MB / 0.5241 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.303e-05/0.5437, allocations: 35.22 kB / 0.5241 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002125/0.5439, allocations: 50.83 kB / 0.5242 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.546, allocations: 0.6257 MB / 0.5248 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.672e-05/0.5461, allocations: 3.297 kB / 0.5248 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.618e-05/0.5462, allocations: 19.41 kB / 0.5248 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000237/0.5464, allocations: 52.03 kB / 0.5248 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.548, allocations: 463.4 kB / 0.5253 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006554/0.5546, allocations: 2.506 MB / 0.5277 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009193/0.5555, allocations: 284.1 kB / 0.528 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004055/0.556, allocations: 148.8 kB / 0.5281 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.054e-05/0.556, allocations: 3.344 kB / 0.5281 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001087/0.5562, allocations: 41.66 kB / 0.5282 GB, free: 10.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 5.33e-06/0.5562, allocations: 0 / 0.5282 GB, free: 10.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.005822/0.562, allocations: 1.543 MB / 0.5297 GB, free: 8.922 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.737e-05/0.5621, allocations: 80.67 kB / 0.5298 GB, free: 8.828 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.5633, allocations: 414 kB / 0.5302 GB, free: 8.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.994e-05/0.5634, allocations: 35.08 kB / 0.5302 GB, free: 8.531 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004405/0.5638, allocations: 294.9 kB / 0.5305 GB, free: 8.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002605/0.5641, allocations: 117.5 kB / 0.5306 GB, free: 8.168 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000276/0.5644, allocations: 77.3 kB / 0.5307 GB, free: 8.117 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003181/0.5647, allocations: 362.4 kB / 0.531 GB, free: 7.766 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004924/0.5652, allocations: 130.7 kB / 0.5311 GB, free: 7.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006507/0.5659, allocations: 282 kB / 0.5314 GB, free: 7.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.5671, allocations: 448.4 kB / 0.5318 GB, free: 7.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.5671, allocations: 1.031 kB / 0.5318 GB, free: 7.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.002252/0.5694, allocations: 0.6791 MB / 0.5325 GB, free: 6.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.5694, allocations: 10.69 kB / 0.5325 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.5695, allocations: 4.906 kB / 0.5325 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008552/0.5703, allocations: 159 kB / 0.5327 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005968/0.571, allocations: 69.56 kB / 0.5327 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006129/0.5771, allocations: 3.672 MB / 0.5363 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006495/0.5778, allocations: 19.89 kB / 0.5363 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.727e-05/0.5779, allocations: 19 kB / 0.5364 GB, free: 3.133 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.0006881/0.5786, allocations: 234.9 kB / 0.5366 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002328/0.5788, allocations: 40.66 kB / 0.5366 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/0.5808, allocations: 0.5753 MB / 0.5372 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.5808, allocations: 3.406 kB / 0.5372 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.001262/0.5821, allocations: 493 kB / 0.5376 GB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.5821, allocations: 4.078 kB / 0.5377 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002722/0.5848, allocations: 1 MB / 0.5386 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.5849, allocations: 5.312 kB / 0.5386 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002949/0.5852, allocations: 38.16 kB / 0.5387 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003775/0.5855, allocations: 98.44 kB / 0.5388 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.5856, allocations: 7.219 kB / 0.5388 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00272/0.5883, allocations: 2.024 MB / 0.5407 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5883, allocations: 1.219 kB / 0.5407 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.5898, allocations: 0.6468 MB / 0.5414 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003091/0.5902, allocations: 139.1 kB / 0.5415 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/0.5902, allocations: 7.188 kB / 0.5415 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.5904, allocations: 7.781 kB / 0.5415 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.593e-05/0.5905, allocations: 22.31 kB / 0.5415 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.947e-05/0.5905, allocations: 10.81 kB / 0.5416 GB, free: 14.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005164/0.5911, allocations: 302.1 kB / 0.5418 GB, free: 14.74 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5911, allocations: 0 / 0.5418 GB, free: 14.74 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007831/0.5919, allocations: 118.7 kB / 0.542 GB, free: 14.73 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.0001897/0.5921, allocations: 115.3 kB / 0.5421 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.5935, allocations: 0.6124 MB / 0.5427 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.5935, allocations: 0 / 0.5427 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006316/0.5942, allocations: 311.7 kB / 0.543 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008283/0.595, allocations: 103.1 kB / 0.5431 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002714/0.5977, allocations: 1.112 MB / 0.5442 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000796/0.5986, allocations: 0.9221 MB / 0.5451 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002847/0.5988, allocations: 77.62 kB / 0.5451 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.699e-05/0.599, allocations: 31.84 kB / 0.5452 GB, free: 12.34 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.599, allocations: 0 / 0.5452 GB, free: 12.34 MB / 414.1 MB Notification: Performance of Templates: time 0.01395/0.6129, allocations: 5.823 MB / 0.5508 GB, free: 7.457 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