Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001425/0.00143, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.178/2.178, allocations: 205.3 MB / 213.7 MB, free: 1.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001528/0.001528, allocations: 90.64 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.257/0.257, allocations: 37.99 MB / 347.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.493e-05/2.508e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1271, allocations: 56.32 MB / 466.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5365/0.6637, allocations: 93.93 MB / 0.5471 GB, free: 11.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.664, allocations: 87.17 kB / 0.5471 GB, free: 11.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06418/0.7282, allocations: 14.15 MB / 0.561 GB, free: 4.844 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.7283, allocations: 0 / 0.561 GB, free: 4.844 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.216e-05/0.7283, allocations: 4 kB / 0.561 GB, free: 4.84 MB / 362.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.0009622/0.7293, allocations: 0.4939 MB / 0.5615 GB, free: 4.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.7293, allocations: 8.031 kB / 0.5615 GB, free: 4.312 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001939/0.7313, allocations: 99.56 kB / 0.5616 GB, free: 4.215 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006882/0.732, allocations: 271.7 kB / 0.5618 GB, free: 3.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.7321, allocations: 4 kB / 0.5618 GB, free: 3.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.615e-05/0.7322, allocations: 12 kB / 0.5618 GB, free: 3.914 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006157/0.7328, allocations: 196.5 kB / 0.562 GB, free: 3.785 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007423/0.7336, allocations: 287.6 kB / 0.5623 GB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.7336, allocations: 0 / 0.5623 GB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.352e-05/0.7337, allocations: 0 / 0.5623 GB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001853/0.7339, allocations: 19.98 kB / 0.5623 GB, free: 3.523 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003106/0.737, allocations: 1.226 MB / 0.5635 GB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008483/0.7379, allocations: 225.2 kB / 0.5637 GB, free: 2.215 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.7383, allocations: 98.23 kB / 0.5638 GB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.79e-05/0.7383, allocations: 11.91 kB / 0.5638 GB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.7384, allocations: 34.12 kB / 0.5639 GB, free: 2.094 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 4.448e-06/0.7384, allocations: 0 / 0.5639 GB, free: 2.094 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.001209/0.7396, allocations: 343 kB / 0.5642 GB, free: 1.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.7397, allocations: 81.11 kB / 0.5643 GB, free: 1.723 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002669/0.74, allocations: 171 kB / 0.5644 GB, free: 1.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.7401, allocations: 25.7 kB / 0.5645 GB, free: 1.539 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.7402, allocations: 220 kB / 0.5647 GB, free: 1.336 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.94e-05/0.7403, allocations: 58.05 kB / 0.5647 GB, free: 1.285 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.082e-05/0.7403, allocations: 0 / 0.5647 GB, free: 1.285 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.744e-05/0.7404, allocations: 318.3 kB / 0.565 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002291/0.7406, allocations: 83.45 kB / 0.5651 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.7409, allocations: 146.2 kB / 0.5652 GB, free: 0.7734 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003002/0.7413, allocations: 99.69 kB / 0.5653 GB, free: 0.707 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.7413, allocations: 0 / 0.5653 GB, free: 0.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007458/0.742, allocations: 255.4 kB / 0.5656 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.7421, allocations: 11.95 kB / 0.5656 GB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.7421, allocations: 4 kB / 0.5656 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.185e-05/0.7422, allocations: 4 kB / 0.5656 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000549/0.7427, allocations: 63.88 kB / 0.5657 GB, free: 444 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.7428, allocations: 7.984 kB / 0.5657 GB, free: 436 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003747/0.7431, allocations: 7.984 kB / 0.5657 GB, free: 428 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.7432, allocations: 8 kB / 0.5657 GB, free: 420 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * Single equations (assignments): 27 * 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.0001186/0.7433, allocations: 113.8 kB / 0.5658 GB, free: 300 kB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005936/0.7439, allocations: 200.8 kB / 0.566 GB, free: 140 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.375e-05/0.744, allocations: 23.75 kB / 0.566 GB, free: 116 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00068/0.7447, allocations: 217.7 kB / 0.5662 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.7448, allocations: 4 kB / 0.5662 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.7448, allocations: 0 / 0.5662 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.7448, allocations: 3.938 kB / 0.5662 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00283/0.7477, allocations: 0.8867 MB / 0.5671 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/0.7477, allocations: 8.062 kB / 0.5671 GB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.7481, allocations: 35.86 kB / 0.5671 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.979e-05/0.7482, allocations: 8 kB / 0.5671 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.7482, allocations: 7.984 kB / 0.5671 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.545e-05/0.7483, allocations: 11.89 kB / 0.5672 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.816e-05/0.7483, allocations: 8 kB / 0.5672 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.7494, allocations: 0.5788 MB / 0.5677 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.7496, allocations: 96.92 kB / 0.5678 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.156e-05/0.7497, allocations: 7.984 kB / 0.5678 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003484/0.75, allocations: 8 kB / 0.5678 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.788e-05/0.7502, allocations: 23.25 kB / 0.5679 GB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.653e-05/0.7502, allocations: 11.88 kB / 0.5679 GB, free: 14.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002573/0.7505, allocations: 141.2 kB / 0.568 GB, free: 14.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7505, allocations: 0 / 0.568 GB, free: 14.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008933/0.7514, allocations: 52 kB / 0.5681 GB, free: 14.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 simulation (18): * Single equations (assignments): 17 * 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.002032/0.7535, allocations: 2.223 MB / 0.5702 GB, free: 11.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007814/0.7543, allocations: 197.5 kB / 0.5704 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.7543, allocations: 0 / 0.5704 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003139/0.7547, allocations: 86.7 kB / 0.5705 GB, free: 11.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007132/0.7554, allocations: 38.39 kB / 0.5705 GB, free: 11.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.7574, allocations: 0.5196 MB / 0.571 GB, free: 10.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006288/0.7581, allocations: 0.7683 MB / 0.5718 GB, free: 10.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.7584, allocations: 66.09 kB / 0.5719 GB, free: 10.16 MB / 378.7 MB Notification: Performance of SimCode: time 1.283e-06/0.7585, allocations: 0 / 0.5719 GB, free: 10.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.519/3.277, allocations: 3.609 MB / 0.5754 GB, free: 6.59 MB / 378.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1)