Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_2.Example_2.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_2.Example_2,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_2_Example_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.Tutorial.Example_2.Example_2,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_2_Example_2",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.00417/0.00417, allocations: 180.1 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.000952/0.000952, allocations: 96.91 kB / 280.1 MB, free: 1.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4798/0.4798, allocations: 78.92 MB / 409.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1808/0.6607, allocations: 75.66 MB / 485.5 MB, free: 3.539 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/1.061, allocations: 69.49 MB / 0.542 GB, free: 20.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1344/1.195, allocations: 101 MB / 0.6406 GB, free: 2.879 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/1.195, allocations: 79.95 kB / 0.6407 GB, free: 2.801 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.09213/1.287, allocations: 30.87 MB / 0.6708 GB, free: 3.703 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/1.288, allocations: 11.98 kB / 0.6709 GB, free: 3.691 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002908/1.29, allocations: 430 kB / 0.6713 GB, free: 3.27 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002873/1.293, allocations: 0.8682 MB / 0.6721 GB, free: 2.348 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004772/1.294, allocations: 219.5 kB / 0.6723 GB, free: 2.098 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004254/1.294, allocations: 47.91 kB / 0.6724 GB, free: 2.051 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001824/1.296, allocations: 0.7524 MB / 0.6731 GB, free: 1.297 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/1.298, allocations: 0.7625 MB / 0.6738 GB, free: 0.5195 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/1.298, allocations: 0 / 0.6738 GB, free: 0.5195 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/1.298, allocations: 4 kB / 0.6739 GB, free: 0.5156 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/1.298, allocations: 19.94 kB / 0.6739 GB, free: 0.4961 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2376/1.535, allocations: 3.666 MB / 0.6775 GB, free: 141 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/1.537, allocations: 0.9309 MB / 0.6784 GB, free: 141 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006572/1.538, allocations: 456.6 kB / 0.6788 GB, free: 141 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.593e-05/1.538, allocations: 17.39 kB / 0.6788 GB, free: 141 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/1.538, allocations: 46.31 kB / 0.6789 GB, free: 141 MB / 490.7 MB Notification: Performance of pre-optimization done (n=76): time 3.477e-06/1.538, allocations: 0 / 0.6789 GB, free: 141 MB / 490.7 MB Notification: Performance of matching and sorting (n=76): time 0.005923/1.544, allocations: 2.187 MB / 0.681 GB, free: 140.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/1.544, allocations: 111.4 kB / 0.6811 GB, free: 140.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/1.545, allocations: 0.8635 MB / 0.6819 GB, free: 140.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.217e-05/1.545, allocations: 25.7 kB / 0.682 GB, free: 140.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/1.545, allocations: 305.6 kB / 0.6823 GB, free: 140.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000245/1.546, allocations: 261 kB / 0.6825 GB, free: 140.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.047e-05/1.546, allocations: 0 / 0.6825 GB, free: 140.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.288e-05/1.546, allocations: 341.8 kB / 0.6828 GB, free: 140 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006284/1.546, allocations: 421.7 kB / 0.6832 GB, free: 140 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006828/1.547, allocations: 0.508 MB / 0.6837 GB, free: 139.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006928/1.548, allocations: 464.3 kB / 0.6842 GB, free: 139.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/1.548, allocations: 0 / 0.6842 GB, free: 139.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.006835/1.555, allocations: 2.422 MB / 0.6865 GB, free: 139.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/1.555, allocations: 0.6201 MB / 0.6871 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/1.555, allocations: 3.938 kB / 0.6872 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004215/1.559, allocations: 1.037 MB / 0.6882 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/1.56, allocations: 162.9 kB / 0.6883 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008208/1.568, allocations: 4.138 MB / 0.6924 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/1.57, allocations: 168.9 kB / 0.6925 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/1.57, allocations: 30.31 kB / 0.6925 GB, free: 137.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.779e-06/1.57, allocations: 3.938 kB / 0.6926 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006577/1.577, allocations: 2.264 MB / 0.6948 GB, free: 137.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/1.577, allocations: 0 / 0.6948 GB, free: 137.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004085/1.581, allocations: 1.041 MB / 0.6958 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008999/1.582, allocations: 144.7 kB / 0.6959 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008155/1.59, allocations: 4.124 MB / 0.6999 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/1.592, allocations: 143.9 kB / 0.7001 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.482e-05/1.592, allocations: 33.66 kB / 0.7001 GB, free: 136.1 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: 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: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 76 * 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.0002859/1.592, allocations: 122.8 kB / 0.7002 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/1.592, allocations: 110.8 kB / 0.7003 GB, free: 135.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006293/1.599, allocations: 2.268 MB / 0.7026 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/1.599, allocations: 7.312 kB / 0.7026 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/1.599, allocations: 4.344 kB / 0.7026 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/1.599, allocations: 3.141 kB / 0.7026 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008617/1.607, allocations: 3.712 MB / 0.7062 GB, free: 135 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/1.607, allocations: 0 / 0.7062 GB, free: 135 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008484/1.608, allocations: 108.8 kB / 0.7063 GB, free: 135 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003187/1.611, allocations: 0.8755 MB / 0.7072 GB, free: 134.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001248/1.612, allocations: 13.67 kB / 0.7072 GB, free: 134.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006067/1.618, allocations: 3.119 MB / 0.7102 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/1.618, allocations: 1.75 kB / 0.7102 GB, free: 132.8 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008244/1.626, allocations: 2.93 MB / 0.7131 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007897/1.634, allocations: 3.955 MB / 0.7169 GB, free: 129.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004966/1.634, allocations: 224.7 kB / 0.7171 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003122/1.635, allocations: 9.875 kB / 0.7172 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/1.636, allocations: 123.8 kB / 0.7173 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/1.636, allocations: 75.84 kB / 0.7173 GB, free: 129.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.077e-05/1.636, allocations: 18.94 kB / 0.7174 GB, free: 129.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0008775/1.637, allocations: 0.6589 MB / 0.718 GB, free: 129.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002619/1.64, allocations: 0.5102 MB / 0.7185 GB, free: 129.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (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,G1.pss.imLeadLag.TF.x_scaled[1],G1.pss.imLeadLag1.TF.x_scaled[1],G1.pss.derivativeLag.TF.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 56 * 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.0002902/1.64, allocations: 138.6 kB / 0.7186 GB, free: 129.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006889/1.647, allocations: 3.013 MB / 0.7216 GB, free: 127.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/1.647, allocations: 0 / 0.7216 GB, free: 127.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002658/1.65, allocations: 1.197 MB / 0.7228 GB, free: 127.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009154/1.651, allocations: 81.34 kB / 0.7228 GB, free: 127.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005471/1.656, allocations: 1.974 MB / 0.7248 GB, free: 126.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009075/1.657, allocations: 1.205 MB / 0.7259 GB, free: 125.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.914e-06/1.657, allocations: 0 / 0.7259 GB, free: 125.5 MB / 490.7 MB (rm -f OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_2.Example_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_2_Example_2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_Tutorial_Example_2_Example_2.fmu > OpenIPSL_dev_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe 2>&1)