Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) 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) Running command: "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_3.Example_3,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_3_Example_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_3.Example_3,fileNamePrefix="OpenIPSL_dev_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 4.0.0+maint.om/package.mo): time 0.01168/0.01168, allocations: 169.3 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.653/1.653, allocations: 223.2 MB / 239 MB, free: 1.785 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009908/0.000991, allocations: 92.83 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5198/0.5198, allocations: 79.44 MB / 420.7 MB, free: 43.64 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000457/0.0004568, allocations: 16 kB / 0.4891 GB, free: 1.926 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5411/0.5416, allocations: 69.5 MB / 0.557 GB, free: 39.01 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1569/0.6985, allocations: 103.9 MB / 0.6585 GB, free: 1.641 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003881/0.699, allocations: 83.95 kB / 0.6586 GB, free: 1.559 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2904/0.9895, allocations: 86.8 MB / 0.7433 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.156e-06/0.9895, allocations: 0 / 0.7433 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000345/0.9899, allocations: 56 kB / 0.7434 GB, free: 10.04 MB / 0.5417 GB 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.0156/1.005, allocations: 4.097 MB / 0.7474 GB, free: 5.84 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.882e-05/1.006, allocations: 8.031 kB / 0.7474 GB, free: 5.832 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001319/1.007, allocations: 265.7 kB / 0.7476 GB, free: 5.562 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007933/1.015, allocations: 1.19 MB / 0.7488 GB, free: 4.367 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005415/1.02, allocations: 1.831 MB / 0.7506 GB, free: 2.473 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004909/1.021, allocations: 476.5 kB / 0.751 GB, free: 1.945 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005747/1.021, allocations: 188 kB / 0.7512 GB, free: 1.762 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005332/1.027, allocations: 2.494 MB / 0.7537 GB, free: 15.24 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.664e-05/1.027, allocations: 0 / 0.7537 GB, free: 15.24 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/1.027, allocations: 75.95 kB / 0.7537 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.736e-05/1.027, allocations: 44 kB / 0.7538 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004801/1.032, allocations: 2.337 MB / 0.7561 GB, free: 12.78 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 preOpt removeSimpleEquations (simulation): time 0.02066/1.053, allocations: 9.14 MB / 0.765 GB, free: 3.301 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3862/1.439, allocations: 4.942 MB / 0.7698 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005312/1.439, allocations: 40.42 kB / 0.7698 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004899/1.444, allocations: 1.876 MB / 0.7717 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=242): time 6.602e-06/1.444, allocations: 4.188 kB / 0.7717 GB, free: 116.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=242): time 0.07252/1.517, allocations: 18.24 MB / 0.7895 GB, free: 115.5 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/1.517, allocations: 246.2 kB / 0.7897 GB, free: 115.2 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004517/1.522, allocations: 2.142 MB / 0.7918 GB, free: 115 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0007902/1.522, allocations: 72.55 kB / 0.7919 GB, free: 115 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009111/1.523, allocations: 1.148 MB / 0.793 GB, free: 114.8 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001401/1.525, allocations: 0.8422 MB / 0.7938 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002062/1.525, allocations: 49.41 kB / 0.7939 GB, free: 114.4 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002282/1.525, allocations: 397.6 kB / 0.7943 GB, free: 114.1 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003092/1.528, allocations: 1.384 MB / 0.7956 GB, free: 114 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003599/1.532, allocations: 1.655 MB / 0.7972 GB, free: 113.8 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003646/1.536, allocations: 1.669 MB / 0.7989 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/1.536, allocations: 1.25 kB / 0.7989 GB, free: 113.5 MB / 0.5573 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.02509/1.561, allocations: 7.724 MB / 0.8064 GB, free: 112.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/1.561, allocations: 173.1 kB / 0.8066 GB, free: 112.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/1.561, allocations: 9.281 kB / 0.8066 GB, free: 112.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01332/1.574, allocations: 3.324 MB / 0.8098 GB, free: 112.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003158/1.577, allocations: 489.5 kB / 0.8103 GB, free: 112.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03652/1.614, allocations: 20.05 MB / 0.8299 GB, free: 103.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005199/1.619, allocations: 423.9 kB / 0.8303 GB, free: 103.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009822/1.62, allocations: 86.95 kB / 0.8303 GB, free: 103.5 MB / 0.5573 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.002515/1.623, allocations: 0.5965 MB / 0.8309 GB, free: 103.1 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001129/1.624, allocations: 306 kB / 0.8312 GB, free: 103 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02388/1.648, allocations: 8.574 MB / 0.8396 GB, free: 100.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.698e-05/1.648, allocations: 30.28 kB / 0.8396 GB, free: 100.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.648, allocations: 0 / 0.8396 GB, free: 100.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000101/1.648, allocations: 14.03 kB / 0.8396 GB, free: 100.8 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.03039/1.678, allocations: 12.55 MB / 0.8519 GB, free: 96.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.539e-05/1.678, allocations: 0 / 0.8519 GB, free: 96.39 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001703/1.68, allocations: 247.4 kB / 0.8521 GB, free: 96.38 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01192/1.692, allocations: 3.811 MB / 0.8559 GB, free: 95.7 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006611/1.693, allocations: 55.02 kB / 0.8559 GB, free: 95.67 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03954/1.732, allocations: 21.24 MB / 0.8766 GB, free: 80.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.732, allocations: 4 kB / 0.8766 GB, free: 80.65 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02759/1.76, allocations: 10.58 MB / 0.887 GB, free: 71.78 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/1.762, allocations: 456.9 kB / 0.8874 GB, free: 71.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008289/1.762, allocations: 48 kB / 0.8875 GB, free: 71.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002718/1.765, allocations: 291.3 kB / 0.8877 GB, free: 71.11 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001259/1.766, allocations: 386 kB / 0.8881 GB, free: 70.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001772/1.767, allocations: 63.38 kB / 0.8882 GB, free: 70.84 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002926/1.77, allocations: 1.658 MB / 0.8898 GB, free: 69.45 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2e-07/1.77, allocations: 3.281 kB / 0.8898 GB, free: 69.45 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.003941/1.774, allocations: 0.9707 MB / 0.8907 GB, free: 68.51 MB / 0.5573 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.02707/1.801, allocations: 11.43 MB / 0.9019 GB, free: 58.82 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01215/1.813, allocations: 5.701 MB / 0.9075 GB, free: 53.57 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/1.813, allocations: 4 kB / 0.9075 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009281/1.822, allocations: 3.863 MB / 0.9112 GB, free: 50.09 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002958/1.825, allocations: 261.3 kB / 0.9115 GB, free: 49.86 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/1.839, allocations: 11.06 MB / 0.9223 GB, free: 39.22 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/1.841, allocations: 1.846 MB / 0.9241 GB, free: 37.77 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001276/1.842, allocations: 223.4 kB / 0.9243 GB, free: 37.62 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001475/1.843, allocations: 1.188 MB / 0.9255 GB, free: 36.53 MB / 0.5573 GB Notification: Performance of SimCode: time 1.694e-06/1.843, allocations: 0 / 0.9255 GB, free: 36.53 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.462/2.305, allocations: 71.91 MB / 0.9957 GB, free: 130.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/2.306, allocations: 212 kB / 0.9959 GB, free: 130 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.799/8.104, allocations: 0 / 0.9959 GB, free: 130 MB / 0.5886 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_3_Example_3_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_3_Example_3.fmu > OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe 2>&1)