Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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/package.mo", uses=false) 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.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.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",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.00117/0.00117, allocations: 112.9 kB / 17.06 MB, free: 5.992 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.001204/0.001204, allocations: 196 kB / 18.01 MB, free: 5.074 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.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1785/0.1785, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 63.91 kB / 457.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3548, allocations: 58.06 MB / 0.5036 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006041/0.3609, allocations: 4.514 MB / 0.508 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002221/0.3632, allocations: 1.499 MB / 0.5095 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003504/0.3636, allocations: 16.62 kB / 0.5095 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005753/0.3642, allocations: 122.4 kB / 0.5096 GB, free: 3.246 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009415/0.3652, allocations: 285.4 kB / 0.5099 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.3655, allocations: 108.2 kB / 0.51 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008891/0.3664, allocations: 0.5028 MB / 0.5105 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003578/0.3668, allocations: 164.1 kB / 0.5106 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004035/0.3672, allocations: 202 kB / 0.5108 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003746/0.3676, allocations: 211.1 kB / 0.511 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.879e-05/0.3677, allocations: 26.78 kB / 0.5111 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.56e-05/0.3678, allocations: 25.97 kB / 0.5111 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.3679, allocations: 106 kB / 0.5112 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002232/0.3682, allocations: 183.5 kB / 0.5114 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006034/0.3688, allocations: 380.9 kB / 0.5117 GB, free: 2.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3688, allocations: 0 / 0.5117 GB, free: 2.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3688, allocations: 0 / 0.5117 GB, free: 2.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.3688, allocations: 1.344 kB / 0.5117 GB, free: 2.23 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001151/0.37, allocations: 0.6809 MB / 0.5124 GB, free: 1.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.37, allocations: 13.86 kB / 0.5124 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.587e-05/0.3701, allocations: 61.89 kB / 0.5125 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.467e-05/0.3702, allocations: 41.89 kB / 0.5125 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006619/0.3709, allocations: 407.3 kB / 0.5129 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.3709, allocations: 19.97 kB / 0.5129 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.197e-05/0.371, allocations: 30.17 kB / 0.5129 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.3715, allocations: 335.6 kB / 0.5133 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.745e-05/0.3715, allocations: 9.062 kB / 0.5133 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.3716, allocations: 11.75 kB / 0.5133 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.3716, allocations: 7.672 kB / 0.5133 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004102/0.372, allocations: 209 kB / 0.5135 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.3737, allocations: 1.476 MB / 0.5149 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004727/0.3742, allocations: 205.3 kB / 0.5151 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.3744, allocations: 70.55 kB / 0.5152 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.3744, allocations: 3.141 kB / 0.5152 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.3744, allocations: 45.66 kB / 0.5152 GB, free: 15.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.793e-06/0.3744, allocations: 0 / 0.5152 GB, free: 15.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.00136/0.3758, allocations: 0.6998 MB / 0.5159 GB, free: 14.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.912e-05/0.3759, allocations: 131.1 kB / 0.5161 GB, free: 14.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004393/0.3764, allocations: 325.4 kB / 0.5164 GB, free: 14.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.3764, allocations: 29.7 kB / 0.5164 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.3766, allocations: 223.4 kB / 0.5166 GB, free: 14.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.044e-05/0.3767, allocations: 65.53 kB / 0.5167 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.3768, allocations: 52.61 kB / 0.5167 GB, free: 14.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.377, allocations: 348 kB / 0.517 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.3771, allocations: 48.8 kB / 0.5171 GB, free: 13.97 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.3773, allocations: 151.6 kB / 0.5172 GB, free: 13.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003428/0.3776, allocations: 222.8 kB / 0.5175 GB, free: 13.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3776, allocations: 0.9062 kB / 0.5175 GB, free: 13.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004772/0.3781, allocations: 257.1 kB / 0.5177 GB, free: 13.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3782, allocations: 6.25 kB / 0.5177 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.3782, allocations: 3.469 kB / 0.5177 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.017e-05/0.3782, allocations: 9.844 kB / 0.5177 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004649/0.3787, allocations: 81.36 kB / 0.5178 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/0.3798, allocations: 1.369 MB / 0.5191 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.38, allocations: 13.14 kB / 0.5191 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.38, allocations: 10.33 kB / 0.5192 GB, free: 12.06 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002322/0.3803, allocations: 169.9 kB / 0.5193 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.935e-05/0.3804, allocations: 39.28 kB / 0.5194 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003604/0.3807, allocations: 180.6 kB / 0.5195 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.3808, allocations: 3.75 kB / 0.5195 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.3808, allocations: 1.094 kB / 0.5195 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3808, allocations: 7.016 kB / 0.5195 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009792/0.3818, allocations: 0.5437 MB / 0.5201 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3818, allocations: 5.031 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/0.3821, allocations: 38.91 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.3821, allocations: 1.75 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.3821, allocations: 7.438 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.3821, allocations: 2.234 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.3821, allocations: 5.062 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005727/0.3827, allocations: 0.4955 MB / 0.5206 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-05/0.3828, allocations: 101.7 kB / 0.5207 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.326e-05/0.3829, allocations: 6.969 kB / 0.5207 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.3831, allocations: 3.828 kB / 0.5207 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.519e-05/0.3831, allocations: 29.98 kB / 0.5207 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.3831, allocations: 5.281 kB / 0.5207 GB, free: 10.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002863/0.3834, allocations: 223 kB / 0.521 GB, free: 10.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3834, allocations: 5.094 kB / 0.521 GB, free: 10.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004912/0.3839, allocations: 56.47 kB / 0.521 GB, free: 10.73 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008705/0.3848, allocations: 1.029 MB / 0.522 GB, free: 9.812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004546/0.3853, allocations: 157.8 kB / 0.5222 GB, free: 9.766 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3853, allocations: 4.062 kB / 0.5222 GB, free: 9.762 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.3854, allocations: 70.12 kB / 0.5222 GB, free: 9.738 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008735/0.3863, allocations: 95.41 kB / 0.5223 GB, free: 9.703 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004656/0.391, allocations: 3.273 MB / 0.5255 GB, free: 7.371 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004637/0.3915, allocations: 0.8018 MB / 0.5263 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002779/0.3918, allocations: 57.31 kB / 0.5264 GB, free: 6.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.392, allocations: 116.7 kB / 0.5265 GB, free: 6.559 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.392, allocations: 0 / 0.5265 GB, free: 6.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.4215, allocations: 6.714 MB / 0.533 GB, free: 4.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.392/8.813, allocations: 7.828 kB / 0.533 GB, free: 4.875 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)