Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.001628/0.001628, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.001824/0.001824, allocations: 210.9 kB / 23.73 MB, free: 4.387 MB / 14.72 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.568/1.568, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1916/0.1916, allocations: 38.56 MB / 352.5 MB, free: 12.35 MB / 286.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/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_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 67.91 kB / 493 MB, free: 4.234 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3812/0.3834, allocations: 62.47 MB / 0.5424 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.00774/0.3911, allocations: 5.097 MB / 0.5474 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002813/0.3939, allocations: 1.489 MB / 0.5489 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002592/0.3942, allocations: 27.72 kB / 0.5489 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004202/0.3946, allocations: 121 kB / 0.549 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008158/0.3954, allocations: 319.5 kB / 0.5493 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000401/0.3958, allocations: 159.3 kB / 0.5495 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008592/0.3967, allocations: 0.6974 MB / 0.5501 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004555/0.3971, allocations: 331.5 kB / 0.5505 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004341/0.3976, allocations: 299.9 kB / 0.5507 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004245/0.398, allocations: 281.6 kB / 0.551 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.285e-05/0.398, allocations: 46.38 kB / 0.5511 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.688e-05/0.3981, allocations: 45.84 kB / 0.5511 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.3983, allocations: 153 kB / 0.5512 GB, free: 9.844 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002746/0.3986, allocations: 220.1 kB / 0.5514 GB, free: 9.715 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007897/0.3994, allocations: 0.6014 MB / 0.552 GB, free: 9.289 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.3994, allocations: 3.938 kB / 0.552 GB, free: 9.285 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3994, allocations: 0 / 0.552 GB, free: 9.285 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.437e-06/0.3994, allocations: 0.9062 kB / 0.552 GB, free: 9.285 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.001401/0.4008, allocations: 0.7216 MB / 0.5527 GB, free: 8.711 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4008, allocations: 12.61 kB / 0.5528 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.4009, allocations: 59.38 kB / 0.5528 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008046/0.4017, allocations: 391.8 kB / 0.5532 GB, free: 8.367 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.4019, allocations: 89.06 kB / 0.5533 GB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.85e-05/0.4019, allocations: 43.28 kB / 0.5533 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009003/0.4028, allocations: 0.498 MB / 0.5538 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.4029, allocations: 1.094 kB / 0.5538 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.717e-05/0.4029, allocations: 24.47 kB / 0.5538 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.4029, allocations: 14.34 kB / 0.5538 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000665/0.4036, allocations: 333.2 kB / 0.5542 GB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00257/0.4062, allocations: 1.739 MB / 0.5559 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004614/0.4066, allocations: 216.2 kB / 0.5561 GB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.4068, allocations: 90.66 kB / 0.5561 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.4069, allocations: 4 kB / 0.5562 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.4069, allocations: 38.56 kB / 0.5562 GB, free: 5.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.054e-06/0.4069, allocations: 0 / 0.5562 GB, free: 5.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001817/0.4087, allocations: 0.7857 MB / 0.557 GB, free: 5.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.674e-05/0.4088, allocations: 106.8 kB / 0.5571 GB, free: 4.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004082/0.4092, allocations: 312.3 kB / 0.5574 GB, free: 4.625 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.4092, allocations: 25.7 kB / 0.5574 GB, free: 4.594 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.4094, allocations: 276.2 kB / 0.5576 GB, free: 4.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.77e-05/0.4095, allocations: 83.27 kB / 0.5577 GB, free: 4.238 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.4096, allocations: 73.91 kB / 0.5578 GB, free: 4.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4098, allocations: 342.8 kB / 0.5581 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.41, allocations: 87.73 kB / 0.5582 GB, free: 3.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003099/0.4103, allocations: 213 kB / 0.5584 GB, free: 3.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.4115, allocations: 494 kB / 0.5589 GB, free: 2.922 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.4115, allocations: 0 / 0.5589 GB, free: 2.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009153/0.4125, allocations: 426 kB / 0.5593 GB, free: 2.496 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.4125, allocations: 11.94 kB / 0.5593 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.4125, allocations: 4 kB / 0.5593 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003514/0.4128, allocations: 72.78 kB / 0.5594 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.4131, allocations: 71.84 kB / 0.5594 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002133/0.4153, allocations: 1.786 MB / 0.5612 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.4155, allocations: 15.98 kB / 0.5612 GB, free: 440 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.454e-05/0.4155, allocations: 16 kB / 0.5612 GB, free: 424 kB / 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.0002982/0.4158, allocations: 196.7 kB / 0.5614 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.262e-05/0.4159, allocations: 35.83 kB / 0.5614 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.099e-05/0.4159, allocations: 39.11 kB / 0.5615 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.416, allocations: 0 / 0.5615 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.416, allocations: 7.938 kB / 0.5615 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.416, allocations: 3.984 kB / 0.5615 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.4172, allocations: 0.6199 MB / 0.5621 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.4172, allocations: 0 / 0.5621 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002436/0.4174, allocations: 44 kB / 0.5621 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.611e-05/0.4175, allocations: 28.8 kB / 0.5622 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.4175, allocations: 15.92 kB / 0.5622 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.4186, allocations: 1.245 MB / 0.5634 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.4186, allocations: 7.875 kB / 0.5634 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008037/0.4194, allocations: 0.4933 MB / 0.5639 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.4195, allocations: 43.83 kB / 0.5639 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.4195, allocations: 11.94 kB / 0.5639 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.4197, allocations: 8 kB / 0.5639 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.962e-05/0.4198, allocations: 23.91 kB / 0.564 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.4198, allocations: 7.984 kB / 0.564 GB, free: 13.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002255/0.42, allocations: 203.1 kB / 0.5642 GB, free: 13.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.42, allocations: 4 kB / 0.5642 GB, free: 13.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005725/0.4206, allocations: 91.98 kB / 0.5643 GB, free: 13.12 MB / 414.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.0001321/0.4207, allocations: 95.25 kB / 0.5643 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008101/0.4215, allocations: 366.8 kB / 0.5647 GB, free: 12.65 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.832e-06/0.4216, allocations: 4 kB / 0.5647 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003827/0.4219, allocations: 214.5 kB / 0.5649 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000662/0.4226, allocations: 92.8 kB / 0.565 GB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001808/0.4244, allocations: 0.9253 MB / 0.5659 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.4247, allocations: 243.7 kB / 0.5661 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000169/0.4249, allocations: 47.25 kB / 0.5662 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.931e-05/0.4249, allocations: 27.44 kB / 0.5662 GB, free: 11.04 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4249, allocations: 0 / 0.5662 GB, free: 11.04 MB / 414.1 MB Notification: Performance of Templates: time 0.01022/0.4352, allocations: 4.619 MB / 0.5707 GB, free: 6.5 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile [Timeout 660] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.355851903557777] Failed to read output from testmodel.py, exit status != 0: 0.4460684359073639 0.460617124 0.058022670000000005 Calling exit ...