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.00175/0.001749, allocations: 112.5 kB / 17.06 MB, free: 5.949 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.001971/0.001971, allocations: 200.1 kB / 18.01 MB, free: 5.023 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.369/1.369, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1758/0.1758, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.001881, allocations: 63.91 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3395, allocations: 58.05 MB / 0.5036 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005184/0.3447, allocations: 4.529 MB / 0.508 GB, free: 4.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.3467, allocations: 1.498 MB / 0.5095 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001961/0.3469, allocations: 12.62 kB / 0.5095 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003738/0.3473, allocations: 118.3 kB / 0.5096 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005835/0.3479, allocations: 285.6 kB / 0.5099 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.3481, allocations: 104.2 kB / 0.51 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006368/0.3488, allocations: 0.5012 MB / 0.5105 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.3491, allocations: 162.5 kB / 0.5106 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002417/0.3493, allocations: 200.7 kB / 0.5108 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003372/0.3496, allocations: 209 kB / 0.511 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.948e-05/0.3497, allocations: 30.69 kB / 0.5111 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.488e-05/0.3498, allocations: 26.41 kB / 0.5111 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.3499, allocations: 102.1 kB / 0.5112 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002157/0.3502, allocations: 187.4 kB / 0.5114 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005528/0.3507, allocations: 379.8 kB / 0.5117 GB, free: 2.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3507, allocations: 0 / 0.5117 GB, free: 2.207 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3507, allocations: 0 / 0.5117 GB, free: 2.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.3508, allocations: 1.625 kB / 0.5117 GB, free: 2.207 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.0009541/0.3517, allocations: 0.6777 MB / 0.5124 GB, free: 1.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.3518, allocations: 13.48 kB / 0.5124 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.046e-05/0.3518, allocations: 61.75 kB / 0.5125 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.923e-05/0.3519, allocations: 40.97 kB / 0.5125 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005563/0.3525, allocations: 408.8 kB / 0.5129 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.3525, allocations: 23.5 kB / 0.5129 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.91e-05/0.3526, allocations: 34.53 kB / 0.513 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004541/0.353, allocations: 327.1 kB / 0.5133 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.353, allocations: 1.094 kB / 0.5133 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.3531, allocations: 16.16 kB / 0.5133 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.3531, allocations: 6.781 kB / 0.5133 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003275/0.3534, allocations: 203.1 kB / 0.5135 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.3549, allocations: 1.488 MB / 0.5149 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004222/0.3553, allocations: 193.5 kB / 0.5151 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/0.3554, allocations: 79.44 kB / 0.5152 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.3555, allocations: 10.28 kB / 0.5152 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.3555, allocations: 37.97 kB / 0.5152 GB, free: 15.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.3555, allocations: 0 / 0.5152 GB, free: 15.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001162/0.3567, allocations: 0.6951 MB / 0.5159 GB, free: 14.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.284e-05/0.3568, allocations: 140.1 kB / 0.5161 GB, free: 14.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003552/0.3571, allocations: 323.4 kB / 0.5164 GB, free: 14.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.3572, allocations: 26.98 kB / 0.5164 GB, free: 14.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.3574, allocations: 216.5 kB / 0.5166 GB, free: 14.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.297e-05/0.3574, allocations: 72.91 kB / 0.5167 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.524e-05/0.3575, allocations: 51.77 kB / 0.5167 GB, free: 14.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.3577, allocations: 342 kB / 0.517 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.3578, allocations: 48.44 kB / 0.5171 GB, free: 13.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.358, allocations: 155.3 kB / 0.5172 GB, free: 13.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.3583, allocations: 221.9 kB / 0.5174 GB, free: 13.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3583, allocations: 1.594 kB / 0.5174 GB, free: 13.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003895/0.3587, allocations: 256.4 kB / 0.5177 GB, free: 13.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3587, allocations: 7.094 kB / 0.5177 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3588, allocations: 3.281 kB / 0.5177 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.3588, allocations: 9.438 kB / 0.5177 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004019/0.3592, allocations: 82.22 kB / 0.5178 GB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.3603, allocations: 1.373 MB / 0.5191 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.3604, allocations: 9.609 kB / 0.5191 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.3605, allocations: 13.94 kB / 0.5192 GB, free: 12.04 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.0001809/0.3607, allocations: 170.5 kB / 0.5193 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.628e-05/0.3607, allocations: 35.61 kB / 0.5193 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003293/0.3611, allocations: 180.4 kB / 0.5195 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3611, allocations: 7.188 kB / 0.5195 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.3611, allocations: 1.094 kB / 0.5195 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3611, allocations: 2.125 kB / 0.5195 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009035/0.362, allocations: 0.5428 MB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.362, allocations: 1.672 kB / 0.5201 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002526/0.3623, allocations: 47 kB / 0.5201 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.3623, allocations: 2.094 kB / 0.5201 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.3623, allocations: 2.812 kB / 0.5201 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.3623, allocations: 5.812 kB / 0.5201 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.3624, allocations: 5.797 kB / 0.5201 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005484/0.3629, allocations: 494.8 kB / 0.5206 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.372e-05/0.363, allocations: 112.4 kB / 0.5207 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.3631, allocations: 2.938 kB / 0.5207 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.3633, allocations: 9.703 kB / 0.5207 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.569e-05/0.3633, allocations: 19.03 kB / 0.5207 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.3633, allocations: 8.656 kB / 0.5207 GB, free: 10.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002326/0.3636, allocations: 219.4 kB / 0.5209 GB, free: 10.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.104e-06/0.3636, allocations: 1.156 kB / 0.5209 GB, free: 10.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004563/0.364, allocations: 63.81 kB / 0.521 GB, free: 10.71 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.0009714/0.365, allocations: 1.034 MB / 0.522 GB, free: 9.797 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004952/0.3655, allocations: 163.8 kB / 0.5222 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3655, allocations: 0 / 0.5222 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.3657, allocations: 69.5 kB / 0.5222 GB, free: 9.727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007788/0.3665, allocations: 93.45 kB / 0.5223 GB, free: 9.695 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004353/0.3708, allocations: 3.277 MB / 0.5255 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.3713, allocations: 0.8022 MB / 0.5263 GB, free: 6.648 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.3716, allocations: 54.3 kB / 0.5264 GB, free: 6.633 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000186/0.3718, allocations: 111.8 kB / 0.5265 GB, free: 6.551 MB / 398.1 MB Notification: Performance of SimCode: time 1.442e-06/0.3718, allocations: 3.938 kB / 0.5265 GB, free: 6.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04141/0.4132, allocations: 6.704 MB / 0.533 GB, free: 4.883 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.11/9.523, allocations: 3.844 kB / 0.533 GB, free: 4.883 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)