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.0007859/0.0007859, allocations: 87.62 kB / 21.43 MB, free: 3.137 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.003702/0.003702, allocations: 160.2 kB / 24.7 MB, free: 8.879 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.8214/0.8214, allocations: 177.1 MB / 205 MB, free: 5.734 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.2025/0.2025, allocations: 29.4 MB / 290.8 MB, free: 2.438 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_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: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 431.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.869e-05/1.999e-05, allocations: 6.219 kB / 431.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.004762/0.004782, allocations: 5.488 MB / 437 MB, free: 7.586 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004882/0.009664, allocations: 4.097 MB / 441.1 MB, free: 3.477 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002757/0.00994, allocations: 23.81 kB / 441.1 MB, free: 3.453 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1517/0.1616, allocations: 5.472 MB / 446.6 MB, free: 45.65 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008674/0.1625, allocations: 455.2 kB / 447 MB, free: 45.65 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004893/0.163, allocations: 293.2 kB / 447.3 MB, free: 45.65 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001092/0.1641, allocations: 1.825 MB / 449.1 MB, free: 45.46 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004699/0.1645, allocations: 0.6189 MB / 449.7 MB, free: 45.41 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004027/0.1649, allocations: 0.6433 MB / 450.4 MB, free: 45.36 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003431/0.1653, allocations: 481.1 kB / 450.8 MB, free: 45.32 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.015e-05/0.1653, allocations: 74.56 kB / 450.9 MB, free: 45.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.1655, allocations: 141.2 kB / 451.1 MB, free: 45.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.1656, allocations: 349.4 kB / 451.4 MB, free: 45.29 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.1658, allocations: 264.5 kB / 451.7 MB, free: 45.26 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006363/0.1664, allocations: 1.053 MB / 452.7 MB, free: 45.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1664, allocations: 0 / 452.7 MB, free: 45.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1664, allocations: 3.375 kB / 452.7 MB, free: 45.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1664, allocations: 3.5 kB / 452.7 MB, free: 45.18 MB / 410.7 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.001103/0.1676, allocations: 0.9688 MB / 453.7 MB, free: 44.64 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.1676, allocations: 13.61 kB / 453.7 MB, free: 44.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002637/0.1679, allocations: 102.9 kB / 453.8 MB, free: 44.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006163/0.1685, allocations: 0.5527 MB / 454.4 MB, free: 44.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.182e-05/0.1685, allocations: 85.52 kB / 454.4 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.121e-05/0.1686, allocations: 63.66 kB / 454.5 MB, free: 44.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006687/0.1693, allocations: 0.8368 MB / 455.3 MB, free: 43.83 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.1693, allocations: 3.516 kB / 455.3 MB, free: 43.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.1693, allocations: 22.38 kB / 455.4 MB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.666e-05/0.1694, allocations: 52.23 kB / 455.4 MB, free: 43.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005231/0.1699, allocations: 0.6107 MB / 456 MB, free: 43.58 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.1718, allocations: 2.595 MB / 458.6 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004608/0.1722, allocations: 437.3 kB / 459 MB, free: 41.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.1724, allocations: 235.1 kB / 459.3 MB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.1724, allocations: 4.406 kB / 459.3 MB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002632/0.1727, allocations: 376.2 kB / 459.6 MB, free: 41.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 1.903e-06/0.1727, allocations: 2.906 kB / 459.6 MB, free: 41.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.001598/0.1743, allocations: 1.727 MB / 461.4 MB, free: 40.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.1743, allocations: 134.7 kB / 461.5 MB, free: 40.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.1746, allocations: 417.9 kB / 461.9 MB, free: 40.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1746, allocations: 36.64 kB / 462 MB, free: 40.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.1747, allocations: 348.1 kB / 462.3 MB, free: 39.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.942e-05/0.1748, allocations: 165.6 kB / 462.5 MB, free: 39.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.729e-05/0.1749, allocations: 115.6 kB / 462.6 MB, free: 39.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.344e-05/0.1749, allocations: 359.2 kB / 462.9 MB, free: 39.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.1751, allocations: 261.5 kB / 463.2 MB, free: 39.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.1753, allocations: 427.8 kB / 463.6 MB, free: 38.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.1766, allocations: 1.263 MB / 464.9 MB, free: 38.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1766, allocations: 3.219 kB / 464.9 MB, free: 38.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008551/0.1775, allocations: 0.9778 MB / 465.8 MB, free: 37.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.1775, allocations: 38.23 kB / 465.9 MB, free: 37.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1775, allocations: 7.125 kB / 465.9 MB, free: 37.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004426/0.178, allocations: 301.5 kB / 466.2 MB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.1784, allocations: 178.3 kB / 466.3 MB, free: 37.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00292/0.1813, allocations: 4.973 MB / 471.3 MB, free: 34.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.1815, allocations: 27.27 kB / 471.3 MB, free: 34.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.1815, allocations: 24.81 kB / 471.4 MB, free: 34.07 MB / 410.7 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.0001761/0.1817, allocations: 297.5 kB / 471.7 MB, free: 33.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.472e-05/0.1817, allocations: 50.48 kB / 471.7 MB, free: 33.83 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005732/0.1823, allocations: 0.699 MB / 472.4 MB, free: 33.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1823, allocations: 3.406 kB / 472.4 MB, free: 33.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1823, allocations: 3.219 kB / 472.4 MB, free: 33.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1823, allocations: 3.516 kB / 472.4 MB, free: 33.47 MB / 410.7 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.001042/0.1833, allocations: 1.312 MB / 473.7 MB, free: 32.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1833, allocations: 7 kB / 473.7 MB, free: 32.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005594/0.1839, allocations: 194.3 kB / 473.9 MB, free: 32.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001042/0.184, allocations: 75.56 kB / 474 MB, free: 32.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.184, allocations: 17.5 kB / 474 MB, free: 32.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009739/0.185, allocations: 3.879 MB / 477.9 MB, free: 28.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.185, allocations: 5.562 kB / 477.9 MB, free: 28.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006985/0.1857, allocations: 1.022 MB / 478.9 MB, free: 28.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.627e-05/0.1858, allocations: 94.56 kB / 479 MB, free: 28.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.14e-05/0.1858, allocations: 17.94 kB / 479 MB, free: 28.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.186, allocations: 23.8 kB / 479.1 MB, free: 28.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.241e-05/0.186, allocations: 41.5 kB / 479.1 MB, free: 28.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.186, allocations: 12 kB / 479.1 MB, free: 28.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001428/0.1862, allocations: 290.7 kB / 479.4 MB, free: 28.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1862, allocations: 0 / 479.4 MB, free: 28.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003507/0.1865, allocations: 158.7 kB / 479.5 MB, free: 28.14 MB / 410.7 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 9.223e-05/0.1866, allocations: 121.3 kB / 479.7 MB, free: 28.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008719/0.1875, allocations: 1.017 MB / 480.7 MB, free: 27.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1875, allocations: 0 / 480.7 MB, free: 27.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003231/0.1878, allocations: 0.6532 MB / 481.3 MB, free: 26.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.1882, allocations: 119.6 kB / 481.5 MB, free: 26.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.1895, allocations: 1.576 MB / 483 MB, free: 26.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.1897, allocations: 387.3 kB / 483.4 MB, free: 25.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.562e-05/0.1898, allocations: 42.88 kB / 483.5 MB, free: 25.87 MB / 410.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1898, allocations: 0 / 483.5 MB, free: 25.87 MB / 410.7 MB Notification: Performance of Templates: time 0.0126/0.2024, allocations: 14.83 MB / 498.3 MB, free: 24.05 MB / 410.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins/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: 5.547516238875687]