Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1.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-master/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-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: translateModel(OpenIPSL.Examples.Tutorial.Example_1.Example_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1") translateModel(OpenIPSL.Examples.Tutorial.Example_1.Example_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00283/0.00283, allocations: 184.5 kB / 7.456 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.2 MB / 213.1 MB, free: 13.85 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.0009354/0.0009357, allocations: 93.38 kB / 261.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0903/0.0903, allocations: 12.58 MB / 321.6 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2895/0.2895, allocations: 78.05 MB / 450.4 MB, free: 3.227 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.265e-06/8.355e-06, allocations: 0 / 0.5141 GB, free: 29.98 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.142, allocations: 69.32 MB / 0.5818 GB, free: 8.758 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4354/0.5774, allocations: 99.75 MB / 0.6792 GB, free: 8.457 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.5778, allocations: 80.52 kB / 0.6793 GB, free: 8.414 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.05591/0.6337, allocations: 21.06 MB / 0.6999 GB, free: 7.059 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.679e-05/0.6338, allocations: 16 kB / 0.6999 GB, free: 7.043 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.003153/0.6369, allocations: 1.298 MB / 0.7012 GB, free: 5.773 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.637, allocations: 15.95 kB / 0.7012 GB, free: 5.758 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002393/0.6394, allocations: 402 kB / 0.7016 GB, free: 5.398 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.6404, allocations: 0.6038 MB / 0.7021 GB, free: 4.891 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.6406, allocations: 138.3 kB / 0.7023 GB, free: 4.734 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.6407, allocations: 39.28 kB / 0.7023 GB, free: 4.699 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009959/0.6418, allocations: 0.5516 MB / 0.7029 GB, free: 4.379 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.6428, allocations: 0.6069 MB / 0.7034 GB, free: 3.957 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.6428, allocations: 4 kB / 0.7035 GB, free: 3.953 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.558e-05/0.6429, allocations: 0 / 0.7035 GB, free: 3.953 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.6429, allocations: 12 kB / 0.7035 GB, free: 3.941 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005529/0.6485, allocations: 2.941 MB / 0.7063 GB, free: 1.652 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.6496, allocations: 494 kB / 0.7068 GB, free: 1.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005567/0.6501, allocations: 378.8 kB / 0.7072 GB, free: 1.145 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.734e-05/0.6502, allocations: 12.64 kB / 0.7072 GB, free: 1.133 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.6503, allocations: 39.06 kB / 0.7072 GB, free: 1.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=64): time 2.344e-06/0.6503, allocations: 0 / 0.7072 GB, free: 1.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=64): time 0.005806/0.6561, allocations: 1.987 MB / 0.7092 GB, free: 15.44 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.6562, allocations: 85.77 kB / 0.7092 GB, free: 15.34 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008388/0.657, allocations: 0.6263 MB / 0.7099 GB, free: 14.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.28e-05/0.6571, allocations: 25.7 kB / 0.7099 GB, free: 14.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.6573, allocations: 246.9 kB / 0.7101 GB, free: 14.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/0.6575, allocations: 231 kB / 0.7103 GB, free: 14.44 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.875e-05/0.6576, allocations: 0 / 0.7103 GB, free: 14.44 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.6577, allocations: 333.7 kB / 0.7107 GB, free: 14.12 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005105/0.6582, allocations: 331 kB / 0.711 GB, free: 13.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005768/0.6588, allocations: 417.4 kB / 0.7114 GB, free: 13.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000583/0.6594, allocations: 362.1 kB / 0.7117 GB, free: 13.49 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.6594, allocations: 0 / 0.7117 GB, free: 13.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.006746/0.6661, allocations: 2.213 MB / 0.7139 GB, free: 11.65 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003334/0.6665, allocations: 0.7108 MB / 0.7146 GB, free: 10.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.6665, allocations: 4 kB / 0.7146 GB, free: 10.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004306/0.6708, allocations: 1.036 MB / 0.7156 GB, free: 9.996 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007143/0.6716, allocations: 113.7 kB / 0.7157 GB, free: 9.891 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00853/0.6801, allocations: 4.133 MB / 0.7197 GB, free: 6.699 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/0.6814, allocations: 115.4 kB / 0.7198 GB, free: 6.586 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.319e-05/0.6815, allocations: 23.88 kB / 0.7199 GB, free: 6.566 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.475e-06/0.6815, allocations: 4 kB / 0.7199 GB, free: 6.562 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00658/0.6881, allocations: 2.092 MB / 0.7219 GB, free: 4.852 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.6881, allocations: 7.938 kB / 0.7219 GB, free: 4.844 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004307/0.6924, allocations: 1.037 MB / 0.7229 GB, free: 3.938 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006475/0.6931, allocations: 103.2 kB / 0.723 GB, free: 3.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00818/0.7013, allocations: 4.127 MB / 0.7271 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.7026, allocations: 103.4 kB / 0.7272 GB, free: 0.5547 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.089e-05/0.7026, allocations: 23.75 kB / 0.7272 GB, free: 0.5352 MB / 458.7 MB Warning: Assuming fixed start value for the following 2 variables: G1.machine.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real G1.avr.vref:VARIABLE(unit = "1" fixed = false protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 0 * Non-linear torn systems: 1 {8 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003723/0.703, allocations: 124.8 kB / 0.7273 GB, free: 416 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.7032, allocations: 90.62 kB / 0.7274 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006067/0.7093, allocations: 2.049 MB / 0.7294 GB, free: 14.66 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.7094, allocations: 4 kB / 0.7294 GB, free: 14.65 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.7094, allocations: 4 kB / 0.7294 GB, free: 14.65 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.7094, allocations: 7.984 kB / 0.7294 GB, free: 14.64 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007699/0.7171, allocations: 3.199 MB / 0.7325 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.7171, allocations: 0 / 0.7325 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006094/0.7178, allocations: 83.33 kB / 0.7326 GB, free: 12.04 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002968/0.7207, allocations: 0.8763 MB / 0.7335 GB, free: 11.28 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.733e-05/0.7208, allocations: 10.44 kB / 0.7335 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006273/0.7271, allocations: 3.112 MB / 0.7365 GB, free: 8.117 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.7271, allocations: 4.062 kB / 0.7365 GB, free: 8.113 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006558/0.7337, allocations: 2.625 MB / 0.7391 GB, free: 5.441 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002869/0.734, allocations: 187.8 kB / 0.7393 GB, free: 5.238 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001594/0.7342, allocations: 4 kB / 0.7393 GB, free: 5.234 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008702/0.735, allocations: 75.94 kB / 0.7393 GB, free: 5.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.7352, allocations: 64.53 kB / 0.7394 GB, free: 5.098 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.078e-05/0.7353, allocations: 16 kB / 0.7394 GB, free: 5.082 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.000843/0.7362, allocations: 487.5 kB / 0.7399 GB, free: 4.609 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001886/0.7381, allocations: 431.3 kB / 0.7403 GB, free: 4.188 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (G1.avr.vm,G1.avr.vr,G1.avr.vf1,G1.machine.delta,G1.machine.w,G1.machine.e1q,G1.machine.e1d,G1.machine.e2q,G1.machine.e2d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(9,48.1%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003538/0.7384, allocations: 145.8 kB / 0.7404 GB, free: 4.039 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00953/0.748, allocations: 2.711 MB / 0.7431 GB, free: 1.219 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.748, allocations: 3.938 kB / 0.7431 GB, free: 1.215 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003761/0.7518, allocations: 1.09 MB / 0.7441 GB, free: 72 kB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000864/0.7527, allocations: 47.31 kB / 0.7442 GB, free: 24 kB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006541/0.7592, allocations: 1.524 MB / 0.7457 GB, free: 14.46 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/0.7605, allocations: 1.042 MB / 0.7467 GB, free: 13.39 MB / 490.7 MB Notification: Performance of SimCode: time 1.713e-06/0.7605, allocations: 0 / 0.7467 GB, free: 13.39 MB / 490.7 MB Notification: Performance of Templates: time 0.04719/0.8077, allocations: 21.59 MB / 0.7678 GB, free: 7.812 MB / 0.4948 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_1.Example_1.pipe 2>&1)