Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001378/0.001378, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.332/1.332, allocations: 194.5 MB / 211.6 MB, free: 3.039 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.001612/0.001612, allocations: 113.5 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.162/0.162, allocations: 38 MB / 340.1 MB, free: 1.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.0003509, allocations: 8 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1004, allocations: 53.24 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3357/0.4362, allocations: 89.18 MB / 0.5335 GB, free: 5.988 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.4364, allocations: 88.27 kB / 0.5336 GB, free: 5.941 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01425/0.4507, allocations: 6.135 MB / 0.5396 GB, free: 0.668 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4507, allocations: 4 kB / 0.5396 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.4507, allocations: 4 kB / 0.5396 GB, free: 0.6602 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007509/0.4515, allocations: 0.5472 MB / 0.5401 GB, free: 88 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.4515, allocations: 15.95 kB / 0.5401 GB, free: 72 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.277e-05/0.4516, allocations: 54.73 kB / 0.5402 GB, free: 20 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.618e-05/0.4517, allocations: 27.67 kB / 0.5402 GB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001906/0.4536, allocations: 0.7595 MB / 0.5409 GB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.4537, allocations: 14.62 kB / 0.541 GB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.323e-05/0.4537, allocations: 26.16 kB / 0.541 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004084/0.4541, allocations: 271.1 kB / 0.5412 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.4542, allocations: 0 / 0.5412 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.664e-05/0.4542, allocations: 17.64 kB / 0.5413 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.4542, allocations: 4 kB / 0.5413 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.4545, allocations: 158.7 kB / 0.5414 GB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.4559, allocations: 1.176 MB / 0.5426 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.456, allocations: 77.09 kB / 0.5426 GB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.456, allocations: 4.062 kB / 0.5426 GB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.4561, allocations: 33.62 kB / 0.5427 GB, free: 13.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.743e-06/0.4561, allocations: 0 / 0.5427 GB, free: 13.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0008653/0.457, allocations: 414.4 kB / 0.5431 GB, free: 13.22 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/0.457, allocations: 84.53 kB / 0.5431 GB, free: 13.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002492/0.4573, allocations: 215.9 kB / 0.5433 GB, free: 12.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.4573, allocations: 29.7 kB / 0.5434 GB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.4575, allocations: 192.4 kB / 0.5436 GB, free: 12.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.825e-05/0.4575, allocations: 26.95 kB / 0.5436 GB, free: 12.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-06/0.4575, allocations: 3.812 kB / 0.5436 GB, free: 12.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.4577, allocations: 336.8 kB / 0.5439 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.039e-05/0.4577, allocations: 26.92 kB / 0.5439 GB, free: 12.37 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.4579, allocations: 117.7 kB / 0.544 GB, free: 12.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.677e-05/0.458, allocations: 45.5 kB / 0.5441 GB, free: 12.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.458, allocations: 0 / 0.5441 GB, free: 12.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002667/0.4583, allocations: 183.3 kB / 0.5443 GB, free: 12.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.4584, allocations: 12.02 kB / 0.5443 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4584, allocations: 4 kB / 0.5443 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.4584, allocations: 8 kB / 0.5443 GB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.4586, allocations: 43.23 kB / 0.5443 GB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.4586, allocations: 11.89 kB / 0.5443 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.4587, allocations: 4 kB / 0.5443 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.4587, allocations: 11.38 kB / 0.5444 GB, free: 11.95 MB / 362.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 0.0001362/0.4588, allocations: 150 kB / 0.5445 GB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.577e-05/0.4589, allocations: 23.72 kB / 0.5445 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.4591, allocations: 97.98 kB / 0.5446 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4591, allocations: 0 / 0.5446 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4591, allocations: 4.438 kB / 0.5446 GB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.4591, allocations: 3.953 kB / 0.5446 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004363/0.4595, allocations: 421 kB / 0.545 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4596, allocations: 4 kB / 0.545 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.383e-05/0.4597, allocations: 19.98 kB / 0.545 GB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.4597, allocations: 0 / 0.545 GB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.4597, allocations: 8.031 kB / 0.5451 GB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.4597, allocations: 4.031 kB / 0.5451 GB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.4597, allocations: 7.922 kB / 0.5451 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002531/0.46, allocations: 250.2 kB / 0.5453 GB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.63e-05/0.46, allocations: 100.5 kB / 0.5454 GB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.4601, allocations: 7.984 kB / 0.5454 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.174e-05/0.4602, allocations: 0 / 0.5454 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.613e-05/0.4602, allocations: 7.312 kB / 0.5454 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.4602, allocations: 0 / 0.5454 GB, free: 10.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001758/0.4604, allocations: 173.1 kB / 0.5456 GB, free: 10.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4604, allocations: 0 / 0.5456 GB, free: 10.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003071/0.4607, allocations: 39.94 kB / 0.5456 GB, free: 10.67 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.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 (9): * Single equations (assignments): 8 * 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.0005774/0.4613, allocations: 0.9192 MB / 0.5465 GB, free: 9.742 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001399/0.4614, allocations: 87.03 kB / 0.5466 GB, free: 9.672 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4614, allocations: 0 / 0.5466 GB, free: 9.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.022e-05/0.4615, allocations: 34.11 kB / 0.5466 GB, free: 9.645 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.4619, allocations: 53.11 kB / 0.5467 GB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.4645, allocations: 3.463 MB / 0.5501 GB, free: 6.148 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004096/0.4649, allocations: 0.7674 MB / 0.5508 GB, free: 5.363 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.465, allocations: 30.27 kB / 0.5508 GB, free: 5.332 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.4652, allocations: 69.3 kB / 0.5509 GB, free: 5.309 MB / 362.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4652, allocations: 0 / 0.5509 GB, free: 5.309 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01563/0.4808, allocations: 3.839 MB / 0.5547 GB, free: 1.496 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002311/0.4811, allocations: 184.5 kB / 0.5548 GB, free: 1.246 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/2.296, allocations: 0 / 0.5548 GB, free: 1.246 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)