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.0009446/0.0009446, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.00111/0.00111, allocations: 173.9 kB / 24.92 MB, free: 9.18 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.013/1.013, allocations: 177.1 MB / 205.3 MB, free: 5.457 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.2661/0.2661, allocations: 29.42 MB / 291.2 MB, free: 2.461 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.295e-06/2.295e-06, allocations: 0 / 316.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.529e-05/2.758e-05, allocations: 3.016 kB / 316.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.005863/0.005891, allocations: 4.987 MB / 321.9 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.008662, allocations: 2.122 MB / 324 MB, free: 8.812 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003299/0.008992, allocations: 19.88 kB / 324 MB, free: 8.793 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000457/0.009449, allocations: 150.9 kB / 324.2 MB, free: 8.645 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007804/0.01023, allocations: 397.4 kB / 324.6 MB, free: 8.254 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004031/0.01063, allocations: 219.4 kB / 324.8 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006975/0.01133, allocations: 0.7392 MB / 325.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003646/0.01169, allocations: 345.9 kB / 325.8 MB, free: 6.953 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004805/0.01218, allocations: 439.6 kB / 326.3 MB, free: 6.523 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002858/0.01246, allocations: 247.2 kB / 326.5 MB, free: 6.281 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.882e-05/0.01251, allocations: 48 kB / 326.6 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002191/0.01273, allocations: 143.8 kB / 326.7 MB, free: 6.094 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.01283, allocations: 159.5 kB / 326.9 MB, free: 5.938 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.01296, allocations: 187.5 kB / 327 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005115/0.01347, allocations: 486.2 kB / 327.5 MB, free: 5.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.01348, allocations: 0 / 327.5 MB, free: 5.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.153e-06/0.01348, allocations: 0 / 327.5 MB, free: 5.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.01349, allocations: 0 / 327.5 MB, free: 5.27 MB / 298.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.0008486/0.01434, allocations: 0.7576 MB / 328.3 MB, free: 4.484 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.01437, allocations: 11.98 kB / 328.3 MB, free: 4.473 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.298e-05/0.01445, allocations: 64.88 kB / 328.3 MB, free: 4.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.01493, allocations: 393.2 kB / 328.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.01496, allocations: 33.12 kB / 328.8 MB, free: 3.965 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.015, allocations: 43.97 kB / 328.8 MB, free: 3.922 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003287/0.01533, allocations: 353.6 kB / 329.2 MB, free: 3.527 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.01535, allocations: 4 kB / 329.2 MB, free: 3.523 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.01537, allocations: 16 kB / 329.2 MB, free: 3.508 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.01538, allocations: 12 kB / 329.2 MB, free: 3.496 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001427/0.01552, allocations: 119.1 kB / 329.3 MB, free: 3.375 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.01666, allocations: 1.46 MB / 330.8 MB, free: 1.836 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.0169, allocations: 198.2 kB / 331 MB, free: 1.613 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.88e-05/0.01695, allocations: 54.48 kB / 331 MB, free: 1.551 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.01698, allocations: 8 kB / 331 MB, free: 1.543 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001551/0.01713, allocations: 139.3 kB / 331.1 MB, free: 1.387 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.01713, allocations: 0 / 331.1 MB, free: 1.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.0007711/0.0179, allocations: 486.4 kB / 331.6 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.01796, allocations: 132.5 kB / 331.8 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.01819, allocations: 360.9 kB / 332.1 MB, free: 356 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.01821, allocations: 25.7 kB / 332.1 MB, free: 324 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.01831, allocations: 237 kB / 332.4 MB, free: 80 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.608e-05/0.0184, allocations: 91.39 kB / 332.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.885e-05/0.01847, allocations: 77.61 kB / 332.5 MB, free: 15.9 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.0186, allocations: 366.7 kB / 332.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5e-05/0.01865, allocations: 35.52 kB / 332.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.01875, allocations: 181.9 kB / 333.1 MB, free: 15.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.01894, allocations: 233.1 kB / 333.3 MB, free: 14.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.01894, allocations: 7.938 kB / 333.3 MB, free: 14.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003426/0.01928, allocations: 275.5 kB / 333.6 MB, free: 14.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.0193, allocations: 4.531 kB / 333.6 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.0193, allocations: 4 kB / 333.6 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003449/0.01965, allocations: 99.53 kB / 333.7 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.0198, allocations: 71.91 kB / 333.8 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.0213, allocations: 1.689 MB / 335.5 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.02143, allocations: 16 kB / 335.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.02145, allocations: 12 kB / 335.5 MB, free: 12.7 MB / 314.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.0001296/0.02158, allocations: 132.5 kB / 335.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.02162, allocations: 31.97 kB / 335.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/0.02188, allocations: 188.9 kB / 335.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.02189, allocations: 4 kB / 335.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.02189, allocations: 4 kB / 335.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.0219, allocations: 3.984 kB / 335.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005079/0.02241, allocations: 478.9 kB / 336.3 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.02241, allocations: 4 kB / 336.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.02256, allocations: 47.91 kB / 336.4 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001142/0.02267, allocations: 43.64 kB / 336.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.02269, allocations: 4 kB / 336.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006705/0.02336, allocations: 1.25 MB / 337.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.02336, allocations: 8 kB / 337.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.02368, allocations: 378.7 kB / 338 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.647e-05/0.02375, allocations: 39.7 kB / 338.1 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.02378, allocations: 8 kB / 338.1 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.999e-05/0.02387, allocations: 8 kB / 338.1 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/0.02392, allocations: 23.95 kB / 338.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.02393, allocations: 11.92 kB / 338.1 MB, free: 9.891 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001229/0.02405, allocations: 151.5 kB / 338.3 MB, free: 9.746 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02405, allocations: 0 / 338.3 MB, free: 9.746 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003793/0.02443, allocations: 123.9 kB / 338.4 MB, free: 9.625 MB / 314.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.001531/0.02596, allocations: 0.5676 MB / 339 MB, free: 9.359 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005034/0.02647, allocations: 328.1 kB / 339.3 MB, free: 9.023 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/0.02648, allocations: 4 kB / 339.3 MB, free: 9.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005125/0.02699, allocations: 203 kB / 339.5 MB, free: 8.805 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.02736, allocations: 125.8 kB / 339.6 MB, free: 8.684 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/0.02895, allocations: 0.918 MB / 340.5 MB, free: 7.723 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.467e-05/0.02904, allocations: 129.2 kB / 340.7 MB, free: 7.574 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001375/0.02918, allocations: 51.27 kB / 340.7 MB, free: 7.527 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.02937, allocations: 137.3 kB / 340.8 MB, free: 7.395 MB / 314.7 MB Notification: Performance of SimCode: time 1.693e-06/0.02937, allocations: 0 / 340.8 MB, free: 7.395 MB / 314.7 MB Notification: Performance of Templates: time 0.01036/0.03973, allocations: 7.036 MB / 347.9 MB, free: 0.4922 MB / 314.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 -s gbode -gbm=radauIIA3 -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.152736298274249]