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.0008574/0.0008576, allocations: 92.91 kB / 16.65 MB, free: 6.59 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.001024/0.001024, allocations: 184.1 kB / 17.56 MB, free: 6.203 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.211/1.211, allocations: 223.3 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1664/0.1664, allocations: 38.1 MB / 330.8 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002937, allocations: 8 kB / 400.7 MB, free: 34.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09217/0.09248, allocations: 59.17 MB / 459.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.008876/0.1014, allocations: 8.183 MB / 468.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008246/0.1097, allocations: 5.688 MB / 473.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00086/0.1106, allocations: 51.62 kB / 473.8 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008686/0.1193, allocations: 5.413 MB / 479.2 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001539/0.1208, allocations: 0.646 MB / 479.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001119/0.122, allocations: 481.1 kB / 480.3 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003489/0.1255, allocations: 3.411 MB / 483.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.1273, allocations: 1.36 MB / 485.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009854/0.1282, allocations: 0.6147 MB / 485.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.1296, allocations: 0.8994 MB / 486.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002001/0.1298, allocations: 64 kB / 486.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.1309, allocations: 0.6317 MB / 487.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005838/0.1315, allocations: 0.5649 MB / 487.9 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007377/0.1323, allocations: 0.6779 MB / 488.6 MB, free: 10.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001846/0.1341, allocations: 2.075 MB / 490.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1341, allocations: 4 kB / 490.6 MB, free: 8.172 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1341, allocations: 0 / 490.6 MB, free: 8.172 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.1342, allocations: 4 kB / 490.6 MB, free: 8.168 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.00319/0.1374, allocations: 1.68 MB / 492.3 MB, free: 6.406 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.1374, allocations: 11.97 kB / 492.3 MB, free: 6.395 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005728/0.138, allocations: 179.2 kB / 492.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001546/0.1395, allocations: 1.011 MB / 493.5 MB, free: 5.168 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001644/0.1397, allocations: 187.1 kB / 493.7 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.1399, allocations: 112 kB / 493.8 MB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002906/0.1428, allocations: 1.883 MB / 495.7 MB, free: 2.898 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.856e-05/0.1429, allocations: 11.91 kB / 495.7 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.143, allocations: 43.98 kB / 495.8 MB, free: 2.844 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002816/0.1433, allocations: 125.9 kB / 495.9 MB, free: 2.723 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002678/0.146, allocations: 1.628 MB / 497.5 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007664/0.1537, allocations: 5.771 MB / 0.4915 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002413/0.1561, allocations: 1.246 MB / 0.4927 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001434/0.1576, allocations: 0.7737 MB / 0.4935 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.019e-05/0.1576, allocations: 16.94 kB / 0.4935 GB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001775/0.1594, allocations: 1.009 MB / 0.4945 GB, free: 8.039 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.296e-06/0.1594, allocations: 0 / 0.4945 GB, free: 8.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.009433/0.1689, allocations: 4.778 MB / 0.4991 GB, free: 3.129 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.774e-05/0.169, allocations: 135.7 kB / 0.4993 GB, free: 2.973 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009516/0.1699, allocations: 0.782 MB / 0.5 GB, free: 2.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.757e-05/0.1701, allocations: 57.69 kB / 0.5001 GB, free: 2.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003802/0.1704, allocations: 0.5037 MB / 0.5006 GB, free: 1.605 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003171/0.1708, allocations: 406.3 kB / 0.5009 GB, free: 1.203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.1709, allocations: 121.6 kB / 0.5011 GB, free: 1.078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.1711, allocations: 422.7 kB / 0.5015 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1841/0.3552, allocations: 0.6838 MB / 0.5021 GB, free: 56.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.3567, allocations: 0.9664 MB / 0.5031 GB, free: 56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002048/0.3588, allocations: 1.684 MB / 0.5047 GB, free: 55.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.3588, allocations: 2.906 kB / 0.5047 GB, free: 55.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00365/0.3625, allocations: 2.318 MB / 0.507 GB, free: 54.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.86e-05/0.3626, allocations: 62.33 kB / 0.5071 GB, free: 54.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.3626, allocations: 10.75 kB / 0.5071 GB, free: 54.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.3638, allocations: 425.5 kB / 0.5075 GB, free: 54.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007676/0.3646, allocations: 210 kB / 0.5077 GB, free: 54.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006381/0.371, allocations: 5.701 MB / 0.5132 GB, free: 50.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008756/0.3719, allocations: 99.77 kB / 0.5133 GB, free: 50.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/0.3721, allocations: 92.19 kB / 0.5134 GB, free: 50.82 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.0007557/0.3728, allocations: 465.1 kB / 0.5139 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.373, allocations: 109.1 kB / 0.514 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00388/0.3769, allocations: 1.999 MB / 0.5159 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.602e-05/0.377, allocations: 24.81 kB / 0.5159 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.377, allocations: 10.98 kB / 0.516 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.377, allocations: 9.859 kB / 0.516 GB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006101/0.3831, allocations: 3.471 MB / 0.5193 GB, free: 48.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.3831, allocations: 5.156 kB / 0.5194 GB, free: 48.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000889/0.384, allocations: 175.9 kB / 0.5195 GB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004858/0.3845, allocations: 157.4 kB / 0.5197 GB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.464e-05/0.3846, allocations: 34.31 kB / 0.5197 GB, free: 48.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00279/0.3874, allocations: 4.468 MB / 0.5241 GB, free: 44.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3874, allocations: 0 / 0.5241 GB, free: 44.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0048/0.3922, allocations: 2.965 MB / 0.527 GB, free: 42.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004127/0.3927, allocations: 314.5 kB / 0.5273 GB, free: 42.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.3929, allocations: 87 kB / 0.5273 GB, free: 42.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008631/0.3937, allocations: 129.8 kB / 0.5275 GB, free: 42.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.3939, allocations: 80.08 kB / 0.5275 GB, free: 42.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.762e-05/0.394, allocations: 47.59 kB / 0.5276 GB, free: 42.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000564/0.3946, allocations: 0.5366 MB / 0.5281 GB, free: 42.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3946, allocations: 0 / 0.5281 GB, free: 42.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001123/0.3957, allocations: 360.3 kB / 0.5285 GB, free: 42.04 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.0009648/0.3967, allocations: 0.5094 MB / 0.529 GB, free: 41.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003411/0.4001, allocations: 2.332 MB / 0.5312 GB, free: 40.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4001, allocations: 0 / 0.5312 GB, free: 40.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001791/0.4019, allocations: 1.238 MB / 0.5324 GB, free: 39.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.4031, allocations: 228.3 kB / 0.5327 GB, free: 39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004414/0.4075, allocations: 4.172 MB / 0.5367 GB, free: 34.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005816/0.4081, allocations: 1.281 MB / 0.538 GB, free: 33.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007397/0.4088, allocations: 304.5 kB / 0.5383 GB, free: 33.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.4091, allocations: 87.34 kB / 0.5384 GB, free: 33.1 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4091, allocations: 0 / 0.5384 GB, free: 33.1 MB / 382.1 MB Notification: Performance of Templates: time 0.0229/0.432, allocations: 17.86 MB / 0.5558 GB, free: 15.4 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches