Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.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/Modelica_Synchronous 0.93.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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(OpenIPSL.Examples.Tutorial.Example_3.Example_3,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_Tutorial_Example_3_Example_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_3.Example_3,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_Tutorial_Example_3_Example_3",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.005139/0.005139, allocations: 171.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.4 MB / 221.3 MB, free: 13.81 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008444/0.0008443, allocations: 90.81 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06514/0.06514, allocations: 12.2 MB / 330.1 MB, free: 10.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4708/0.4708, allocations: 78.51 MB / 459.6 MB, free: 3.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005907/0.0005907, allocations: 22.5 kB / 0.528 GB, free: 35.32 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1384, allocations: 69.24 MB / 0.5956 GB, free: 4.262 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4279/0.5664, allocations: 104.7 MB / 0.6979 GB, free: 37.2 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.5667, allocations: 83.02 kB / 0.698 GB, free: 37.2 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1937/0.7604, allocations: 82.18 MB / 0.7782 GB, free: 13.02 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.7604, allocations: 4 kB / 0.7782 GB, free: 13.01 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001681/0.7606, allocations: 58.22 kB / 0.7783 GB, free: 13 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.01077/0.7714, allocations: 4.07 MB / 0.7823 GB, free: 10.61 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.7715, allocations: 13.48 kB / 0.7823 GB, free: 10.61 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009752/0.7724, allocations: 269.4 kB / 0.7825 GB, free: 10.51 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007321/0.7798, allocations: 1.187 MB / 0.7837 GB, free: 9.82 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004939/0.7847, allocations: 1.837 MB / 0.7855 GB, free: 8.41 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003736/0.7851, allocations: 483.2 kB / 0.786 GB, free: 7.941 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003979/0.7855, allocations: 189.8 kB / 0.7861 GB, free: 7.816 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004383/0.7899, allocations: 2.49 MB / 0.7886 GB, free: 6.117 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.418e-05/0.79, allocations: 4 kB / 0.7886 GB, free: 6.113 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002011/0.7902, allocations: 75.88 kB / 0.7887 GB, free: 6.094 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.527e-05/0.7902, allocations: 44 kB / 0.7887 GB, free: 6.051 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004148/0.7944, allocations: 2.345 MB / 0.791 GB, free: 4.488 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01695/0.8113, allocations: 9.081 MB / 0.7999 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/0.8223, allocations: 4.96 MB / 0.8047 GB, free: 6.855 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004375/0.8228, allocations: 45.89 kB / 0.8047 GB, free: 6.812 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004225/0.827, allocations: 1.868 MB / 0.8066 GB, free: 4.922 MB / 490.7 MB Notification: Performance of pre-optimization done (n=242): time 4.067e-06/0.827, allocations: 0 / 0.8066 GB, free: 4.922 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.06888/0.8959, allocations: 17.56 MB / 0.8237 GB, free: 3.23 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001554/0.8961, allocations: 239.6 kB / 0.8239 GB, free: 2.949 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004424/0.9006, allocations: 2.146 MB / 0.826 GB, free: 0.793 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007151/0.9013, allocations: 65.7 kB / 0.8261 GB, free: 0.7227 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009959/0.9023, allocations: 1.146 MB / 0.8272 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001303/0.9036, allocations: 0.8316 MB / 0.828 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001901/0.9038, allocations: 52 kB / 0.8281 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001912/0.904, allocations: 403 kB / 0.8285 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002817/0.9068, allocations: 1.387 MB / 0.8298 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002932/0.9098, allocations: 1.662 MB / 0.8314 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003169/0.913, allocations: 1.669 MB / 0.8331 GB, free: 9.41 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.913, allocations: 0 / 0.8331 GB, free: 9.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.02089/0.9339, allocations: 7.735 MB / 0.8406 GB, free: 1.566 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.934, allocations: 170.2 kB / 0.8408 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.9341, allocations: 7.984 kB / 0.8408 GB, free: 1.355 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0113/0.9454, allocations: 3.336 MB / 0.8441 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002784/0.9482, allocations: 483.3 kB / 0.8445 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0356/0.9838, allocations: 20.04 MB / 0.8641 GB, free: 8.801 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0045/0.9883, allocations: 413.8 kB / 0.8645 GB, free: 8.395 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004396/0.9888, allocations: 87.97 kB / 0.8646 GB, free: 8.309 MB / 0.5417 GB Warning: Assuming fixed start value for the following 9 variables: gen3.gen.w:VARIABLE(start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen2.gen.w:VARIABLE(start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen1.gen.w:VARIABLE(start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen3.AVR.firstOrder2.y:VARIABLE(start = gen3.AVR.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real gen3.gen.e1d:VARIABLE(start = gen3.gen.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real gen3.gen.e1q:VARIABLE(start = gen3.gen.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real gen3.gen.delta:VARIABLE(start = gen3.gen.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real gen2.AVR.firstOrder2.y:VARIABLE(start = gen2.AVR.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real gen2.gen.e1d:VARIABLE(start = gen2.gen.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 3 {4 2,30 32,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001608/0.9904, allocations: 0.5983 MB / 0.8651 GB, free: 7.688 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007361/0.9912, allocations: 300.3 kB / 0.8654 GB, free: 7.391 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02329/1.014, allocations: 8.58 MB / 0.8738 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.451e-05/1.015, allocations: 31.92 kB / 0.8738 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/1.015, allocations: 4 kB / 0.8738 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.842e-05/1.015, allocations: 11.95 kB / 0.8739 GB, free: 14.71 MB / 0.5573 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0312/1.046, allocations: 12.53 MB / 0.8861 GB, free: 1.941 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.059e-05/1.046, allocations: 0 / 0.8861 GB, free: 1.941 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/1.048, allocations: 247.6 kB / 0.8863 GB, free: 1.699 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01208/1.06, allocations: 3.815 MB / 0.8901 GB, free: 13.87 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006731/1.06, allocations: 55.98 kB / 0.8901 GB, free: 13.82 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03984/1.1, allocations: 21.23 MB / 0.9108 GB, free: 8.016 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.1, allocations: 0 / 0.9108 GB, free: 8.016 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2957/1.396, allocations: 10.55 MB / 0.9211 GB, free: 162.9 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001375/1.397, allocations: 455.8 kB / 0.9216 GB, free: 162.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006833/1.398, allocations: 51.5 kB / 0.9216 GB, free: 162.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002512/1.401, allocations: 277 kB / 0.9219 GB, free: 162.8 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001149/1.402, allocations: 389.9 kB / 0.9223 GB, free: 162.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000171/1.402, allocations: 63.53 kB / 0.9223 GB, free: 162.8 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003223/1.405, allocations: 1.655 MB / 0.9239 GB, free: 162.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/1.405, allocations: 0 / 0.9239 GB, free: 162.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.004995/1.41, allocations: 0.9739 MB / 0.9249 GB, free: 162.7 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 24 (gen1.gen.delta,gen1.gen.w,gen1.gen.e1q,gen1.gen.e1d,gen1.AVR.ExcitationSystem.x_scaled[1],gen1.AVR.derivativeBlock.x,gen1.AVR.firstOrder2.y,gen1.AVR.simpleLagLim.state,gen2.gen.delta,gen2.gen.w,gen2.gen.e1q,gen2.gen.e1d,gen2.AVR.ExcitationSystem.x_scaled[1],gen2.AVR.derivativeBlock.x,gen2.AVR.firstOrder2.y,gen2.AVR.simpleLagLim.state,gen3.gen.delta,gen3.gen.w,gen3.gen.e1q,gen3.gen.e1d,gen3.AVR.ExcitationSystem.x_scaled[1],gen3.AVR.derivativeBlock.x,gen3.AVR.firstOrder2.y,gen3.AVR.simpleLagLim.state) * Number of discrete variables: 6 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {41 45,1 6,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02843/1.439, allocations: 11.39 MB / 0.936 GB, free: 161.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01134/1.45, allocations: 5.702 MB / 0.9416 GB, free: 160.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/1.45, allocations: 0 / 0.9416 GB, free: 160.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.008425/1.459, allocations: 3.868 MB / 0.9454 GB, free: 159.3 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/1.461, allocations: 251.1 kB / 0.9456 GB, free: 159.3 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/1.474, allocations: 11.09 MB / 0.9564 GB, free: 152.4 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001402/1.475, allocations: 1.844 MB / 0.9582 GB, free: 151.7 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001364/1.476, allocations: 225.5 kB / 0.9584 GB, free: 151.7 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001459/1.478, allocations: 1.187 MB / 0.9596 GB, free: 151.6 MB / 0.5886 GB Notification: Performance of SimCode: time 1.433e-06/1.478, allocations: 0 / 0.9596 GB, free: 151.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1052/1.583, allocations: 71.89 MB / 1.03 GB, free: 112.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/1.583, allocations: 211.5 kB / 1.03 GB, free: 112 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.6/6.184, allocations: 0 / 1.03 GB, free: 112 MB / 0.5886 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_Tutorial_Example_3_Example_3_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_Tutorial_Example_3_Example_3.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe 2>&1)