Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.001428/0.001428, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001465/0.001465, allocations: 215 kB / 21.45 MB, free: 1.617 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.503/1.503, allocations: 230.6 MB / 254.8 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] 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.1892/0.1892, allocations: 38.51 MB / 349.4 MB, free: 2.59 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="cs",version="2.0",platforms={"static"}) [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.002198/0.002198, allocations: 63.89 kB / 487.8 MB, free: 22.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1199, allocations: 62.42 MB / 0.5374 GB, free: 7.664 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.01005/0.13, allocations: 5.777 MB / 0.543 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004694/0.1347, allocations: 2.298 MB / 0.5452 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006221/0.1353, allocations: 27.81 kB / 0.5453 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007813/0.1361, allocations: 178.6 kB / 0.5454 GB, free: 15.35 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00184/0.1379, allocations: 469.5 kB / 0.5459 GB, free: 14.89 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008412/0.1388, allocations: 239.5 kB / 0.5461 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.1404, allocations: 0.8643 MB / 0.547 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008445/0.1412, allocations: 432.7 kB / 0.5474 GB, free: 13.36 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007486/0.142, allocations: 362.6 kB / 0.5477 GB, free: 13 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00072/0.1427, allocations: 366.5 kB / 0.5481 GB, free: 12.64 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001709/0.1429, allocations: 60 kB / 0.5481 GB, free: 12.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004185/0.1433, allocations: 143.9 kB / 0.5483 GB, free: 12.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002396/0.1435, allocations: 187.5 kB / 0.5484 GB, free: 12.26 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004738/0.144, allocations: 314.4 kB / 0.5487 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001324/0.1453, allocations: 0.7822 MB / 0.5495 GB, free: 11.17 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1453, allocations: 0 / 0.5495 GB, free: 11.17 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1453, allocations: 0 / 0.5495 GB, free: 11.17 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.005e-05/0.1454, allocations: 0 / 0.5495 GB, free: 11.17 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002242/0.1476, allocations: 0.94 MB / 0.5504 GB, free: 10.17 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1476, allocations: 8.031 kB / 0.5504 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.495e-05/0.1477, allocations: 13.19 kB / 0.5504 GB, free: 10.15 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001112/0.1478, allocations: 82.72 kB / 0.5505 GB, free: 10.06 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.1479, allocations: 68.52 kB / 0.5506 GB, free: 9.996 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.149, allocations: 0.5331 MB / 0.5511 GB, free: 9.422 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.149, allocations: 29 kB / 0.5511 GB, free: 9.395 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.1491, allocations: 51.95 kB / 0.5512 GB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.1502, allocations: 0.5173 MB / 0.5517 GB, free: 8.785 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.1502, allocations: 3.938 kB / 0.5517 GB, free: 8.781 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.483e-05/0.1503, allocations: 23.98 kB / 0.5517 GB, free: 8.758 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.311e-05/0.1503, allocations: 17 kB / 0.5517 GB, free: 8.738 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006367/0.151, allocations: 335.7 kB / 0.5521 GB, free: 8.414 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.1542, allocations: 2.062 MB / 0.5541 GB, free: 6.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000477/0.1546, allocations: 234.6 kB / 0.5543 GB, free: 5.977 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.1548, allocations: 78.55 kB / 0.5544 GB, free: 5.891 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.1548, allocations: 0 / 0.5544 GB, free: 5.891 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000342/0.1552, allocations: 165.8 kB / 0.5545 GB, free: 5.707 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 3.446e-06/0.1552, allocations: 3.984 kB / 0.5545 GB, free: 5.703 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002047/0.1572, allocations: 0.9488 MB / 0.5555 GB, free: 4.699 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.1573, allocations: 144.4 kB / 0.5556 GB, free: 4.527 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005774/0.1579, allocations: 437.8 kB / 0.556 GB, free: 4.094 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.1579, allocations: 29.7 kB / 0.556 GB, free: 4.059 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/0.1582, allocations: 304.2 kB / 0.5563 GB, free: 3.758 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.1583, allocations: 99.2 kB / 0.5564 GB, free: 3.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.1584, allocations: 74.08 kB / 0.5565 GB, free: 3.582 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.1586, allocations: 362.7 kB / 0.5568 GB, free: 3.219 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.1588, allocations: 88.83 kB / 0.5569 GB, free: 3.133 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.159, allocations: 221.5 kB / 0.5571 GB, free: 2.855 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000495/0.1595, allocations: 324 kB / 0.5574 GB, free: 2.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1595, allocations: 4 kB / 0.5574 GB, free: 2.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001012/0.1606, allocations: 441.5 kB / 0.5579 GB, free: 2.035 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.1606, allocations: 8 kB / 0.5579 GB, free: 2.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.1606, allocations: 7.984 kB / 0.5579 GB, free: 2.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004697/0.1611, allocations: 89.34 kB / 0.558 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/0.1614, allocations: 71.91 kB / 0.558 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002427/0.1638, allocations: 1.832 MB / 0.5598 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.1641, allocations: 19.98 kB / 0.5598 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.1641, allocations: 16 kB / 0.5599 GB, free: 15.85 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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.0003049/0.1644, allocations: 214.3 kB / 0.5601 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.1645, allocations: 51.61 kB / 0.5601 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006965/0.1652, allocations: 281 kB / 0.5604 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.1652, allocations: 11.94 kB / 0.5604 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1652, allocations: 0 / 0.5604 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.1652, allocations: 3.984 kB / 0.5604 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.1666, allocations: 0.78 MB / 0.5612 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1666, allocations: 0 / 0.5612 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002894/0.1669, allocations: 47.91 kB / 0.5612 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002445/0.1672, allocations: 48.81 kB / 0.5613 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.1672, allocations: 11.98 kB / 0.5613 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/0.1688, allocations: 1.539 MB / 0.5628 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.1688, allocations: 3.938 kB / 0.5628 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008308/0.1697, allocations: 477.6 kB / 0.5632 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.1699, allocations: 136.8 kB / 0.5634 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.773e-05/0.1699, allocations: 12.11 kB / 0.5634 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.1702, allocations: 16 kB / 0.5634 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.731e-05/0.1702, allocations: 19.97 kB / 0.5634 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.1703, allocations: 7.984 kB / 0.5634 GB, free: 11.95 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004412/0.1707, allocations: 311.1 kB / 0.5637 GB, free: 11.65 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1707, allocations: 4 kB / 0.5637 GB, free: 11.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006076/0.1713, allocations: 127.9 kB / 0.5638 GB, free: 11.52 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.002825/0.1741, allocations: 1.356 MB / 0.5652 GB, free: 10.29 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0009154/0.1751, allocations: 390.8 kB / 0.5655 GB, free: 9.898 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1751, allocations: 0 / 0.5655 GB, free: 9.898 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004301/0.1755, allocations: 234.4 kB / 0.5658 GB, free: 9.656 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008239/0.1763, allocations: 142.5 kB / 0.5659 GB, free: 9.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00708/0.1834, allocations: 4.305 MB / 0.5701 GB, free: 5.008 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005887/0.184, allocations: 0.8738 MB / 0.5709 GB, free: 4.105 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002828/0.1843, allocations: 68.23 kB / 0.571 GB, free: 4.039 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000316/0.1846, allocations: 175.4 kB / 0.5712 GB, free: 3.867 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1846, allocations: 0 / 0.5712 GB, free: 3.867 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04517/0.2298, allocations: 12.14 MB / 0.583 GB, free: 7.828 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.55, allocations: 8 kB / 0.583 GB, free: 7.82 MB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.94903282803716] Failed to read output from testmodel.py, exit status != 0: 13.771754170011263 13.993656737 13.845456746 Calling exit ...