Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.001878/0.001878, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.00232/0.00232, allocations: 211.5 kB / 24.48 MB, free: 3.938 MB / 14.72 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.449/1.449, allocations: 230.6 MB / 258.2 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] 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.1846/0.1846, allocations: 38.56 MB / 353.2 MB, free: 12.3 MB / 286.1 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_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002169/0.002169, allocations: 67.91 kB / 493.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.362/0.3641, allocations: 62.47 MB / 0.5432 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.0133/0.3775, allocations: 5.511 MB / 0.5485 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01258/0.39, allocations: 4.092 MB / 0.5525 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006478/0.3907, allocations: 27.97 kB / 0.5526 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01647/0.4071, allocations: 5.425 MB / 0.5579 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001272/0.4084, allocations: 438 kB / 0.5583 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007209/0.4091, allocations: 283.5 kB / 0.5586 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002491/0.4116, allocations: 1.801 MB / 0.5603 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009028/0.4125, allocations: 0.622 MB / 0.5609 GB, free: 2.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000714/0.4132, allocations: 498.4 kB / 0.5614 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000771/0.414, allocations: 0.5059 MB / 0.5619 GB, free: 1.012 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.4141, allocations: 72 kB / 0.562 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003316/0.4145, allocations: 147.8 kB / 0.5621 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003448/0.4148, allocations: 335.1 kB / 0.5624 GB, free: 480 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003752/0.4152, allocations: 318.6 kB / 0.5627 GB, free: 160 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.4164, allocations: 1.039 MB / 0.5637 GB, free: 15.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4164, allocations: 0 / 0.5637 GB, free: 15.11 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4164, allocations: 4 kB / 0.5637 GB, free: 15.11 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.4164, allocations: 0 / 0.5637 GB, free: 15.11 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001931/0.4184, allocations: 0.9835 MB / 0.5647 GB, free: 14.08 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.4184, allocations: 11.98 kB / 0.5647 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004208/0.4188, allocations: 108.4 kB / 0.5648 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.4201, allocations: 0.5554 MB / 0.5654 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.576e-05/0.4202, allocations: 75 kB / 0.5654 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.4203, allocations: 67.94 kB / 0.5655 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.4216, allocations: 0.8311 MB / 0.5663 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.333e-05/0.4217, allocations: 11.94 kB / 0.5663 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/0.4218, allocations: 23.98 kB / 0.5663 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001291/0.4219, allocations: 49.28 kB / 0.5664 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.4229, allocations: 0.6157 MB / 0.567 GB, free: 11.65 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004189/0.4271, allocations: 2.594 MB / 0.5695 GB, free: 8.977 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008869/0.428, allocations: 423.9 kB / 0.5699 GB, free: 8.539 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003664/0.4284, allocations: 240 kB / 0.5702 GB, free: 8.293 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.4284, allocations: 4.656 kB / 0.5702 GB, free: 8.289 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005565/0.429, allocations: 383.9 kB / 0.5705 GB, free: 7.883 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.124e-06/0.429, allocations: 0 / 0.5705 GB, free: 7.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003269/0.4322, allocations: 1.735 MB / 0.5722 GB, free: 6.074 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.397e-05/0.4323, allocations: 136.5 kB / 0.5723 GB, free: 5.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005027/0.4328, allocations: 417.8 kB / 0.5727 GB, free: 5.496 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.546e-05/0.4329, allocations: 37.7 kB / 0.5728 GB, free: 5.453 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002959/0.4332, allocations: 348.5 kB / 0.5731 GB, free: 5.105 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.4333, allocations: 166.5 kB / 0.5733 GB, free: 4.941 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.4335, allocations: 118.3 kB / 0.5734 GB, free: 4.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.4337, allocations: 358.8 kB / 0.5737 GB, free: 4.461 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004094/0.4341, allocations: 250.9 kB / 0.574 GB, free: 4.207 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005422/0.4347, allocations: 427.4 kB / 0.5744 GB, free: 3.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002843/0.4375, allocations: 1.256 MB / 0.5756 GB, free: 2.383 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4375, allocations: 4 kB / 0.5756 GB, free: 2.379 MB / 414.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0019/0.4394, allocations: 0.9845 MB / 0.5766 GB, free: 1.367 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.312e-05/0.4395, allocations: 36.52 kB / 0.5766 GB, free: 1.328 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.4395, allocations: 8 kB / 0.5766 GB, free: 1.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009439/0.4404, allocations: 305.7 kB / 0.5769 GB, free: 1.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.4414, allocations: 179.7 kB / 0.5771 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00717/0.4486, allocations: 4.985 MB / 0.5819 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/0.449, allocations: 27.98 kB / 0.582 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-05/0.449, allocations: 27.98 kB / 0.582 GB, free: 11.61 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0004281/0.4494, allocations: 299.3 kB / 0.5823 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.406e-05/0.4495, allocations: 55.61 kB / 0.5823 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.4508, allocations: 0.6836 MB / 0.583 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.4508, allocations: 4 kB / 0.583 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.4508, allocations: 0 / 0.583 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.4508, allocations: 3.984 kB / 0.583 GB, free: 10.52 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002403/0.4532, allocations: 1.328 MB / 0.5843 GB, free: 9.125 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.4532, allocations: 3.938 kB / 0.5843 GB, free: 9.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001331/0.4545, allocations: 191.9 kB / 0.5845 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002394/0.4548, allocations: 82.53 kB / 0.5846 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.4548, allocations: 15.98 kB / 0.5846 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003328/0.4581, allocations: 3.87 MB / 0.5884 GB, free: 4.652 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4581, allocations: 7.969 kB / 0.5884 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.4598, allocations: 1.024 MB / 0.5894 GB, free: 3.566 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002648/0.46, allocations: 91.62 kB / 0.5895 GB, free: 3.477 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.33e-05/0.4601, allocations: 15.98 kB / 0.5895 GB, free: 3.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.4604, allocations: 15.98 kB / 0.5895 GB, free: 3.445 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.276e-05/0.4605, allocations: 32.02 kB / 0.5895 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-05/0.4605, allocations: 23.92 kB / 0.5895 GB, free: 3.391 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003671/0.4609, allocations: 291.1 kB / 0.5898 GB, free: 3.105 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4609, allocations: 0 / 0.5898 GB, free: 3.105 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007248/0.4616, allocations: 160 kB / 0.59 GB, free: 2.949 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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,1,100.0%), (1,1,100.0%), (1,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.0001574/0.4618, allocations: 119.3 kB / 0.5901 GB, free: 2.82 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.4637, allocations: 1.014 MB / 0.5911 GB, free: 1.754 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4637, allocations: 0.8125 kB / 0.5911 GB, free: 1.754 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008812/0.4646, allocations: 0.6611 MB / 0.5917 GB, free: 1.035 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006724/0.4652, allocations: 120.6 kB / 0.5918 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/0.4681, allocations: 1.765 MB / 0.5936 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004531/0.4686, allocations: 385.8 kB / 0.5939 GB, free: 14.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.4687, allocations: 39.44 kB / 0.594 GB, free: 14.66 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4687, allocations: 0 / 0.594 GB, free: 14.66 MB / 446.1 MB Notification: Performance of Templates: time 0.01902/0.4877, allocations: 14.75 MB / 0.6084 GB, free: 15.92 MB / 462.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.284166689962149]