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.001078/0.001078, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001089/0.001089, allocations: 172.7 kB / 24.91 MB, free: 9.148 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 0.9931/0.9931, allocations: 177.1 MB / 205.3 MB, free: 5.473 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.2446/0.2446, allocations: 29.42 MB / 291.2 MB, free: 2.469 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.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 2.325e-06/2.325e-06, allocations: 0 / 316.8 MB, free: 12 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.826e-05/4.059e-05, allocations: 4 kB / 316.8 MB, free: 8 kB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007519/0.00756, allocations: 6.818 MB / 323.7 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008652/0.01621, allocations: 5.264 MB / 328.9 MB, free: 3.875 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001128/0.01734, allocations: 39.69 kB / 329 MB, free: 3.836 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01001/0.02735, allocations: 6.385 MB / 335.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002137/0.02948, allocations: 0.7655 MB / 336.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.03086, allocations: 0.5611 MB / 336.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004023/0.03488, allocations: 2.771 MB / 339.5 MB, free: 9.32 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001613/0.0365, allocations: 1.206 MB / 340.7 MB, free: 8.082 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001766/0.03826, allocations: 1.08 MB / 341.7 MB, free: 7 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.03939, allocations: 0.8767 MB / 342.6 MB, free: 6.121 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002249/0.03962, allocations: 144 kB / 342.8 MB, free: 5.98 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001127/0.04074, allocations: 0.7059 MB / 343.5 MB, free: 5.273 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005353/0.04128, allocations: 0.6976 MB / 344.2 MB, free: 4.574 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005957/0.04187, allocations: 0.5339 MB / 344.7 MB, free: 4.039 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003108/0.04498, allocations: 1.597 MB / 346.3 MB, free: 2.438 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.04499, allocations: 0 / 346.3 MB, free: 2.438 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.04499, allocations: 0 / 346.3 MB, free: 2.438 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.28e-05/0.04502, allocations: 4 kB / 346.3 MB, free: 2.434 MB / 314.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.002649/0.04767, allocations: 1.736 MB / 348 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.04771, allocations: 15.98 kB / 348 MB, free: 0.625 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006123/0.04833, allocations: 256.6 kB / 348.3 MB, free: 384 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.04959, allocations: 0.8033 MB / 349.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/0.04978, allocations: 337.3 kB / 349.4 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.04993, allocations: 111.9 kB / 349.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.05107, allocations: 1.028 MB / 350.6 MB, free: 13.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.625e-05/0.0511, allocations: 11.88 kB / 350.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.242e-05/0.05118, allocations: 39.98 kB / 350.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/0.05135, allocations: 117.9 kB / 350.7 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006827/0.05203, allocations: 464.5 kB / 351.2 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004869/0.0569, allocations: 4.044 MB / 355.2 MB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005903/0.05749, allocations: 440 kB / 355.7 MB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.05777, allocations: 197.6 kB / 355.9 MB, free: 8.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.94e-05/0.05783, allocations: 20.94 kB / 355.9 MB, free: 8.453 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005195/0.05835, allocations: 0.5069 MB / 356.4 MB, free: 7.926 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.406e-06/0.05835, allocations: 0 / 356.4 MB, free: 7.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=119): time 0.00287/0.06122, allocations: 1.689 MB / 358.1 MB, free: 6.203 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.06129, allocations: 127.8 kB / 358.2 MB, free: 6.055 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004855/0.06177, allocations: 0.6223 MB / 358.8 MB, free: 5.414 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.868e-05/0.06185, allocations: 49.7 kB / 358.9 MB, free: 5.359 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002814/0.06213, allocations: 454.2 kB / 359.3 MB, free: 4.906 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/0.06236, allocations: 412.4 kB / 359.7 MB, free: 4.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005406/0.0629, allocations: 234.7 kB / 359.9 MB, free: 4.266 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.06303, allocations: 426.5 kB / 360.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002917/0.06332, allocations: 239.8 kB / 360.6 MB, free: 3.602 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004015/0.06372, allocations: 0.5228 MB / 361.1 MB, free: 2.969 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000692/0.06442, allocations: 0.7698 MB / 361.9 MB, free: 2.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.06442, allocations: 4 kB / 361.9 MB, free: 2.086 MB / 330.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.0015/0.06592, allocations: 1.086 MB / 363 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.611e-05/0.066, allocations: 61.67 kB / 363 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/0.06602, allocations: 12 kB / 363 MB, free: 0.8906 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008072/0.06683, allocations: 315.6 kB / 363.4 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004655/0.06729, allocations: 195.7 kB / 363.5 MB, free: 392 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003991/0.07128, allocations: 3.864 MB / 367.4 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007051/0.07199, allocations: 47.98 kB / 367.5 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.07211, allocations: 71.94 kB / 367.5 MB, free: 12.21 MB / 346.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.0004727/0.07258, allocations: 224.2 kB / 367.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002266/0.0728, allocations: 99.91 kB / 367.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.07385, allocations: 0.7357 MB / 368.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.038e-05/0.07388, allocations: 27.98 kB / 368.6 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.07388, allocations: 7.938 kB / 368.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.07389, allocations: 3.984 kB / 368.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.07609, allocations: 1.495 MB / 370.1 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.0761, allocations: 4.031 kB / 370.1 MB, free: 9.539 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/0.07656, allocations: 143.8 kB / 370.3 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002679/0.07682, allocations: 114.9 kB / 370.4 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.498e-05/0.07689, allocations: 31.97 kB / 370.4 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002479/0.07937, allocations: 3.786 MB / 374.2 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.07937, allocations: 0 / 374.2 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.08078, allocations: 1.063 MB / 375.2 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003152/0.08109, allocations: 179.2 kB / 375.4 MB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.08125, allocations: 83.94 kB / 375.5 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.08156, allocations: 43.97 kB / 375.5 MB, free: 3.762 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.08173, allocations: 76.78 kB / 375.6 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.824e-05/0.08179, allocations: 31.97 kB / 375.7 MB, free: 3.656 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002637/0.08205, allocations: 264.5 kB / 375.9 MB, free: 3.398 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.08205, allocations: 0 / 375.9 MB, free: 3.398 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001091/0.08314, allocations: 371.7 kB / 376.3 MB, free: 3.035 MB / 346.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.001437/0.08458, allocations: 0.6786 MB / 377 MB, free: 2.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.08634, allocations: 1.206 MB / 378.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.419e-05/0.08636, allocations: 12.5 kB / 378.2 MB, free: 1.398 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007893/0.08715, allocations: 0.7267 MB / 378.9 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007683/0.08792, allocations: 237 kB / 379.1 MB, free: 408 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003726/0.09165, allocations: 2.324 MB / 381.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.09193, allocations: 341.7 kB / 381.8 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004723/0.09241, allocations: 131.9 kB / 381.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004758/0.09288, allocations: 245.2 kB / 382.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of SimCode: time 1.793e-06/0.09288, allocations: 0 / 382.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of Templates: time 0.02568/0.1186, allocations: 18.99 MB / 401.1 MB, free: 10.55 MB / 378.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: 4.390531976241618]