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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000924/0.000924, allocations: 75.77 kB / 21.18 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009079/0.0009079, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9802/0.9802, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2537/0.2537, allocations: 29.42 MB / 290.9 MB, free: 2.516 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=12177,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.[0-9,]+.|power.p_av.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=12177,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.[0-9,]+.|power.p_av.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 369.6 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.974e-05/2.121e-05, allocations: 6.312 kB / 369.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.006735/0.006756, allocations: 6.87 MB / 376.5 MB, free: 4.082 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00585/0.01261, allocations: 5.212 MB / 381.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004438/0.01305, allocations: 35.69 kB / 381.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00755/0.0206, allocations: 6.424 MB / 388.2 MB, free: 8.379 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001207/0.02181, allocations: 0.7616 MB / 388.9 MB, free: 7.613 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009971/0.0228, allocations: 0.5494 MB / 389.5 MB, free: 7.062 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002131/0.02493, allocations: 2.791 MB / 392.3 MB, free: 4.266 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009564/0.02589, allocations: 1.178 MB / 393.5 MB, free: 3.066 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008432/0.02673, allocations: 1.052 MB / 394.5 MB, free: 2.012 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007933/0.02753, allocations: 0.923 MB / 395.4 MB, free: 1.09 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001584/0.02769, allocations: 148 kB / 395.6 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007957/0.02848, allocations: 0.7098 MB / 396.3 MB, free: 240 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004631/0.02894, allocations: 0.6975 MB / 397 MB, free: 15.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004171/0.02936, allocations: 0.5379 MB / 397.5 MB, free: 15 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001413/0.03078, allocations: 1.612 MB / 399.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.03078, allocations: 0 / 399.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.03078, allocations: 0 / 399.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.03079, allocations: 0 / 399.1 MB, free: 13.38 MB / 378.7 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.0024/0.03319, allocations: 2.033 MB / 401.2 MB, free: 11.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.03324, allocations: 11.98 kB / 401.2 MB, free: 11.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006356/0.03387, allocations: 319.8 kB / 401.5 MB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.03509, allocations: 0.9855 MB / 402.5 MB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.03526, allocations: 345.3 kB / 402.8 MB, free: 9.535 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.0354, allocations: 111.9 kB / 402.9 MB, free: 9.426 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.0367, allocations: 1.153 MB / 404.1 MB, free: 8.172 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.03672, allocations: 7.938 kB / 404.1 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.912e-05/0.0368, allocations: 47.97 kB / 404.1 MB, free: 8.117 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001623/0.03696, allocations: 121.9 kB / 404.3 MB, free: 8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009351/0.03789, allocations: 0.6126 MB / 404.9 MB, free: 7.383 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004702/0.0426, allocations: 5.305 MB / 410.2 MB, free: 1.906 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007106/0.04331, allocations: 0.4936 MB / 410.7 MB, free: 1.391 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004327/0.04374, allocations: 278.2 kB / 410.9 MB, free: 1.109 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.436e-05/0.04381, allocations: 20.98 kB / 411 MB, free: 1.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000669/0.04447, allocations: 0.5584 MB / 411.5 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of pre-optimization done (n=116): time 2.084e-06/0.04448, allocations: 0 / 411.5 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of matching and sorting (n=119): time 0.003616/0.04809, allocations: 2.403 MB / 413.9 MB, free: 14.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.175e-05/0.04815, allocations: 131.7 kB / 414.1 MB, free: 13.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005212/0.04868, allocations: 0.6907 MB / 414.7 MB, free: 13.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.173e-05/0.04874, allocations: 57.72 kB / 414.8 MB, free: 13.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000278/0.04902, allocations: 0.5856 MB / 415.4 MB, free: 12.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.04924, allocations: 432.5 kB / 415.8 MB, free: 12.12 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/0.0495, allocations: 256.5 kB / 416.1 MB, free: 11.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002316/0.04973, allocations: 0.6093 MB / 416.7 MB, free: 11.24 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000417/0.05015, allocations: 324.8 kB / 417 MB, free: 10.92 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005719/0.05072, allocations: 0.7339 MB / 417.7 MB, free: 10.04 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009232/0.05164, allocations: 0.9841 MB / 418.7 MB, free: 8.91 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.05165, allocations: 4 kB / 418.7 MB, free: 8.906 MB / 394.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002051/0.0537, allocations: 1.457 MB / 420.2 MB, free: 7.422 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.415e-05/0.05375, allocations: 61.67 kB / 420.2 MB, free: 7.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.05376, allocations: 8 kB / 420.2 MB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007546/0.05452, allocations: 347.2 kB / 420.6 MB, free: 7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004318/0.05495, allocations: 219.6 kB / 420.8 MB, free: 6.785 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003872/0.05882, allocations: 5.23 MB / 426 MB, free: 1.316 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.05918, allocations: 87.92 kB / 426.1 MB, free: 1.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.05929, allocations: 83.94 kB / 426.2 MB, free: 1.148 MB / 394.7 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.0002758/0.05957, allocations: 248.2 kB / 426.4 MB, free: 0.8945 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.05975, allocations: 143.3 kB / 426.6 MB, free: 0.7539 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001736/0.06149, allocations: 0.9914 MB / 427.6 MB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.753e-05/0.06151, allocations: 31.98 kB / 427.6 MB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.06152, allocations: 8 kB / 427.6 MB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.06153, allocations: 11.91 kB / 427.6 MB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/0.06417, allocations: 2.062 MB / 429.7 MB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.06418, allocations: 4 kB / 429.7 MB, free: 13.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000486/0.06467, allocations: 171.8 kB / 429.8 MB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002775/0.06494, allocations: 127 kB / 430 MB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-05/0.06501, allocations: 43.89 kB / 430 MB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00277/0.06778, allocations: 5.463 MB / 435.5 MB, free: 7.383 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.06778, allocations: 0 / 435.5 MB, free: 7.383 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.06952, allocations: 1.416 MB / 436.9 MB, free: 5.918 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/0.0698, allocations: 215.2 kB / 437.1 MB, free: 5.707 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.06993, allocations: 83.88 kB / 437.2 MB, free: 5.625 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003324/0.07026, allocations: 83.89 kB / 437.3 MB, free: 5.543 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.0704, allocations: 88.78 kB / 437.3 MB, free: 5.457 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.82e-05/0.07046, allocations: 39.97 kB / 437.4 MB, free: 5.418 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003242/0.07078, allocations: 415 kB / 437.8 MB, free: 5.012 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.07078, allocations: 0 / 437.8 MB, free: 5.012 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007587/0.07154, allocations: 375.8 kB / 438.2 MB, free: 4.645 MB / 410.7 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.001128/0.07267, allocations: 0.5514 MB / 438.7 MB, free: 4.246 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.07439, allocations: 1.497 MB / 440.2 MB, free: 2.691 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.07439, allocations: 4 kB / 440.2 MB, free: 2.688 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.07551, allocations: 0.966 MB / 441.2 MB, free: 1.664 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.07614, allocations: 236.2 kB / 441.4 MB, free: 1.445 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1498/0.2259, allocations: 2.588 MB / 444 MB, free: 93.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.2262, allocations: 349.1 kB / 444.3 MB, free: 93.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006002/0.2268, allocations: 224.1 kB / 444.6 MB, free: 93.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.227, allocations: 81.17 kB / 444.6 MB, free: 93.41 MB / 410.7 MB Notification: Performance of SimCode: time 2.174e-06/0.227, allocations: 0 / 444.6 MB, free: 93.41 MB / 410.7 MB Notification: Performance of Templates: time 0.01975/0.2468, allocations: 18.04 MB / 462.7 MB, free: 92.05 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.544947564136237]