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.001104/0.001104, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001248/0.001248, allocations: 164.4 kB / 24.82 MB, free: 9.266 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.1/1.1, 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.3329/0.3329, allocations: 29.42 MB / 291.2 MB, free: 2.48 MB / 266.7 MB " [Timeout remaining time 179] 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 3.277e-06/3.277e-06, allocations: 0 / 370.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.852e-05/4.18e-05, allocations: 2.312 kB / 370.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.01157/0.01161, allocations: 6.788 MB / 376.9 MB, free: 3.906 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.02217, allocations: 5.151 MB / 382.1 MB, free: 14.74 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.0235, allocations: 35.75 kB / 382.1 MB, free: 14.7 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01668/0.04018, allocations: 6.565 MB / 388.7 MB, free: 8.125 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002722/0.0429, allocations: 0.7578 MB / 389.4 MB, free: 7.363 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.04434, allocations: 0.5533 MB / 390 MB, free: 6.809 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003526/0.04786, allocations: 2.802 MB / 392.8 MB, free: 4 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001386/0.04925, allocations: 1.182 MB / 394 MB, free: 2.797 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001465/0.05071, allocations: 1.083 MB / 395 MB, free: 1.711 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.05176, allocations: 0.9041 MB / 395.9 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000167/0.05193, allocations: 144 kB / 396.1 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001552/0.05348, allocations: 0.7135 MB / 396.8 MB, free: 15.95 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005044/0.05398, allocations: 0.6936 MB / 397.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004748/0.05446, allocations: 0.5262 MB / 398 MB, free: 14.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001921/0.05638, allocations: 1.597 MB / 399.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.05639, allocations: 4 kB / 399.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.05639, allocations: 0 / 399.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.875e-05/0.05641, allocations: 0 / 399.6 MB, free: 13.12 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.002811/0.05922, allocations: 1.928 MB / 401.5 MB, free: 11.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.05927, allocations: 11.98 kB / 401.6 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007068/0.05998, allocations: 303.8 kB / 401.9 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00141/0.06139, allocations: 0.927 MB / 402.8 MB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.06163, allocations: 341.3 kB / 403.1 MB, free: 9.461 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002145/0.06185, allocations: 107.9 kB / 403.2 MB, free: 9.355 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/0.06367, allocations: 1.067 MB / 404.3 MB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.908e-05/0.06369, allocations: 3.938 kB / 404.3 MB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.697e-05/0.06377, allocations: 40 kB / 404.3 MB, free: 8.145 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001749/0.06395, allocations: 121.9 kB / 404.4 MB, free: 8.027 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006891/0.06464, allocations: 493.4 kB / 404.9 MB, free: 7.535 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00525/0.06989, allocations: 5.168 MB / 410.1 MB, free: 2.195 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007008/0.07059, allocations: 436.8 kB / 410.5 MB, free: 1.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.07093, allocations: 241.4 kB / 410.8 MB, free: 1.508 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.515e-05/0.071, allocations: 17 kB / 410.8 MB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006019/0.0716, allocations: 0.5269 MB / 411.3 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of pre-optimization done (n=116): time 2.705e-06/0.0716, allocations: 4 kB / 411.3 MB, free: 0.9375 MB / 378.7 MB Notification: Performance of matching and sorting (n=119): time 0.003203/0.07481, allocations: 1.887 MB / 413.2 MB, free: 15.01 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/0.07489, allocations: 131.7 kB / 413.3 MB, free: 14.86 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005632/0.07545, allocations: 0.6785 MB / 414 MB, free: 14.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.145e-05/0.07552, allocations: 57.69 kB / 414.1 MB, free: 14.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003526/0.07587, allocations: 0.5894 MB / 414.6 MB, free: 13.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002808/0.07615, allocations: 432.4 kB / 415.1 MB, free: 13.08 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002845/0.07644, allocations: 264.4 kB / 415.3 MB, free: 12.81 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002489/0.07669, allocations: 0.6247 MB / 416 MB, free: 12.17 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.077, allocations: 244.8 kB / 416.2 MB, free: 11.93 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005195/0.07752, allocations: 0.6557 MB / 416.8 MB, free: 11.12 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.07869, allocations: 0.8785 MB / 417.7 MB, free: 10.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.0787, allocations: 0 / 417.7 MB, free: 10.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.001667/0.08036, allocations: 1.297 MB / 419 MB, free: 8.777 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.6e-05/0.08043, allocations: 61.67 kB / 419.1 MB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.08044, allocations: 4 kB / 419.1 MB, free: 8.707 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007486/0.08119, allocations: 331 kB / 419.4 MB, free: 8.375 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004371/0.08163, allocations: 195.7 kB / 419.6 MB, free: 8.184 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004275/0.0859, allocations: 5.036 MB / 424.6 MB, free: 2.922 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006868/0.08659, allocations: 47.92 kB / 424.7 MB, free: 2.875 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.08672, allocations: 87.86 kB / 424.8 MB, free: 2.789 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.0008685/0.08759, allocations: 252.3 kB / 425 MB, free: 2.531 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002666/0.08786, allocations: 147.3 kB / 425.2 MB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001465/0.08932, allocations: 0.8978 MB / 426.1 MB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.032e-05/0.08936, allocations: 31.92 kB / 426.1 MB, free: 1.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.08937, allocations: 8 kB / 426.1 MB, free: 1.422 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.08939, allocations: 3.984 kB / 426.1 MB, free: 1.418 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.09218, allocations: 1.774 MB / 427.9 MB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.09219, allocations: 0 / 427.9 MB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/0.09265, allocations: 155.7 kB / 428 MB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003041/0.09295, allocations: 122.8 kB / 428.1 MB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.294e-05/0.09301, allocations: 36.03 kB / 428.2 MB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/0.09606, allocations: 5.378 MB / 433.6 MB, free: 9.555 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.09607, allocations: 3.938 kB / 433.6 MB, free: 9.551 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.09789, allocations: 1.28 MB / 434.8 MB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003685/0.09826, allocations: 195.1 kB / 435 MB, free: 8.031 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/0.09842, allocations: 79.94 kB / 435.1 MB, free: 7.953 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003202/0.09874, allocations: 51.94 kB / 435.2 MB, free: 7.902 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.09892, allocations: 84.78 kB / 435.2 MB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.316e-05/0.09898, allocations: 31.97 kB / 435.3 MB, free: 7.789 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003917/0.09937, allocations: 394.8 kB / 435.7 MB, free: 7.402 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.09938, allocations: 0 / 435.7 MB, free: 7.402 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001426/0.1008, allocations: 371.8 kB / 436 MB, free: 7.039 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.001371/0.1022, allocations: 0.5581 MB / 436.6 MB, free: 6.633 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002132/0.1043, allocations: 1.369 MB / 438 MB, free: 5.207 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.1043, allocations: 4 kB / 438 MB, free: 5.203 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009483/0.1053, allocations: 0.9225 MB / 438.9 MB, free: 4.223 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008434/0.1061, allocations: 218.1 kB / 439.1 MB, free: 4.016 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004795/0.1109, allocations: 2.571 MB / 441.7 MB, free: 1.395 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.1113, allocations: 349.7 kB / 442 MB, free: 1.027 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006419/0.112, allocations: 135.9 kB / 442.1 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005368/0.1125, allocations: 282.1 kB / 442.4 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of SimCode: time 2.695e-06/0.1125, allocations: 0 / 442.4 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of Templates: time 0.2248/0.3373, allocations: 18.98 MB / 461.4 MB, free: 91.96 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.865348208229989]