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.001309/0.001309, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001944/0.001944, allocations: 174.2 kB / 24.91 MB, free: 9.195 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.075/1.075, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.252/0.252, allocations: 29.43 MB / 291.2 MB, free: 2.406 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_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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 316.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.504e-05/2.664e-05, allocations: 3.625 kB / 316.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008063/0.00809, allocations: 5.592 MB / 322.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007057/0.01515, allocations: 4.227 MB / 326.7 MB, free: 6.082 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004753/0.01562, allocations: 23.81 kB / 326.7 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008591/0.02421, allocations: 5.344 MB / 332.1 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.02523, allocations: 437.5 kB / 332.5 MB, free: 276 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005943/0.02582, allocations: 303.3 kB / 332.8 MB, free: 15.97 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001957/0.02778, allocations: 1.817 MB / 334.6 MB, free: 14.15 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.02878, allocations: 0.6592 MB / 335.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009575/0.02974, allocations: 0.6509 MB / 335.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006576/0.0304, allocations: 454.7 kB / 336.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.03051, allocations: 75.94 kB / 336.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002778/0.03079, allocations: 139.8 kB / 336.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002801/0.03107, allocations: 355.1 kB / 336.9 MB, free: 11.83 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002646/0.03134, allocations: 275.4 kB / 337.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007688/0.03211, allocations: 0.6541 MB / 337.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.03211, allocations: 0 / 337.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.03211, allocations: 0 / 337.9 MB, free: 10.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.03212, allocations: 0 / 337.9 MB, free: 10.9 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001532/0.03366, allocations: 0.9311 MB / 338.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.03369, allocations: 11.98 kB / 338.8 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004173/0.03411, allocations: 132.8 kB / 338.9 MB, free: 9.797 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007406/0.03485, allocations: 480.5 kB / 339.4 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.4e-05/0.03493, allocations: 87.3 kB / 339.5 MB, free: 9.207 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.031e-05/0.03502, allocations: 67.94 kB / 339.5 MB, free: 9.141 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006446/0.03566, allocations: 0.526 MB / 340.1 MB, free: 8.566 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.03568, allocations: 4 kB / 340.1 MB, free: 8.562 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.356e-05/0.03573, allocations: 23.98 kB / 340.1 MB, free: 8.539 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.205e-05/0.03582, allocations: 49.28 kB / 340.1 MB, free: 8.492 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003461/0.03616, allocations: 221.5 kB / 340.4 MB, free: 8.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.03843, allocations: 1.969 MB / 342.3 MB, free: 6.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.03884, allocations: 301 kB / 342.6 MB, free: 5.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.03896, allocations: 108 kB / 342.7 MB, free: 5.793 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.03898, allocations: 8.656 kB / 342.7 MB, free: 5.785 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.03927, allocations: 255 kB / 343 MB, free: 5.504 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 1.793e-06/0.03927, allocations: 0 / 343 MB, free: 5.504 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.001478/0.04075, allocations: 0.941 MB / 343.9 MB, free: 4.488 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.04081, allocations: 144.5 kB / 344.1 MB, free: 4.316 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.04108, allocations: 355.1 kB / 344.4 MB, free: 3.953 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.04111, allocations: 41.73 kB / 344.5 MB, free: 3.906 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.04126, allocations: 305.4 kB / 344.8 MB, free: 3.605 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.04137, allocations: 166.6 kB / 344.9 MB, free: 3.441 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.04151, allocations: 106.2 kB / 345 MB, free: 3.328 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003641/0.04187, allocations: 362.7 kB / 345.4 MB, free: 2.965 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.042, allocations: 97.81 kB / 345.5 MB, free: 2.863 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.04222, allocations: 259.5 kB / 345.7 MB, free: 2.535 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005639/0.04278, allocations: 0.5013 MB / 346.2 MB, free: 1.953 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.04279, allocations: 0 / 346.2 MB, free: 1.953 MB / 314.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009133/0.0437, allocations: 0.5317 MB / 346.8 MB, free: 1.391 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.04374, allocations: 33.7 kB / 346.8 MB, free: 1.352 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.04375, allocations: 12 kB / 346.8 MB, free: 1.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007815/0.04453, allocations: 268.2 kB / 347.1 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006188/0.04515, allocations: 143.8 kB / 347.2 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003532/0.04869, allocations: 3.542 MB / 350.8 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000205/0.04889, allocations: 16 kB / 350.8 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.28e-05/0.04892, allocations: 20 kB / 350.8 MB, free: 13.18 MB / 330.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.0002044/0.04913, allocations: 190.1 kB / 351 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.354e-05/0.04919, allocations: 43.95 kB / 351 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004865/0.04968, allocations: 381.8 kB / 351.4 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.04968, allocations: 8 kB / 351.4 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.04969, allocations: 0 / 351.4 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.04969, allocations: 3.984 kB / 351.4 MB, free: 12.52 MB / 330.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.001205/0.0509, allocations: 0.8364 MB / 352.2 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.0509, allocations: 0 / 352.2 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.05199, allocations: 159.9 kB / 352.4 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001517/0.05214, allocations: 60.2 kB / 352.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.272e-05/0.05218, allocations: 15.98 kB / 352.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/0.05396, allocations: 3.549 MB / 356 MB, free: 7.547 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.05396, allocations: 4 kB / 356 MB, free: 7.543 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006538/0.05462, allocations: 0.634 MB / 356.7 MB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.05473, allocations: 71.64 kB / 356.7 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.05478, allocations: 15.98 kB / 356.7 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.05494, allocations: 8 kB / 356.7 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.099e-05/0.05502, allocations: 39.86 kB / 356.8 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.05504, allocations: 12 kB / 356.8 MB, free: 6.707 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001329/0.05517, allocations: 144.7 kB / 356.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05517, allocations: 0 / 356.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005591/0.05573, allocations: 160 kB / 357.1 MB, free: 6.41 MB / 330.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 0.0001246/0.05586, allocations: 100.4 kB / 357.2 MB, free: 6.301 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.057, allocations: 0.7728 MB / 358 MB, free: 5.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.652e-05/0.05701, allocations: 8 kB / 358 MB, free: 5.473 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005215/0.05753, allocations: 0.5494 MB / 358.5 MB, free: 4.863 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005509/0.05808, allocations: 133.6 kB / 358.7 MB, free: 4.734 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002447/0.06053, allocations: 1.275 MB / 359.9 MB, free: 3.406 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.0607, allocations: 197.7 kB / 360.1 MB, free: 3.191 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.0609, allocations: 64.56 kB / 360.2 MB, free: 3.125 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002345/0.06113, allocations: 143.3 kB / 360.3 MB, free: 2.984 MB / 330.7 MB Notification: Performance of SimCode: time 8.71e-07/0.06113, allocations: 0 / 360.3 MB, free: 2.984 MB / 330.7 MB Notification: Performance of Templates: time 0.01498/0.07612, allocations: 8.199 MB / 368.5 MB, free: 10.93 MB / 346.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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2361641288734972]