Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001575/0.001575, allocations: 114.2 kB / 19.04 MB, free: 3.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 184.5 kB / 22.21 MB, free: 116 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1733/0.1733, allocations: 38.53 MB / 344.5 MB, free: 2.602 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 63.89 kB / 482.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3717, allocations: 61.25 MB / 0.5306 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.00631/0.378, allocations: 5.401 MB / 0.5358 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.3799, allocations: 1.585 MB / 0.5374 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.3802, allocations: 19.44 kB / 0.5374 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003583/0.3805, allocations: 125.3 kB / 0.5375 GB, free: 444 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006099/0.3811, allocations: 315.8 kB / 0.5378 GB, free: 188 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003089/0.3814, allocations: 161.7 kB / 0.538 GB, free: 48 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009174/0.3824, allocations: 0.6943 MB / 0.5387 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.3828, allocations: 338 kB / 0.539 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003917/0.3832, allocations: 289.8 kB / 0.5393 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000443/0.3836, allocations: 297.2 kB / 0.5395 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.821e-05/0.3837, allocations: 46.31 kB / 0.5396 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.824e-05/0.3838, allocations: 46.88 kB / 0.5396 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.384, allocations: 155.8 kB / 0.5398 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002728/0.3842, allocations: 264.4 kB / 0.54 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007223/0.385, allocations: 0.6004 MB / 0.5406 GB, free: 14.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.385, allocations: 0 / 0.5406 GB, free: 14.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.385, allocations: 0 / 0.5406 GB, free: 14.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.385, allocations: 1.062 kB / 0.5406 GB, free: 14.35 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001473/0.3865, allocations: 0.802 MB / 0.5414 GB, free: 13.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.3865, allocations: 10.19 kB / 0.5414 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.3866, allocations: 57.55 kB / 0.5415 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007993/0.3874, allocations: 461.5 kB / 0.5419 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/0.3875, allocations: 66.42 kB / 0.542 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.74e-05/0.3876, allocations: 44.08 kB / 0.542 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000875/0.3885, allocations: 0.5016 MB / 0.5425 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.3885, allocations: 9.359 kB / 0.5425 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.3886, allocations: 16.38 kB / 0.5425 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.3886, allocations: 11.62 kB / 0.5425 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006386/0.3892, allocations: 337.5 kB / 0.5429 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.3917, allocations: 1.979 MB / 0.5448 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004514/0.3922, allocations: 216 kB / 0.545 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.3924, allocations: 89.5 kB / 0.5451 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.3924, allocations: 2.125 kB / 0.5451 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.3924, allocations: 41.11 kB / 0.5451 GB, free: 10.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.783e-06/0.3924, allocations: 4 kB / 0.5451 GB, free: 10.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.00168/0.3941, allocations: 0.845 MB / 0.546 GB, free: 9.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.891e-05/0.3942, allocations: 106.4 kB / 0.5461 GB, free: 9.859 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004136/0.3946, allocations: 341.8 kB / 0.5464 GB, free: 9.629 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.3946, allocations: 30.89 kB / 0.5464 GB, free: 9.594 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.3948, allocations: 274.8 kB / 0.5467 GB, free: 9.348 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.781e-05/0.3949, allocations: 81.45 kB / 0.5468 GB, free: 9.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.395, allocations: 74.58 kB / 0.5468 GB, free: 9.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3952, allocations: 338.3 kB / 0.5471 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.3954, allocations: 91.88 kB / 0.5472 GB, free: 8.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.3957, allocations: 219.4 kB / 0.5474 GB, free: 8.625 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.3969, allocations: 0.5546 MB / 0.548 GB, free: 8.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3969, allocations: 0.9688 kB / 0.548 GB, free: 8.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008564/0.3978, allocations: 419.2 kB / 0.5484 GB, free: 7.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3978, allocations: 8.188 kB / 0.5484 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.3978, allocations: 4.938 kB / 0.5484 GB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000325/0.3981, allocations: 81.66 kB / 0.5485 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.3984, allocations: 67.09 kB / 0.5485 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002081/0.4004, allocations: 1.927 MB / 0.5504 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.4007, allocations: 15.81 kB / 0.5504 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.4007, allocations: 21.61 kB / 0.5505 GB, free: 6.055 MB / 398.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.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002469/0.401, allocations: 189.1 kB / 0.5506 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.569e-05/0.401, allocations: 35.89 kB / 0.5507 GB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.651e-05/0.4011, allocations: 45.69 kB / 0.5507 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.4011, allocations: 2.656 kB / 0.5507 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.4011, allocations: 1.406 kB / 0.5507 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.4011, allocations: 1.438 kB / 0.5507 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.4024, allocations: 0.7838 MB / 0.5515 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4024, allocations: 1.438 kB / 0.5515 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.4026, allocations: 52.8 kB / 0.5515 GB, free: 5.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.89e-05/0.4027, allocations: 32.25 kB / 0.5516 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.4027, allocations: 2.375 kB / 0.5516 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/0.4038, allocations: 1.379 MB / 0.5529 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4038, allocations: 1.906 kB / 0.5529 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008248/0.4047, allocations: 0.5049 MB / 0.5534 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.4048, allocations: 120.8 kB / 0.5535 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.496e-05/0.4049, allocations: 6.438 kB / 0.5535 GB, free: 3.188 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.4051, allocations: 8.812 kB / 0.5535 GB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.191e-05/0.4051, allocations: 16.41 kB / 0.5536 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.4051, allocations: 8.938 kB / 0.5536 GB, free: 3.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002624/0.4054, allocations: 233.6 kB / 0.5538 GB, free: 3.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4054, allocations: 0 / 0.5538 GB, free: 3.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005645/0.406, allocations: 90.06 kB / 0.5539 GB, free: 3.008 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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,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.0001269/0.4061, allocations: 106.8 kB / 0.554 GB, free: 2.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007918/0.4069, allocations: 359.1 kB / 0.5543 GB, free: 2.676 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4069, allocations: 1 kB / 0.5543 GB, free: 2.676 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003741/0.4073, allocations: 213.2 kB / 0.5545 GB, free: 2.516 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006635/0.4079, allocations: 102.4 kB / 0.5546 GB, free: 2.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.4097, allocations: 0.953 MB / 0.5556 GB, free: 1.797 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.4102, allocations: 0.8438 MB / 0.5564 GB, free: 1.023 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001924/0.4104, allocations: 55.19 kB / 0.5564 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.082e-05/0.4104, allocations: 27.62 kB / 0.5565 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4104, allocations: 0 / 0.5565 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of Templates: time 0.01032/0.4208, allocations: 4.744 MB / 0.5611 GB, free: 12.39 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.119942558929324]