Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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) 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(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",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.0009813/0.0009813, allocations: 186.8 kB / 8.137 MB, free: 2.219 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.113/1.113, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0009104/0.0009104, allocations: 102.3 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09683/0.09777, allocations: 55.83 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.2826, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07815/0.3608, allocations: 75.71 MB / 462.7 MB, free: 11.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.3611, allocations: 75.89 kB / 462.8 MB, free: 11.11 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.003034/0.3641, allocations: 1.181 MB / 464 MB, free: 9.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.3641, allocations: 8 kB / 464 MB, free: 9.902 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.214e-05/0.3642, allocations: 8.625 kB / 464 MB, free: 9.895 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.3644, allocations: 188.2 kB / 464.2 MB, free: 9.672 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.066e-06/0.3644, allocations: 0 / 464.2 MB, free: 9.672 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.3644, allocations: 4 kB / 464.2 MB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.502e-05/0.3645, allocations: 20.73 kB / 464.2 MB, free: 9.648 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001674/0.3647, allocations: 106.3 kB / 464.3 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.3647, allocations: 0 / 464.3 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.3647, allocations: 0.8438 kB / 464.3 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-06/0.3647, allocations: 0 / 464.3 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002873/0.365, allocations: 254.3 kB / 464.5 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.3652, allocations: 130.3 kB / 464.7 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.772e-05/0.3652, allocations: 21.72 kB / 464.7 MB, free: 9.047 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.3652, allocations: 4 kB / 464.7 MB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.3653, allocations: 35.81 kB / 464.7 MB, free: 9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.373e-06/0.3653, allocations: 0 / 464.7 MB, free: 9 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001379/0.3654, allocations: 53.62 kB / 464.8 MB, free: 8.941 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.3655, allocations: 83.08 kB / 464.9 MB, free: 8.844 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.91e-05/0.3656, allocations: 120.8 kB / 465 MB, free: 8.719 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/0.3656, allocations: 25.7 kB / 465 MB, free: 8.688 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.231e-05/0.3656, allocations: 88.12 kB / 465.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.026e-05/0.3656, allocations: 0 / 465.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-06/0.3657, allocations: 4.031 kB / 465.1 MB, free: 8.594 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.952e-05/0.3658, allocations: 318.8 kB / 465.4 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.3658, allocations: 4 kB / 465.4 MB, free: 8.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.344e-05/0.3658, allocations: 31.42 kB / 465.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.622e-05/0.3658, allocations: 4 kB / 465.4 MB, free: 8.219 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.3658, allocations: 4 kB / 465.5 MB, free: 8.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.208e-05/0.3659, allocations: 53.58 kB / 465.5 MB, free: 8.156 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.3659, allocations: 7.984 kB / 465.5 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.3659, allocations: 0 / 465.5 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.366, allocations: 7.906 kB / 465.5 MB, free: 8.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.617e-05/0.366, allocations: 8 kB / 465.5 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.366, allocations: 0 / 465.5 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.81e-05/0.3661, allocations: 8.125 kB / 465.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-06/0.3661, allocations: 0 / 465.5 MB, free: 8.125 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/0.3661, allocations: 105 kB / 465.6 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/0.3662, allocations: 45.59 kB / 465.7 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.3663, allocations: 8.875 kB / 465.7 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.3663, allocations: 7.922 kB / 465.7 MB, free: 7.945 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3663, allocations: 4 kB / 465.7 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.3663, allocations: 9.031 kB / 465.7 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.3664, allocations: 142.2 kB / 465.9 MB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3664, allocations: 4 kB / 465.9 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.184e-05/0.3665, allocations: 11.98 kB / 465.9 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3665, allocations: 0 / 465.9 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.3665, allocations: 1.031 kB / 465.9 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3665, allocations: 4 kB / 465.9 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3665, allocations: 0 / 465.9 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001157/0.3666, allocations: 171.7 kB / 466 MB, free: 7.547 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002077/0.3669, allocations: 0.5299 MB / 466.6 MB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.273e-05/0.3669, allocations: 96.94 kB / 466.7 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.367, allocations: 4 kB / 466.7 MB, free: 6.871 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.66e-05/0.367, allocations: 8.031 kB / 466.7 MB, free: 6.863 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.326e-05/0.3671, allocations: 11.89 kB / 466.7 MB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.3671, allocations: 0 / 466.7 MB, free: 6.852 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.568e-05/0.3671, allocations: 99.27 kB / 466.8 MB, free: 6.754 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007688/0.3679, allocations: 11.94 kB / 466.8 MB, free: 6.742 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001009/0.368, allocations: 95.25 kB / 466.9 MB, free: 6.641 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.517e-05/0.3681, allocations: 19.94 kB / 466.9 MB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.3681, allocations: 0 / 466.9 MB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.087e-06/0.3681, allocations: 4 kB / 466.9 MB, free: 6.617 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.3683, allocations: 23.14 kB / 466.9 MB, free: 6.598 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002078/0.3686, allocations: 88.61 kB / 467 MB, free: 6.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.3689, allocations: 0.7071 MB / 467.7 MB, free: 5.75 MB / 346.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3689, allocations: 0 / 467.7 MB, free: 5.75 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1)