Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.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.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.1.|power.i.2.|power.i.3.|power.p_av.1.|power.p_av.2.|power.p_av.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.1.|power.i.2.|power.i.3.|power.p_av.1.|power.p_av.2.|power.p_av.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 111.8 kB / 17.74 MB, free: 5.359 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.001375/0.001375, allocations: 181.5 kB / 18.66 MB, free: 4.441 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.378/1.378, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2254/0.2254, allocations: 38.04 MB / 330.6 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 63.89 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3744, allocations: 58.05 MB / 0.5048 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.008958/0.3834, allocations: 7.428 MB / 0.512 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009062/0.3925, allocations: 5.22 MB / 0.5171 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.3938, allocations: 31.62 kB / 0.5172 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01453/0.4083, allocations: 5.745 MB / 0.5228 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002976/0.4113, allocations: 0.6925 MB / 0.5234 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002041/0.4134, allocations: 0.5186 MB / 0.5239 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005117/0.4185, allocations: 2.634 MB / 0.5265 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002941/0.4215, allocations: 1.352 MB / 0.5278 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002049/0.4236, allocations: 0.7965 MB / 0.5286 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001888/0.4255, allocations: 0.9191 MB / 0.5295 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005607/0.4261, allocations: 148.4 kB / 0.5297 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002164/0.4282, allocations: 0.6695 MB / 0.5303 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001417/0.4297, allocations: 0.654 MB / 0.531 GB, free: 9.348 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00186/0.4315, allocations: 0.7482 MB / 0.5317 GB, free: 8.824 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003173/0.4347, allocations: 2.209 MB / 0.5338 GB, free: 7.297 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.4348, allocations: 4 kB / 0.5338 GB, free: 7.293 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4348, allocations: 0 / 0.5338 GB, free: 7.293 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.003e-05/0.4348, allocations: 0 / 0.5338 GB, free: 7.293 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: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.005017/0.4398, allocations: 1.949 MB / 0.5357 GB, free: 5.855 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.4399, allocations: 10.16 kB / 0.5358 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008469/0.4408, allocations: 176.5 kB / 0.5359 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002022/0.4428, allocations: 1.045 MB / 0.5369 GB, free: 4.988 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/0.443, allocations: 184.9 kB / 0.5371 GB, free: 4.848 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002474/0.4433, allocations: 107.6 kB / 0.5372 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003583/0.4469, allocations: 1.868 MB / 0.539 GB, free: 3.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.395e-05/0.4469, allocations: 2.281 kB / 0.5391 GB, free: 3.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.4471, allocations: 41.92 kB / 0.5391 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003387/0.4474, allocations: 129.7 kB / 0.5392 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003012/0.4504, allocations: 1.594 MB / 0.5408 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008886/0.4593, allocations: 5.722 MB / 0.5464 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002509/0.4619, allocations: 1.195 MB / 0.5475 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.4634, allocations: 0.7464 MB / 0.5483 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.239e-05/0.4635, allocations: 13.14 kB / 0.5483 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001919/0.4654, allocations: 0.9806 MB / 0.5492 GB, free: 10.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=116): time 3.316e-06/0.4654, allocations: 4 kB / 0.5492 GB, free: 10.65 MB / 414.1 MB Notification: Performance of matching and sorting (n=119): time 0.01011/0.4756, allocations: 4.668 MB / 0.5538 GB, free: 5.855 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.395e-05/0.4757, allocations: 135.8 kB / 0.5539 GB, free: 5.695 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/0.4768, allocations: 0.7742 MB / 0.5547 GB, free: 4.906 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.4769, allocations: 65.67 kB / 0.5547 GB, free: 4.836 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004461/0.4774, allocations: 0.4998 MB / 0.5552 GB, free: 4.328 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003815/0.4777, allocations: 406.3 kB / 0.5556 GB, free: 3.926 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003901/0.4781, allocations: 250.7 kB / 0.5558 GB, free: 3.676 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.4784, allocations: 418.7 kB / 0.5562 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009904/0.4794, allocations: 0.6943 MB / 0.5569 GB, free: 2.562 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.4805, allocations: 0.9686 MB / 0.5579 GB, free: 1.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002182/0.4827, allocations: 1.678 MB / 0.5595 GB, free: 15.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.4828, allocations: 4 kB / 0.5595 GB, free: 15.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004042/0.4868, allocations: 2.321 MB / 0.5618 GB, free: 13.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.043e-05/0.4869, allocations: 61.67 kB / 0.5618 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/0.4869, allocations: 8 kB / 0.5618 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/0.4882, allocations: 417.4 kB / 0.5622 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008515/0.4891, allocations: 223.5 kB / 0.5625 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008287/0.4974, allocations: 6.241 MB / 0.5686 GB, free: 6.125 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.4988, allocations: 95.91 kB / 0.5686 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001777/0.499, allocations: 83.94 kB / 0.5687 GB, free: 5.949 MB / 430.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: 29 (system.initime,inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 1 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0009171/0.4999, allocations: 465.3 kB / 0.5692 GB, free: 5.484 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003147/0.5002, allocations: 102.7 kB / 0.5693 GB, free: 5.383 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004069/0.5043, allocations: 1.95 MB / 0.5712 GB, free: 3.379 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.61e-05/0.5043, allocations: 35.95 kB / 0.5712 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.5044, allocations: 4 kB / 0.5712 GB, free: 3.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.5044, allocations: 3.984 kB / 0.5712 GB, free: 3.336 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006463/0.5108, allocations: 3.425 MB / 0.5746 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.5109, allocations: 0 / 0.5746 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009799/0.5119, allocations: 167.8 kB / 0.5747 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005506/0.5125, allocations: 158.5 kB / 0.5749 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.5126, allocations: 47.89 kB / 0.5749 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004161/0.5168, allocations: 4.801 MB / 0.5796 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.5168, allocations: 7.969 kB / 0.5796 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005757/0.5226, allocations: 2.88 MB / 0.5824 GB, free: 7.242 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006862/0.5233, allocations: 315.6 kB / 0.5827 GB, free: 6.914 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002587/0.5236, allocations: 87.94 kB / 0.5828 GB, free: 6.828 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000952/0.5245, allocations: 107.8 kB / 0.5829 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.5248, allocations: 76.89 kB / 0.583 GB, free: 6.648 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.754e-05/0.5249, allocations: 43.91 kB / 0.583 GB, free: 6.605 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007637/0.5256, allocations: 0.538 MB / 0.5836 GB, free: 6.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5257, allocations: 0 / 0.5836 GB, free: 6.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00144/0.5271, allocations: 356.1 kB / 0.5839 GB, free: 5.723 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,1,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.001262/0.5284, allocations: 0.5152 MB / 0.5844 GB, free: 5.348 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004365/0.5328, allocations: 2.317 MB / 0.5867 GB, free: 2.988 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.5328, allocations: 0 / 0.5867 GB, free: 2.988 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002413/0.5352, allocations: 1.216 MB / 0.5878 GB, free: 1.738 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.5367, allocations: 254.5 kB / 0.5881 GB, free: 1.488 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006127/0.5429, allocations: 3.51 MB / 0.5915 GB, free: 13.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009561/0.5439, allocations: 1.273 MB / 0.5928 GB, free: 12.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005167/0.5444, allocations: 91.41 kB / 0.5928 GB, free: 12.54 MB / 462.1 MB Notification: Performance of SimCode: time 1.944e-06/0.5444, allocations: 0 / 0.5928 GB, free: 12.54 MB / 462.1 MB Notification: Performance of Templates: time 0.04374/0.5882, allocations: 29.72 MB / 0.6219 GB, free: 14.85 MB / 494.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches