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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) 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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.177/0.177, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 65.19 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.136, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007935/0.1439, allocations: 5.681 MB / 462.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004078/0.148, allocations: 2.13 MB / 464.8 MB, free: 108 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005337/0.1486, allocations: 15.94 kB / 464.8 MB, free: 92 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008018/0.1494, allocations: 170.8 kB / 465 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001557/0.151, allocations: 421.6 kB / 465.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008659/0.1519, allocations: 254.5 kB / 465.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001586/0.1535, allocations: 0.8331 MB / 466.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001051/0.1546, allocations: 0.4967 MB / 467 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009681/0.1555, allocations: 342.7 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008503/0.1564, allocations: 350.6 kB / 467.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001756/0.1566, allocations: 52 kB / 467.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003763/0.157, allocations: 99.97 kB / 467.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002737/0.1573, allocations: 175.5 kB / 468 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005059/0.1578, allocations: 314.5 kB / 468.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001133/0.1589, allocations: 0.7281 MB / 469 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1589, allocations: 0 / 469 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1589, allocations: 0 / 469 MB, free: 11.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.191e-05/0.159, allocations: 0 / 469 MB, free: 11.89 MB / 350.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.002328/0.1613, allocations: 0.9018 MB / 469.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.1614, allocations: 11.89 kB / 469.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.1615, allocations: 82.7 kB / 470 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.1617, allocations: 68.19 kB / 470.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.1628, allocations: 0.4902 MB / 470.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/0.1628, allocations: 29 kB / 470.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.163, allocations: 59.89 kB / 470.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009076/0.1639, allocations: 0.5095 MB / 471.1 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.1639, allocations: 8 kB / 471.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.76e-05/0.164, allocations: 16 kB / 471.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-05/0.164, allocations: 24.92 kB / 471.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005692/0.1646, allocations: 331.7 kB / 471.5 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002939/0.1676, allocations: 2.074 MB / 473.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000463/0.168, allocations: 231.6 kB / 473.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.1682, allocations: 86.67 kB / 473.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.1682, allocations: 4.234 kB / 473.9 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002898/0.1685, allocations: 164.6 kB / 474.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.013e-06/0.1686, allocations: 7.875 kB / 474.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.002038/0.1706, allocations: 0.9144 MB / 475 MB, free: 5.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001856/0.1708, allocations: 132.5 kB / 475.1 MB, free: 5.363 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006937/0.1715, allocations: 430.1 kB / 475.5 MB, free: 4.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.1716, allocations: 37.7 kB / 475.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.1718, allocations: 287.6 kB / 475.9 MB, free: 4.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.1719, allocations: 94.73 kB / 475.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.1721, allocations: 78.03 kB / 476 MB, free: 4.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1723, allocations: 358.7 kB / 476.4 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.1724, allocations: 88.77 kB / 476.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.1727, allocations: 221.8 kB / 476.7 MB, free: 3.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005506/0.1733, allocations: 321.7 kB / 477 MB, free: 3.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1733, allocations: 4 kB / 477 MB, free: 3.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009427/0.1743, allocations: 445.6 kB / 477.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.1743, allocations: 8 kB / 477.4 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.1743, allocations: 4 kB / 477.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004457/0.1748, allocations: 92.94 kB / 477.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002557/0.175, allocations: 75.91 kB / 477.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002703/0.1777, allocations: 1.825 MB / 479.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.1781, allocations: 23.92 kB / 479.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.1781, allocations: 16 kB / 479.5 MB, free: 0.6914 MB / 350.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.0003379/0.1785, allocations: 213.7 kB / 479.7 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-05/0.1786, allocations: 47.38 kB / 479.7 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006085/0.1792, allocations: 282.1 kB / 480 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.1792, allocations: 4 kB / 480 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1792, allocations: 3.938 kB / 480 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.1792, allocations: 3.984 kB / 480 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.1807, allocations: 0.7785 MB / 480.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.1807, allocations: 3.938 kB / 480.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.181, allocations: 47.92 kB / 480.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000219/0.1812, allocations: 48.8 kB / 480.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.1813, allocations: 8 kB / 480.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001521/0.1828, allocations: 1.539 MB / 482.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1828, allocations: 0 / 482.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007783/0.1836, allocations: 490.5 kB / 482.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001589/0.1838, allocations: 140.5 kB / 483 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.893e-05/0.1838, allocations: 4 kB / 483.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.1841, allocations: 12 kB / 483.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/0.1842, allocations: 23.97 kB / 483.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.1842, allocations: 7.984 kB / 483.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005544/0.1847, allocations: 299.1 kB / 483.4 MB, free: 12.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1848, allocations: 0 / 483.4 MB, free: 12.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005603/0.1853, allocations: 112 kB / 483.5 MB, free: 12.4 MB / 366.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.002053/0.1874, allocations: 1.308 MB / 484.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008879/0.1883, allocations: 410.7 kB / 485.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1883, allocations: 0 / 485.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003952/0.1887, allocations: 237 kB / 485.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007373/0.1895, allocations: 133.9 kB / 485.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007606/0.1971, allocations: 4.3 MB / 489.9 MB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006525/0.1977, allocations: 0.8777 MB / 490.7 MB, free: 5.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000325/0.1981, allocations: 64.23 kB / 490.8 MB, free: 4.949 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.1984, allocations: 175.4 kB / 491 MB, free: 4.777 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1984, allocations: 0 / 491 MB, free: 4.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0587/0.2571, allocations: 11.29 MB / 0.4905 GB, free: 9.691 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/11.94, allocations: 2.75 kB / 0.4905 GB, free: 9.691 MB / 382.1 MB (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)