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.001183/0.001183, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001537/0.001537, allocations: 166.2 kB / 24.99 MB, free: 8.793 MB / 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 1.006/1.006, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.2945/0.2945, allocations: 29.41 MB / 291.2 MB, free: 2.5 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.973e-06/1.973e-06, allocations: 0 / 369.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.147e-05/3.344e-05, allocations: 2.312 kB / 369.6 MB, free: 11.33 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.01785/0.01789, allocations: 7.551 MB / 377.2 MB, free: 3.742 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.009507/0.02739, allocations: 5.203 MB / 382.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008618/0.02826, allocations: 35.75 kB / 382.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01069/0.03895, allocations: 6.646 MB / 389.1 MB, free: 7.828 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001755/0.0407, allocations: 0.7693 MB / 389.8 MB, free: 7.055 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00125/0.04195, allocations: 0.5456 MB / 390.4 MB, free: 6.508 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00325/0.0452, allocations: 2.806 MB / 393.2 MB, free: 3.695 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001584/0.04679, allocations: 1.178 MB / 394.3 MB, free: 2.496 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001547/0.04833, allocations: 1.072 MB / 395.4 MB, free: 1.422 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001366/0.0497, allocations: 0.9196 MB / 396.3 MB, free: 0.5 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003655/0.05007, allocations: 148 kB / 396.5 MB, free: 364 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.05129, allocations: 0.702 MB / 397.2 MB, free: 15.65 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006276/0.05192, allocations: 0.7014 MB / 397.9 MB, free: 14.95 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007004/0.05262, allocations: 0.534 MB / 398.4 MB, free: 14.41 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002201/0.05482, allocations: 1.604 MB / 400 MB, free: 12.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.05483, allocations: 3.938 kB / 400 MB, free: 12.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.05483, allocations: 4 kB / 400 MB, free: 12.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.729e-05/0.05487, allocations: 0 / 400 MB, free: 12.8 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.003446/0.05831, allocations: 2.026 MB / 402.1 MB, free: 10.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.05835, allocations: 19.98 kB / 402.1 MB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009479/0.0593, allocations: 319.8 kB / 402.4 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001646/0.06095, allocations: 0.9894 MB / 403.4 MB, free: 9.344 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/0.06117, allocations: 337.3 kB / 403.7 MB, free: 8.957 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002029/0.06137, allocations: 115.9 kB / 403.8 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.06336, allocations: 1.153 MB / 405 MB, free: 7.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.06339, allocations: 4 kB / 405 MB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.06351, allocations: 39.98 kB / 405 MB, free: 7.547 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002474/0.06376, allocations: 125.9 kB / 405.1 MB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/0.06523, allocations: 0.6165 MB / 405.8 MB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006401/0.07163, allocations: 5.316 MB / 411.1 MB, free: 1.316 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008128/0.07245, allocations: 0.4897 MB / 411.6 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004245/0.07287, allocations: 274.2 kB / 411.8 MB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.377e-05/0.07292, allocations: 21 kB / 411.9 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006472/0.07357, allocations: 0.5584 MB / 412.4 MB, free: 15.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=116): time 2.464e-06/0.07357, allocations: 0 / 412.4 MB, free: 15.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=119): time 0.004445/0.07802, allocations: 2.404 MB / 414.8 MB, free: 13.48 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/0.07809, allocations: 127.8 kB / 414.9 MB, free: 13.33 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006066/0.0787, allocations: 0.6867 MB / 415.6 MB, free: 12.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.201e-05/0.07877, allocations: 61.69 kB / 415.7 MB, free: 12.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003636/0.07913, allocations: 0.5817 MB / 416.3 MB, free: 11.97 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/0.07939, allocations: 428.5 kB / 416.7 MB, free: 11.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002726/0.07966, allocations: 260.5 kB / 416.9 MB, free: 11.29 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.07988, allocations: 0.6054 MB / 417.5 MB, free: 10.67 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004515/0.08033, allocations: 332.8 kB / 417.9 MB, free: 10.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006271/0.08095, allocations: 0.7262 MB / 418.6 MB, free: 9.465 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.08197, allocations: 0.984 MB / 419.6 MB, free: 8.336 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.08197, allocations: 7.938 kB / 419.6 MB, free: 8.328 MB / 394.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.001997/0.08397, allocations: 1.446 MB / 421 MB, free: 6.855 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/0.08402, allocations: 61.67 kB / 421.1 MB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.08404, allocations: 8 kB / 421.1 MB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000786/0.08482, allocations: 351.1 kB / 421.4 MB, free: 6.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004632/0.08529, allocations: 223.7 kB / 421.7 MB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004172/0.08946, allocations: 5.238 MB / 426.9 MB, free: 0.7305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005608/0.09002, allocations: 83.91 kB / 427 MB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.09013, allocations: 83.94 kB / 427.1 MB, free: 0.5664 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.0004286/0.09056, allocations: 256.2 kB / 427.3 MB, free: 312 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/0.09078, allocations: 147.3 kB / 427.5 MB, free: 164 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.09226, allocations: 0.9876 MB / 428.4 MB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.757e-05/0.09229, allocations: 24 kB / 428.5 MB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.09229, allocations: 0 / 428.5 MB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.0923, allocations: 11.91 kB / 428.5 MB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003063/0.09537, allocations: 2.07 MB / 430.6 MB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.09537, allocations: 0 / 430.6 MB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005065/0.09588, allocations: 171.7 kB / 430.7 MB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002991/0.09618, allocations: 131 kB / 430.8 MB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.092e-05/0.09625, allocations: 35.95 kB / 430.9 MB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002787/0.09904, allocations: 5.466 MB / 436.4 MB, free: 6.805 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.09904, allocations: 0 / 436.4 MB, free: 6.805 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.1009, allocations: 1.416 MB / 437.8 MB, free: 5.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003076/0.1012, allocations: 219.2 kB / 438 MB, free: 5.125 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.1014, allocations: 83.94 kB / 438.1 MB, free: 5.043 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.1017, allocations: 79.89 kB / 438.1 MB, free: 4.965 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.1019, allocations: 80.84 kB / 438.2 MB, free: 4.887 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.006e-05/0.1019, allocations: 51.89 kB / 438.3 MB, free: 4.836 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003536/0.1023, allocations: 411 kB / 438.7 MB, free: 4.434 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1023, allocations: 0 / 438.7 MB, free: 4.434 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009545/0.1032, allocations: 375.8 kB / 439 MB, free: 4.066 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.001146/0.1044, allocations: 0.5575 MB / 439.6 MB, free: 3.668 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.1063, allocations: 1.496 MB / 441.1 MB, free: 2.113 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1063, allocations: 0 / 441.1 MB, free: 2.113 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008953/0.1072, allocations: 0.9747 MB / 442.1 MB, free: 1.082 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006617/0.1079, allocations: 220.9 kB / 442.3 MB, free: 0.875 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1403/0.2482, allocations: 2.617 MB / 444.9 MB, free: 108.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.2484, allocations: 347.2 kB / 445.2 MB, free: 108.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005456/0.249, allocations: 223 kB / 445.5 MB, free: 108.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.2491, allocations: 88.2 kB / 445.5 MB, free: 108.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.913e-06/0.2491, allocations: 0 / 445.5 MB, free: 108.2 MB / 410.7 MB Notification: Performance of Templates: time 0.02193/0.2711, allocations: 18.03 MB / 463.6 MB, free: 106.8 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: 5.947728120954707]