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.001566/0.001566, allocations: 99.45 kB / 17.59 MB, free: 5.562 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.001697/0.001697, allocations: 191.3 kB / 18.52 MB, free: 4.637 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.434/1.434, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1808/0.1808, allocations: 38.03 MB / 330.4 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 61.28 kB / 399.5 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1016, allocations: 58.06 MB / 457.5 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.009918/0.1116, allocations: 7.419 MB / 465 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008657/0.1203, allocations: 5.242 MB / 470.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008553/0.1212, allocations: 27.88 kB / 470.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01116/0.1324, allocations: 5.73 MB / 476 MB, free: 5.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002191/0.1346, allocations: 0.6922 MB / 476.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001501/0.1361, allocations: 0.5146 MB / 477.2 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003952/0.1401, allocations: 2.624 MB / 479.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002187/0.1423, allocations: 1.353 MB / 481.1 MB, free: 388 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00158/0.1439, allocations: 0.7788 MB / 481.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001505/0.1454, allocations: 0.9229 MB / 482.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004323/0.1459, allocations: 144 kB / 483 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001562/0.1474, allocations: 0.7099 MB / 483.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008882/0.1483, allocations: 0.6469 MB / 484.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.1495, allocations: 0.7622 MB / 485.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00226/0.1518, allocations: 2.169 MB / 487.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1518, allocations: 0 / 487.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1518, allocations: 0 / 487.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.371e-05/0.1518, allocations: 0 / 487.3 MB, free: 10.23 MB / 366.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.004036/0.1559, allocations: 1.956 MB / 489.2 MB, free: 8.191 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.1559, allocations: 15.89 kB / 489.2 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006681/0.1566, allocations: 179.1 kB / 489.4 MB, free: 8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001742/0.1583, allocations: 1.007 MB / 490.4 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.1585, allocations: 187.1 kB / 490.6 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001942/0.1587, allocations: 104 kB / 490.7 MB, free: 6.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003015/0.1617, allocations: 1.863 MB / 492.6 MB, free: 4.707 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.1618, allocations: 3.906 kB / 492.6 MB, free: 4.703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.1619, allocations: 51.97 kB / 492.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002969/0.1622, allocations: 121.9 kB / 492.7 MB, free: 4.535 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002917/0.1652, allocations: 1.596 MB / 494.3 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008349/0.1735, allocations: 5.759 MB / 0.4884 GB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002588/0.1762, allocations: 1.199 MB / 0.4895 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001485/0.1777, allocations: 0.7386 MB / 0.4903 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.242e-05/0.1778, allocations: 25.06 kB / 0.4903 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001836/0.1796, allocations: 0.9836 MB / 0.4913 GB, free: 10 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.637e-06/0.1796, allocations: 0 / 0.4913 GB, free: 10 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.01027/0.1899, allocations: 4.661 MB / 0.4958 GB, free: 5.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.239e-05/0.19, allocations: 127.8 kB / 0.4959 GB, free: 5.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001224/0.1913, allocations: 0.7859 MB / 0.4967 GB, free: 4.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.1914, allocations: 53.7 kB / 0.4967 GB, free: 4.203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004648/0.1919, allocations: 0.5076 MB / 0.4972 GB, free: 3.688 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003988/0.1923, allocations: 406.3 kB / 0.4976 GB, free: 3.285 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004291/0.1927, allocations: 250.7 kB / 0.4979 GB, free: 3.035 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.1929, allocations: 422.7 kB / 0.4983 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.194, allocations: 0.6865 MB / 0.4989 GB, free: 1.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.1953, allocations: 0.9725 MB / 0.4999 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1997/0.395, allocations: 1.675 MB / 0.5015 GB, free: 55.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.395, allocations: 1.625 kB / 0.5015 GB, free: 55.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003873/0.3989, allocations: 2.324 MB / 0.5038 GB, free: 55.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.689e-05/0.399, allocations: 62.59 kB / 0.5039 GB, free: 55.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.399, allocations: 10.94 kB / 0.5039 GB, free: 55.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/0.4003, allocations: 417.5 kB / 0.5043 GB, free: 55.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008187/0.4012, allocations: 217.5 kB / 0.5045 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007271/0.4085, allocations: 6.234 MB / 0.5106 GB, free: 50.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.4096, allocations: 95.55 kB / 0.5107 GB, free: 50.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001736/0.4098, allocations: 86.11 kB / 0.5107 GB, free: 50.95 MB / 382.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.0007305/0.4105, allocations: 455.9 kB / 0.5112 GB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002233/0.4107, allocations: 107.4 kB / 0.5113 GB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004204/0.4149, allocations: 1.964 MB / 0.5132 GB, free: 49.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.762e-05/0.415, allocations: 24.59 kB / 0.5132 GB, free: 49.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.415, allocations: 2.688 kB / 0.5132 GB, free: 49.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.4151, allocations: 7.641 kB / 0.5132 GB, free: 49.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00644/0.4215, allocations: 3.423 MB / 0.5166 GB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.4215, allocations: 1.219 kB / 0.5166 GB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009718/0.4225, allocations: 174.6 kB / 0.5167 GB, free: 48.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005452/0.4231, allocations: 163 kB / 0.5169 GB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.4232, allocations: 42.11 kB / 0.5169 GB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003277/0.4265, allocations: 4.813 MB / 0.5216 GB, free: 43.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.123e-06/0.4265, allocations: 0 / 0.5216 GB, free: 43.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005252/0.4318, allocations: 2.886 MB / 0.5244 GB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004834/0.4323, allocations: 306.3 kB / 0.5247 GB, free: 42.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002171/0.4325, allocations: 85.08 kB / 0.5248 GB, free: 42.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009034/0.4334, allocations: 112 kB / 0.5249 GB, free: 42.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001953/0.4336, allocations: 85.91 kB / 0.525 GB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.469e-05/0.4337, allocations: 40.84 kB / 0.525 GB, free: 42.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006014/0.4343, allocations: 0.5398 MB / 0.5256 GB, free: 42.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4343, allocations: 0 / 0.5256 GB, free: 42.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001236/0.4356, allocations: 361.4 kB / 0.5259 GB, free: 42.11 MB / 382.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.001083/0.4367, allocations: 0.5021 MB / 0.5264 GB, free: 41.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004861/0.4415, allocations: 2.974 MB / 0.5293 GB, free: 40.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.4416, allocations: 0 / 0.5293 GB, free: 40.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/0.4436, allocations: 1.223 MB / 0.5305 GB, free: 39.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.4447, allocations: 236.2 kB / 0.5307 GB, free: 39.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004772/0.4495, allocations: 3.54 MB / 0.5342 GB, free: 36.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005974/0.4501, allocations: 1.277 MB / 0.5354 GB, free: 35.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.4505, allocations: 101.2 kB / 0.5355 GB, free: 35.15 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4505, allocations: 0 / 0.5355 GB, free: 35.15 MB / 382.1 MB Notification: Performance of Templates: time 0.02627/0.4768, allocations: 29.47 MB / 0.5643 GB, free: 5.719 MB / 382.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