Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.001502/0.001502, allocations: 77.97 kB / 21.42 MB, free: 3.066 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.001446/0.001446, allocations: 165.9 kB / 24.82 MB, free: 9.309 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.095/1.095, allocations: 177.1 MB / 205.3 MB, free: 5.512 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.29/0.29, allocations: 29.42 MB / 291.2 MB, free: 2.363 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.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.816e-06/2.816e-06, allocations: 0 / 370.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.221e-05/4.503e-05, allocations: 5.812 kB / 370.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008031/0.008076, allocations: 4.916 MB / 375 MB, free: 5.746 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003661/0.01174, allocations: 2.068 MB / 377.1 MB, free: 3.672 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000514/0.01225, allocations: 19.81 kB / 377.1 MB, free: 3.652 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006069/0.01286, allocations: 138.9 kB / 377.3 MB, free: 3.516 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.01421, allocations: 425.3 kB / 377.7 MB, free: 3.098 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005945/0.0148, allocations: 219.4 kB / 377.9 MB, free: 2.883 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.01586, allocations: 0.7237 MB / 378.6 MB, free: 2.156 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005251/0.01638, allocations: 348 kB / 378.9 MB, free: 1.816 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009507/0.01733, allocations: 446.9 kB / 379.4 MB, free: 1.379 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004234/0.01776, allocations: 251.2 kB / 379.6 MB, free: 1.133 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.488e-05/0.01785, allocations: 48 kB / 379.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003495/0.0182, allocations: 135.8 kB / 379.8 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.01835, allocations: 159.5 kB / 380 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.01854, allocations: 183.6 kB / 380.1 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008318/0.01938, allocations: 494.2 kB / 380.6 MB, free: 136 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.01938, allocations: 0 / 380.6 MB, free: 136 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.01938, allocations: 0 / 380.6 MB, free: 136 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.0194, allocations: 0 / 380.6 MB, free: 136 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001255/0.02065, allocations: 0.894 MB / 381.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.0207, allocations: 15.98 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.02083, allocations: 88.56 kB / 381.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006082/0.02144, allocations: 430.8 kB / 382 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.02147, allocations: 37.11 kB / 382.1 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.948e-05/0.02153, allocations: 36 kB / 382.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004183/0.02195, allocations: 373.9 kB / 382.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.02197, allocations: 3.938 kB / 382.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.847e-05/0.022, allocations: 19.94 kB / 382.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.02201, allocations: 12 kB / 382.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/0.02218, allocations: 124.3 kB / 382.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.0239, allocations: 2.033 MB / 384.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.0242, allocations: 193.3 kB / 384.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.161e-05/0.02426, allocations: 59.09 kB / 384.9 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.02429, allocations: 4 kB / 384.9 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001973/0.02449, allocations: 156.2 kB / 385.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.394e-06/0.02449, allocations: 0 / 385.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009314/0.02542, allocations: 0.4987 MB / 385.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.02549, allocations: 136.8 kB / 385.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003146/0.0258, allocations: 430.2 kB / 386.1 MB, free: 10.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.02583, allocations: 29.7 kB / 386.2 MB, free: 10.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.02599, allocations: 322.8 kB / 386.5 MB, free: 9.887 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.973e-05/0.02606, allocations: 103.1 kB / 386.6 MB, free: 9.785 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.836e-05/0.02615, allocations: 79.27 kB / 386.6 MB, free: 9.699 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.02632, allocations: 0.5234 MB / 387.2 MB, free: 9.164 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.727e-05/0.02637, allocations: 27.97 kB / 387.2 MB, free: 9.137 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.02655, allocations: 251.6 kB / 387.4 MB, free: 8.805 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.02678, allocations: 278 kB / 387.7 MB, free: 8.457 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.02678, allocations: 4 kB / 387.7 MB, free: 8.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004656/0.02725, allocations: 332.6 kB / 388 MB, free: 8.117 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.02727, allocations: 8 kB / 388.1 MB, free: 8.109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.02729, allocations: 4 kB / 388.1 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002969/0.02758, allocations: 95.94 kB / 388.2 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.02773, allocations: 63.91 kB / 388.2 MB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001745/0.02947, allocations: 2.244 MB / 390.5 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.02967, allocations: 16 kB / 390.5 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.0297, allocations: 12 kB / 390.5 MB, free: 5.566 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001994/0.0299, allocations: 180.5 kB / 390.7 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.726e-05/0.02996, allocations: 59.59 kB / 390.7 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000375/0.03034, allocations: 224.9 kB / 390.9 MB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.03035, allocations: 7.922 kB / 390.9 MB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.03035, allocations: 4 kB / 391 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.03036, allocations: 0 / 391 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006812/0.03104, allocations: 0.5603 MB / 391.5 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.03104, allocations: 4 kB / 391.5 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.03118, allocations: 39.98 kB / 391.6 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.03131, allocations: 47.56 kB / 391.6 MB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.681e-05/0.03133, allocations: 8 kB / 391.6 MB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009883/0.03232, allocations: 1.803 MB / 393.4 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.03232, allocations: 0 / 393.4 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004556/0.03278, allocations: 429.5 kB / 393.8 MB, free: 2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.626e-05/0.03286, allocations: 51.69 kB / 393.9 MB, free: 1.949 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.03289, allocations: 8 kB / 393.9 MB, free: 1.941 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.766e-05/0.03299, allocations: 8 kB / 393.9 MB, free: 1.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.05e-05/0.03305, allocations: 28.08 kB / 393.9 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.03306, allocations: 4 kB / 393.9 MB, free: 1.902 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001667/0.03323, allocations: 267 kB / 394.2 MB, free: 1.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03323, allocations: 0 / 394.2 MB, free: 1.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004789/0.03371, allocations: 123.9 kB / 394.3 MB, free: 1.523 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001079/0.03479, allocations: 456.2 kB / 394.8 MB, free: 1.242 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006049/0.03539, allocations: 382.2 kB / 395.1 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.0354, allocations: 0 / 395.1 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003127/0.03571, allocations: 274.8 kB / 395.4 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004757/0.03618, allocations: 114.4 kB / 395.5 MB, free: 468 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.03806, allocations: 0.9701 MB / 396.5 MB, free: 15.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.03817, allocations: 129.2 kB / 396.6 MB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001842/0.03835, allocations: 55.19 kB / 396.7 MB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002092/0.03856, allocations: 166.1 kB / 396.8 MB, free: 15.07 MB / 378.7 MB Notification: Performance of SimCode: time 2.364e-06/0.03856, allocations: 4 kB / 396.8 MB, free: 15.07 MB / 378.7 MB Notification: Performance of Templates: time 0.01169/0.05026, allocations: 6.98 MB / 403.8 MB, free: 8.199 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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.6156890499405563]