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: translateModel(OpenIPSL.Examples.Tutorial.Example_3.Example_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3") translateModel(OpenIPSL.Examples.Tutorial.Example_3.Example_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009508/0.0009508, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.272/1.272, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008696/0.0008695, allocations: 89.33 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.6164/0.6164, allocations: 78.91 MB / 415.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.201e-05/4.232e-05, allocations: 8 kB / 492.8 MB, free: 13.13 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4814/0.4815, allocations: 69.5 MB / 0.5491 GB, free: 19.51 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1419/0.6235, allocations: 103.8 MB / 0.6505 GB, free: 11.77 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.6237, allocations: 79.95 kB / 0.6506 GB, free: 11.69 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7729/1.397, allocations: 86.66 MB / 0.7352 GB, free: 72.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.397, allocations: 0 / 0.7352 GB, free: 72.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003373/1.397, allocations: 63.88 kB / 0.7353 GB, free: 72.44 MB / 490.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.009328/1.406, allocations: 3.371 MB / 0.7386 GB, free: 68.98 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/1.406, allocations: 15.97 kB / 0.7386 GB, free: 68.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007275/1.414, allocations: 1.179 MB / 0.7397 GB, free: 67.78 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00486/1.419, allocations: 1.745 MB / 0.7415 GB, free: 65.97 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000474/1.419, allocations: 472.6 kB / 0.7419 GB, free: 65.45 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008664/1.42, allocations: 191.9 kB / 0.7421 GB, free: 65.26 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005165/1.425, allocations: 2.174 MB / 0.7442 GB, free: 63.06 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.658e-05/1.425, allocations: 0 / 0.7442 GB, free: 63.06 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004105/1.426, allocations: 79.98 kB / 0.7443 GB, free: 62.98 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/1.426, allocations: 47.98 kB / 0.7443 GB, free: 62.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003773/1.429, allocations: 1.986 MB / 0.7463 GB, free: 60.95 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01562/1.445, allocations: 9.133 MB / 0.7552 GB, free: 51.47 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008594/1.454, allocations: 4.605 MB / 0.7597 GB, free: 46.61 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00208/1.456, allocations: 1.347 MB / 0.761 GB, free: 45.26 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002142/1.456, allocations: 45.95 kB / 0.761 GB, free: 45.22 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002189/1.458, allocations: 1.569 MB / 0.7626 GB, free: 43.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=242): time 4.198e-06/1.458, allocations: 0 / 0.7626 GB, free: 43.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.02052/1.479, allocations: 7.456 MB / 0.7699 GB, free: 36.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.642e-05/1.479, allocations: 239.6 kB / 0.7701 GB, free: 35.84 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003016/1.482, allocations: 2.045 MB / 0.7721 GB, free: 33.78 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005601/1.483, allocations: 65.7 kB / 0.7721 GB, free: 33.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00061/1.483, allocations: 1.154 MB / 0.7733 GB, free: 32.55 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007605/1.484, allocations: 0.8393 MB / 0.7741 GB, free: 31.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/1.484, allocations: 44 kB / 0.7741 GB, free: 31.65 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/1.484, allocations: 403 kB / 0.7745 GB, free: 31.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/1.486, allocations: 1.083 MB / 0.7756 GB, free: 30.17 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002642/1.489, allocations: 1.343 MB / 0.7769 GB, free: 28.75 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/1.491, allocations: 1.365 MB / 0.7782 GB, free: 27.32 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.595e-06/1.491, allocations: 0 / 0.7782 GB, free: 27.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.01898/1.51, allocations: 6.86 MB / 0.7849 GB, free: 20.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/1.51, allocations: 170.2 kB / 0.7851 GB, free: 20.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/1.51, allocations: 7.953 kB / 0.7851 GB, free: 20.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01344/1.523, allocations: 2.797 MB / 0.7878 GB, free: 17.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003693/1.527, allocations: 483.3 kB / 0.7883 GB, free: 16.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03141/1.558, allocations: 16.69 MB / 0.8046 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004365/1.563, allocations: 413.8 kB / 0.805 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000555/1.563, allocations: 87.97 kB / 0.8051 GB, free: 14.97 MB / 0.4948 GB Warning: Assuming fixed start value for the following 9 variables: gen3.gen.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real gen2.gen.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real gen1.gen.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real gen3.AVR.firstOrder2.y:VARIABLE(start = gen3.AVR.firstOrder2.y_start ) "Connector of Real output signal" type: Real gen3.gen.e1d:VARIABLE(start = gen3.gen.e1d0 unit = "1" ) "d-axis transient voltage" type: Real gen3.gen.e1q:VARIABLE(start = gen3.gen.e1q0 unit = "1" ) "q-axis transient voltage" type: Real gen3.gen.delta:VARIABLE(start = gen3.gen.delta0 unit = "rad" ) "Rotor angle" type: Real gen2.AVR.firstOrder2.y:VARIABLE(start = gen2.AVR.firstOrder2.y_start ) "Connector of Real output signal" type: Real gen2.gen.e1d:VARIABLE(start = gen2.gen.e1d0 unit = "1" ) "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 () * 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.0007681/1.564, allocations: 339.6 kB / 0.8054 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009276/1.565, allocations: 296.3 kB / 0.8057 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.023/1.588, allocations: 7.709 MB / 0.8132 GB, free: 6.559 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.903e-05/1.588, allocations: 24 kB / 0.8132 GB, free: 6.535 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/1.588, allocations: 7.953 kB / 0.8132 GB, free: 6.527 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-05/1.588, allocations: 15.95 kB / 0.8132 GB, free: 6.512 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.0305/1.619, allocations: 11.68 MB / 0.8247 GB, free: 10.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.831e-05/1.619, allocations: 4.125 kB / 0.8247 GB, free: 10.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/1.621, allocations: 243.6 kB / 0.8249 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01105/1.632, allocations: 3.266 MB / 0.8281 GB, free: 7.082 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006763/1.633, allocations: 55.98 kB / 0.8281 GB, free: 7.027 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03389/1.666, allocations: 17.39 MB / 0.8451 GB, free: 5.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/1.666, allocations: 0 / 0.8451 GB, free: 5.07 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0262/1.693, allocations: 9.413 MB / 0.8543 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/1.694, allocations: 452.7 kB / 0.8547 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006148/1.695, allocations: 48 kB / 0.8548 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002598/1.697, allocations: 291.7 kB / 0.8551 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001249/1.699, allocations: 378.1 kB / 0.8554 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001862/1.699, allocations: 71.97 kB / 0.8555 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002753/1.701, allocations: 1.556 MB / 0.857 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/1.701, allocations: 0 / 0.857 GB, free: 8.758 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004202/1.706, allocations: 0.9676 MB / 0.858 GB, free: 7.789 MB / 0.5417 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 () * 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.0005917/1.706, allocations: 205.1 kB / 0.8581 GB, free: 7.578 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01221/1.719, allocations: 5.051 MB / 0.8631 GB, free: 2.344 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/1.719, allocations: 0 / 0.8631 GB, free: 2.344 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009131/1.728, allocations: 3.517 MB / 0.8665 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002667/1.73, allocations: 252.5 kB / 0.8668 GB, free: 14.49 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009838/1.74, allocations: 4.404 MB / 0.8711 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001515/1.742, allocations: 1.838 MB / 0.8729 GB, free: 8.172 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001565/1.743, allocations: 236.2 kB / 0.8731 GB, free: 7.938 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006371/1.744, allocations: 139.4 kB / 0.8732 GB, free: 7.805 MB / 0.5573 GB Notification: Performance of SimCode: time 1.613e-06/1.744, allocations: 0 / 0.8732 GB, free: 7.805 MB / 0.5573 GB Notification: Performance of Templates: time 0.425/2.169, allocations: 48.63 MB / 0.9207 GB, free: 159 MB / 0.573 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.makefile (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 & ./OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_3.Example_3.pipe 2>&1)