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.001479/0.001479, allocations: 79.75 kB / 21.19 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.001871/0.001871, allocations: 161 kB / 24.56 MB, free: 12 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 1.052/1.052, allocations: 177.1 MB / 205 MB, free: 5.617 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.2504/0.2504, allocations: 29.43 MB / 290.9 MB, free: 2.512 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 1.543e-06/1.543e-06, allocations: 0 / 369.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.409e-05/1.563e-05, allocations: 2.312 kB / 369.7 MB, free: 10.97 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.007285/0.007301, allocations: 6.881 MB / 376.5 MB, free: 4.051 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.006285/0.01359, allocations: 5.211 MB / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005196/0.01411, allocations: 35.69 kB / 381.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007889/0.02199, allocations: 6.541 MB / 388.3 MB, free: 8.234 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001269/0.02326, allocations: 0.7655 MB / 389.1 MB, free: 7.465 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000968/0.02423, allocations: 0.5533 MB / 389.6 MB, free: 6.91 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002431/0.02666, allocations: 2.795 MB / 392.4 MB, free: 4.109 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001096/0.02776, allocations: 1.178 MB / 393.6 MB, free: 2.91 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001136/0.0289, allocations: 1.084 MB / 394.7 MB, free: 1.824 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008754/0.02977, allocations: 0.904 MB / 395.6 MB, free: 0.918 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001871/0.02996, allocations: 144 kB / 395.7 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008332/0.03079, allocations: 0.7175 MB / 396.5 MB, free: 60 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004328/0.03122, allocations: 0.6936 MB / 397.2 MB, free: 15.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004151/0.03164, allocations: 0.534 MB / 397.7 MB, free: 14.83 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001354/0.03299, allocations: 1.604 MB / 399.3 MB, free: 13.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.033, allocations: 0 / 399.3 MB, free: 13.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.033, allocations: 0 / 399.3 MB, free: 13.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.03301, allocations: 0 / 399.3 MB, free: 13.22 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.002129/0.03514, allocations: 2.014 MB / 401.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.03517, allocations: 15.98 kB / 401.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000596/0.03577, allocations: 327.8 kB / 401.6 MB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.03682, allocations: 0.9817 MB / 402.6 MB, free: 9.781 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/0.03697, allocations: 341.3 kB / 403 MB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.0371, allocations: 107.9 kB / 403.1 MB, free: 9.285 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.03841, allocations: 1.161 MB / 404.2 MB, free: 8.023 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.03843, allocations: 3.938 kB / 404.2 MB, free: 8.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.838e-05/0.03851, allocations: 47.97 kB / 404.3 MB, free: 7.973 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001577/0.03867, allocations: 121.9 kB / 404.4 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009101/0.03958, allocations: 0.6088 MB / 405 MB, free: 7.242 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004241/0.04382, allocations: 5.309 MB / 410.3 MB, free: 1.762 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006687/0.04449, allocations: 0.4897 MB / 410.8 MB, free: 1.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003831/0.04487, allocations: 277.9 kB / 411.1 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.712e-05/0.04492, allocations: 24.98 kB / 411.1 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006301/0.04555, allocations: 0.569 MB / 411.7 MB, free: 368 kB / 378.7 MB Notification: Performance of pre-optimization done (n=116): time 2.034e-06/0.04555, allocations: 0 / 411.7 MB, free: 368 kB / 378.7 MB Notification: Performance of matching and sorting (n=119): time 0.003232/0.04878, allocations: 2.411 MB / 414.1 MB, free: 13.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.04883, allocations: 131.7 kB / 414.2 MB, free: 13.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005089/0.04934, allocations: 0.6906 MB / 414.9 MB, free: 13.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.296e-05/0.04941, allocations: 57.7 kB / 414.9 MB, free: 12.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002623/0.04967, allocations: 0.5818 MB / 415.5 MB, free: 12.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.0499, allocations: 432.5 kB / 416 MB, free: 11.97 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.05015, allocations: 252.5 kB / 416.2 MB, free: 11.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.05034, allocations: 0.6132 MB / 416.8 MB, free: 11.09 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004115/0.05075, allocations: 320.8 kB / 417.1 MB, free: 10.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005751/0.05133, allocations: 0.7339 MB / 417.9 MB, free: 9.887 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009125/0.05224, allocations: 0.9801 MB / 418.8 MB, free: 8.762 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.728e-06/0.05224, allocations: 4 kB / 418.8 MB, free: 8.758 MB / 394.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.001782/0.05403, allocations: 1.453 MB / 420.3 MB, free: 7.277 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.633e-05/0.05407, allocations: 61.67 kB / 420.4 MB, free: 7.211 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.05408, allocations: 8 kB / 420.4 MB, free: 7.203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007356/0.05482, allocations: 351.2 kB / 420.7 MB, free: 6.852 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004416/0.05526, allocations: 223.6 kB / 420.9 MB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003684/0.05894, allocations: 5.204 MB / 426.1 MB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.05928, allocations: 87.88 kB / 426.2 MB, free: 1.098 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.404e-05/0.05937, allocations: 87.94 kB / 426.3 MB, free: 1.012 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.0002395/0.05961, allocations: 252.2 kB / 426.5 MB, free: 0.7539 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.05979, allocations: 151.3 kB / 426.7 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/0.06107, allocations: 0.9876 MB / 427.7 MB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-05/0.06109, allocations: 24 kB / 427.7 MB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.06109, allocations: 0 / 427.7 MB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.0611, allocations: 11.98 kB / 427.7 MB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.06353, allocations: 2.066 MB / 429.8 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.06353, allocations: 0 / 429.8 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004642/0.064, allocations: 175.7 kB / 430 MB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000268/0.06426, allocations: 131 kB / 430.1 MB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.51e-05/0.06433, allocations: 43.94 kB / 430.1 MB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002281/0.06661, allocations: 5.455 MB / 435.6 MB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.06661, allocations: 192 / 435.6 MB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/0.06832, allocations: 1.42 MB / 437 MB, free: 5.785 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002577/0.06858, allocations: 219.1 kB / 437.2 MB, free: 5.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.0687, allocations: 87.92 kB / 437.3 MB, free: 5.484 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003232/0.06903, allocations: 79.89 kB / 437.4 MB, free: 5.406 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.06916, allocations: 92.72 kB / 437.5 MB, free: 5.316 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.835e-05/0.06922, allocations: 39.97 kB / 437.5 MB, free: 5.277 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003084/0.06953, allocations: 415 kB / 437.9 MB, free: 4.871 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06953, allocations: 0 / 437.9 MB, free: 4.871 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006453/0.07017, allocations: 367.8 kB / 438.3 MB, free: 4.512 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.0009964/0.07117, allocations: 0.5557 MB / 438.8 MB, free: 4.109 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001582/0.07275, allocations: 1.509 MB / 440.3 MB, free: 2.543 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.07275, allocations: 0 / 440.3 MB, free: 2.543 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008213/0.07357, allocations: 0.9619 MB / 441.3 MB, free: 1.523 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000581/0.07415, allocations: 221.8 kB / 441.5 MB, free: 1.312 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1338/0.208, allocations: 2.598 MB / 444.1 MB, free: 93.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.2082, allocations: 351.7 kB / 444.5 MB, free: 93.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005251/0.2088, allocations: 222.4 kB / 444.7 MB, free: 93.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.2089, allocations: 85.31 kB / 444.8 MB, free: 93.58 MB / 410.7 MB Notification: Performance of SimCode: time 9.92e-07/0.2089, allocations: 0 / 444.8 MB, free: 93.58 MB / 410.7 MB Notification: Performance of Templates: time 0.01827/0.2272, allocations: 18.64 MB / 463.4 MB, free: 92.11 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.034032537136227]