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.001437/0.001437, allocations: 124.5 kB / 17.79 MB, free: 5.266 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.001484/0.001484, allocations: 211.2 kB / 20.75 MB, free: 2.312 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.545/1.545, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.1858/0.1858, allocations: 38.51 MB / 348.7 MB, free: 2.637 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.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",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.002961/0.002961, allocations: 67.89 kB / 487.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.129, allocations: 62.43 MB / 0.5367 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.01204/0.1411, allocations: 5.777 MB / 0.5423 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006804/0.1479, allocations: 2.301 MB / 0.5446 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005339/0.1484, allocations: 23.81 kB / 0.5446 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009147/0.1493, allocations: 182.6 kB / 0.5448 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001873/0.1512, allocations: 465.5 kB / 0.5452 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.1522, allocations: 239.5 kB / 0.5454 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001821/0.1541, allocations: 0.8642 MB / 0.5463 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000851/0.1549, allocations: 428.7 kB / 0.5467 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007964/0.1557, allocations: 370.6 kB / 0.5471 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008034/0.1565, allocations: 358.6 kB / 0.5474 GB, free: 12.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001282/0.1566, allocations: 56 kB / 0.5474 GB, free: 12.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004272/0.1571, allocations: 155.9 kB / 0.5476 GB, free: 12.33 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003007/0.1574, allocations: 179.5 kB / 0.5478 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004719/0.1578, allocations: 314.4 kB / 0.5481 GB, free: 11.85 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001486/0.1593, allocations: 0.7861 MB / 0.5488 GB, free: 11.06 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1593, allocations: 4 kB / 0.5488 GB, free: 11.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1593, allocations: 0 / 0.5488 GB, free: 11.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.1593, allocations: 7.938 kB / 0.5488 GB, free: 11.05 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.002628/0.162, allocations: 0.9284 MB / 0.5498 GB, free: 10.06 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.162, allocations: 12.03 kB / 0.5498 GB, free: 10.05 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.1622, allocations: 82.7 kB / 0.5498 GB, free: 9.961 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001876/0.1624, allocations: 64.52 kB / 0.5499 GB, free: 9.898 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.1638, allocations: 0.5372 MB / 0.5504 GB, free: 9.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.733e-05/0.1639, allocations: 33 kB / 0.5505 GB, free: 9.289 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001634/0.164, allocations: 43.95 kB / 0.5505 GB, free: 9.246 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.1654, allocations: 0.5251 MB / 0.551 GB, free: 8.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.1654, allocations: 0 / 0.551 GB, free: 8.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.269e-05/0.1655, allocations: 16 kB / 0.551 GB, free: 8.664 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/0.1656, allocations: 17 kB / 0.551 GB, free: 8.648 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009739/0.1665, allocations: 347.6 kB / 0.5514 GB, free: 8.309 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004249/0.1708, allocations: 2.066 MB / 0.5534 GB, free: 6.125 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007347/0.1715, allocations: 230.5 kB / 0.5536 GB, free: 5.875 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.1718, allocations: 70.62 kB / 0.5537 GB, free: 5.797 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.1718, allocations: 11.98 kB / 0.5537 GB, free: 5.785 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004433/0.1722, allocations: 157.9 kB / 0.5538 GB, free: 5.609 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.364e-06/0.1722, allocations: 0 / 0.5538 GB, free: 5.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002948/0.1752, allocations: 0.9486 MB / 0.5548 GB, free: 4.605 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.1753, allocations: 132.5 kB / 0.5549 GB, free: 4.445 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009293/0.1762, allocations: 449.8 kB / 0.5553 GB, free: 3.996 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.181e-05/0.1763, allocations: 29.7 kB / 0.5554 GB, free: 3.961 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003573/0.1767, allocations: 300.2 kB / 0.5556 GB, free: 3.664 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.1768, allocations: 95.44 kB / 0.5557 GB, free: 3.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.177, allocations: 82.14 kB / 0.5558 GB, free: 3.484 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002436/0.1772, allocations: 366.7 kB / 0.5562 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/0.1776, allocations: 92.77 kB / 0.5562 GB, free: 3.027 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004462/0.178, allocations: 221.5 kB / 0.5565 GB, free: 2.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008184/0.1789, allocations: 310.2 kB / 0.5568 GB, free: 2.391 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.1789, allocations: 4 kB / 0.5568 GB, free: 2.387 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001625/0.1805, allocations: 447 kB / 0.5572 GB, free: 1.941 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.1805, allocations: 8 kB / 0.5572 GB, free: 1.934 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.1805, allocations: 8.031 kB / 0.5572 GB, free: 1.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007372/0.1813, allocations: 96.7 kB / 0.5573 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004747/0.1817, allocations: 67.91 kB / 0.5574 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/0.1851, allocations: 1.817 MB / 0.5591 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.1855, allocations: 19.98 kB / 0.5592 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.1855, allocations: 20 kB / 0.5592 GB, free: 15.76 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.0004151/0.1859, allocations: 216.4 kB / 0.5594 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.1861, allocations: 51.61 kB / 0.5594 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009494/0.187, allocations: 288.9 kB / 0.5597 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.187, allocations: 0 / 0.5597 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.187, allocations: 4 kB / 0.5597 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.187, allocations: 0 / 0.5597 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.1889, allocations: 0.7761 MB / 0.5605 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.1889, allocations: 7.938 kB / 0.5605 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004748/0.1894, allocations: 47.92 kB / 0.5605 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000347/0.1897, allocations: 56.78 kB / 0.5606 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-05/0.1898, allocations: 4 kB / 0.5606 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002002/0.1918, allocations: 1.547 MB / 0.5621 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1918, allocations: 0 / 0.5621 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.1928, allocations: 481.5 kB / 0.5625 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.193, allocations: 140.8 kB / 0.5627 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.213e-05/0.1931, allocations: 4 kB / 0.5627 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002999/0.1934, allocations: 15.98 kB / 0.5627 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-05/0.1935, allocations: 19.97 kB / 0.5627 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.1936, allocations: 12 kB / 0.5627 GB, free: 11.86 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005113/0.1941, allocations: 311.1 kB / 0.563 GB, free: 11.55 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1941, allocations: 0 / 0.563 GB, free: 11.55 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007941/0.1949, allocations: 131.9 kB / 0.5632 GB, free: 11.43 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.003064/0.198, allocations: 1.355 MB / 0.5645 GB, free: 10.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008511/0.1988, allocations: 382.2 kB / 0.5648 GB, free: 9.812 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1988, allocations: 0 / 0.5648 GB, free: 9.812 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004058/0.1992, allocations: 239.4 kB / 0.5651 GB, free: 9.566 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007222/0.2, allocations: 138.6 kB / 0.5652 GB, free: 9.438 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006277/0.2062, allocations: 4.31 MB / 0.5694 GB, free: 4.914 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006474/0.2069, allocations: 0.8816 MB / 0.5703 GB, free: 4.004 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003194/0.2072, allocations: 68.23 kB / 0.5703 GB, free: 3.938 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/0.2075, allocations: 179.4 kB / 0.5705 GB, free: 3.762 MB / 430.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2075, allocations: 0 / 0.5705 GB, free: 3.762 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04462/0.2521, allocations: 12.09 MB / 0.5823 GB, free: 7.762 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.35, allocations: 11.59 kB / 0.5823 GB, free: 7.754 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 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.824456478003412] Failed to read output from testmodel.py, exit status != 0: 13.516224428080022 13.760457224 13.597581767 Calling exit ...