Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001674/0.001673, allocations: 179.1 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.59/1.59, allocations: 194.3 MB / 203.1 MB, free: 12.96 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001714/0.001714, allocations: 112.6 kB / 248.1 MB, free: 15.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1625/0.1625, allocations: 37.93 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.104e-05/2.106e-05, allocations: 0 / 390.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3193, allocations: 53.23 MB / 443.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.4493, allocations: 90.56 MB / 0.5217 GB, free: 6.973 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/0.4497, allocations: 83.95 kB / 0.5218 GB, free: 6.891 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2999/0.7496, allocations: 7.599 MB / 0.5292 GB, free: 88.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.7496, allocations: 0 / 0.5292 GB, free: 88.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.147e-05/0.7497, allocations: 11.2 kB / 0.5293 GB, free: 88.71 MB / 378.7 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.0009924/0.7507, allocations: 0.5857 MB / 0.5298 GB, free: 88.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.7507, allocations: 9.469 kB / 0.5298 GB, free: 88.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.864e-05/0.7508, allocations: 38.16 kB / 0.5299 GB, free: 88.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001832/0.7527, allocations: 0.7314 MB / 0.5306 GB, free: 88.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.7527, allocations: 13.11 kB / 0.5306 GB, free: 88.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.413e-05/0.7528, allocations: 15.16 kB / 0.5306 GB, free: 88.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000449/0.7532, allocations: 227.7 kB / 0.5308 GB, free: 88.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004911/0.7537, allocations: 314.5 kB / 0.5311 GB, free: 87.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.7538, allocations: 0 / 0.5311 GB, free: 87.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.774e-05/0.7538, allocations: 5.047 kB / 0.5311 GB, free: 87.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.7538, allocations: 7.938 kB / 0.5311 GB, free: 87.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001616/0.7555, allocations: 1.37 MB / 0.5325 GB, free: 87.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002516/0.7557, allocations: 151.6 kB / 0.5326 GB, free: 87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.7559, allocations: 73.72 kB / 0.5327 GB, free: 86.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.7559, allocations: 5.078 kB / 0.5327 GB, free: 86.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.7559, allocations: 41.98 kB / 0.5327 GB, free: 86.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.213e-06/0.7559, allocations: 0 / 0.5327 GB, free: 86.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009822/0.7569, allocations: 0.5864 MB / 0.5333 GB, free: 86.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.757, allocations: 79.62 kB / 0.5334 GB, free: 86.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.7573, allocations: 252 kB / 0.5336 GB, free: 86.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.7573, allocations: 25.7 kB / 0.5336 GB, free: 86.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.7574, allocations: 216.9 kB / 0.5339 GB, free: 86.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.669e-05/0.7575, allocations: 54.58 kB / 0.5339 GB, free: 86.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-06/0.7575, allocations: 0 / 0.5339 GB, free: 86.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.778e-05/0.7576, allocations: 337.6 kB / 0.5342 GB, free: 85.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.7577, allocations: 64.48 kB / 0.5343 GB, free: 85.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.7579, allocations: 154.4 kB / 0.5344 GB, free: 85.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.758, allocations: 88.95 kB / 0.5345 GB, free: 85.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.758, allocations: 5.125 kB / 0.5345 GB, free: 85.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003976/0.7584, allocations: 248.6 kB / 0.5348 GB, free: 85.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.7585, allocations: 6.5 kB / 0.5348 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.7585, allocations: 4.406 kB / 0.5348 GB, free: 85.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.7585, allocations: 13.67 kB / 0.5348 GB, free: 85.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.7588, allocations: 60.23 kB / 0.5348 GB, free: 85.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.7588, allocations: 9.266 kB / 0.5349 GB, free: 85.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.759, allocations: 8.422 kB / 0.5349 GB, free: 85.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.759, allocations: 10.66 kB / 0.5349 GB, free: 85.67 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.048e-05/0.7591, allocations: 116.9 kB / 0.535 GB, free: 85.56 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003069/0.7594, allocations: 190.2 kB / 0.5352 GB, free: 85.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.7594, allocations: 31.94 kB / 0.5352 GB, free: 85.49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004005/0.7599, allocations: 221.2 kB / 0.5354 GB, free: 85.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.7599, allocations: 7.859 kB / 0.5354 GB, free: 85.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.7599, allocations: 0 / 0.5354 GB, free: 85.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.7599, allocations: 4.328 kB / 0.5354 GB, free: 85.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007376/0.7606, allocations: 0.5578 MB / 0.536 GB, free: 85.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.7606, allocations: 0 / 0.536 GB, free: 85.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.7609, allocations: 34.23 kB / 0.536 GB, free: 85.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.321e-06/0.7609, allocations: 10.22 kB / 0.536 GB, free: 85.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.7609, allocations: 5.25 kB / 0.536 GB, free: 85.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.7609, allocations: 1.984 kB / 0.536 GB, free: 85.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.7609, allocations: 1.031 kB / 0.536 GB, free: 85.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005847/0.7615, allocations: 438.7 kB / 0.5364 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.787e-05/0.7616, allocations: 106.3 kB / 0.5365 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.184e-05/0.7616, allocations: 1.312 kB / 0.5365 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.7618, allocations: 3.625 kB / 0.5365 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.728e-05/0.7619, allocations: 12.88 kB / 0.5366 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/0.7619, allocations: 8.125 kB / 0.5366 GB, free: 84.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002288/0.7621, allocations: 192.1 kB / 0.5367 GB, free: 84.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7621, allocations: 0 / 0.5367 GB, free: 84.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004326/0.7626, allocations: 61.95 kB / 0.5368 GB, free: 84.74 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * Number of discrete variables: 1 (system.initime) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008218/0.7634, allocations: 1.103 MB / 0.5379 GB, free: 83.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003408/0.7638, allocations: 179.5 kB / 0.5381 GB, free: 83.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.7638, allocations: 1.375 kB / 0.5381 GB, free: 83.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.7639, allocations: 81.3 kB / 0.5381 GB, free: 83.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.7643, allocations: 62.25 kB / 0.5382 GB, free: 83.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.7654, allocations: 0.5333 MB / 0.5387 GB, free: 83.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.7656, allocations: 0.815 MB / 0.5395 GB, free: 82.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001921/0.7658, allocations: 49.52 kB / 0.5396 GB, free: 82.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001446/0.766, allocations: 115.5 kB / 0.5397 GB, free: 82.6 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.766, allocations: 3.938 kB / 0.5397 GB, free: 82.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02431/0.7903, allocations: 5.1 MB / 0.5446 GB, free: 82.24 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001445/0.7905, allocations: 129.6 kB / 0.5448 GB, free: 82.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.984/2.774, allocations: 0 / 0.5448 GB, free: 82.05 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)