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.001162/0.001162, allocations: 110.9 kB / 17.75 MB, free: 5.332 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.001152/0.001152, allocations: 190.6 kB / 18.68 MB, free: 4.41 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.289/1.289, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1721/0.1721, allocations: 38.03 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 67.89 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2717, allocations: 58.06 MB / 0.5048 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007309/0.279, allocations: 7.423 MB / 0.512 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007105/0.2861, allocations: 5.225 MB / 0.5171 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005635/0.2867, allocations: 31.56 kB / 0.5172 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01098/0.2977, allocations: 5.746 MB / 0.5228 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002029/0.2998, allocations: 0.6886 MB / 0.5234 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001389/0.3012, allocations: 0.5135 MB / 0.5239 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00369/0.3049, allocations: 2.632 MB / 0.5265 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00165/0.3065, allocations: 1.355 MB / 0.5278 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001173/0.3077, allocations: 0.794 MB / 0.5286 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001028/0.3088, allocations: 0.9273 MB / 0.5295 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002132/0.309, allocations: 144.5 kB / 0.5297 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001198/0.3102, allocations: 0.6665 MB / 0.5303 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005871/0.3108, allocations: 0.652 MB / 0.5309 GB, free: 9.375 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007901/0.3116, allocations: 0.753 MB / 0.5317 GB, free: 8.848 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002264/0.3139, allocations: 2.209 MB / 0.5338 GB, free: 7.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3139, allocations: 0 / 0.5338 GB, free: 7.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3139, allocations: 0.875 kB / 0.5338 GB, free: 7.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.328e-05/0.3139, allocations: 0 / 0.5338 GB, free: 7.32 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.004032/0.318, allocations: 1.947 MB / 0.5357 GB, free: 5.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.318, allocations: 12.36 kB / 0.5358 GB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006659/0.3187, allocations: 176.3 kB / 0.5359 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001988/0.3207, allocations: 1.049 MB / 0.5369 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.3208, allocations: 178.2 kB / 0.5371 GB, free: 4.879 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002192/0.3211, allocations: 118.3 kB / 0.5372 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002985/0.3241, allocations: 1.864 MB / 0.5391 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.248e-05/0.3241, allocations: 6.688 kB / 0.5391 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.3243, allocations: 45.61 kB / 0.5391 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002782/0.3245, allocations: 121.9 kB / 0.5392 GB, free: 3.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00266/0.3272, allocations: 1.606 MB / 0.5408 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007986/0.3352, allocations: 5.719 MB / 0.5464 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002364/0.3376, allocations: 1.192 MB / 0.5475 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001395/0.339, allocations: 0.7386 MB / 0.5483 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.735e-05/0.3391, allocations: 20.92 kB / 0.5483 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001672/0.3408, allocations: 0.9871 MB / 0.5492 GB, free: 10.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=116): time 3.056e-06/0.3408, allocations: 0 / 0.5492 GB, free: 10.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=119): time 0.009318/0.3501, allocations: 4.673 MB / 0.5538 GB, free: 5.809 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.3502, allocations: 123.8 kB / 0.5539 GB, free: 5.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009596/0.3511, allocations: 0.782 MB / 0.5547 GB, free: 4.863 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001005/0.3513, allocations: 57.7 kB / 0.5547 GB, free: 4.801 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003802/0.3516, allocations: 0.5037 MB / 0.5552 GB, free: 4.289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003479/0.352, allocations: 406.3 kB / 0.5556 GB, free: 3.887 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003848/0.3524, allocations: 246.8 kB / 0.5559 GB, free: 3.641 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.3526, allocations: 422.7 kB / 0.5563 GB, free: 3.219 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.3536, allocations: 0.6904 MB / 0.5569 GB, free: 2.527 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.3548, allocations: 0.9686 MB / 0.5579 GB, free: 1.465 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00217/0.357, allocations: 1.678 MB / 0.5595 GB, free: 15.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.357, allocations: 0 / 0.5595 GB, free: 15.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003876/0.3609, allocations: 2.317 MB / 0.5618 GB, free: 13.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.166e-05/0.361, allocations: 65.67 kB / 0.5618 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.361, allocations: 11.98 kB / 0.5619 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.3623, allocations: 413.6 kB / 0.5622 GB, free: 12.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008209/0.3631, allocations: 223.5 kB / 0.5625 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007962/0.3711, allocations: 6.243 MB / 0.5686 GB, free: 6.094 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009428/0.3721, allocations: 95.89 kB / 0.5687 GB, free: 6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/0.3722, allocations: 87.88 kB / 0.5687 GB, free: 5.914 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.0007433/0.373, allocations: 457.3 kB / 0.5692 GB, free: 5.457 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.3732, allocations: 110.7 kB / 0.5693 GB, free: 5.348 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003887/0.3771, allocations: 1.954 MB / 0.5712 GB, free: 3.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.3772, allocations: 3.984 kB / 0.5712 GB, free: 3.336 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.3772, allocations: 4 kB / 0.5712 GB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006552/0.3778, allocations: 315.6 kB / 0.5715 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002588/0.3781, allocations: 95.88 kB / 0.5716 GB, free: 2.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000891/0.379, allocations: 115.8 kB / 0.5717 GB, free: 2.797 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.3792, allocations: 76.88 kB / 0.5718 GB, free: 2.719 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004686/0.3839, allocations: 2.029 MB / 0.5737 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004643/0.3885, allocations: 2.734 MB / 0.5764 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001361/0.3899, allocations: 0.7612 MB / 0.5772 GB, free: 13.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000706/0.3906, allocations: 0.538 MB / 0.5777 GB, free: 12.62 MB / 446.1 MB Notification: Performance of Backend: time 3.2e-07/0.3906, allocations: 0 / 0.5777 GB, free: 12.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004583/0.3952, allocations: 2.221 MB / 0.5799 GB, free: 10.53 MB / 446.1 MB Notification: Performance of SimCode: time 0.004688/0.3999, allocations: 3.424 MB / 0.5832 GB, free: 7.059 MB / 446.1 MB Notification: Performance of Templates: time 0.03343/0.4334, allocations: 22.41 MB / 0.6051 GB, free: 0.8086 MB / 462.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