Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.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.BooleanSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1",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.0009466/0.0009466, allocations: 183.4 kB / 8.135 MB, free: 2.223 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.104/1.104, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0009294/0.0009294, allocations: 100.1 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09591/0.09687, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.2862, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07571/0.362, allocations: 75.71 MB / 462.7 MB, free: 11.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.3622, allocations: 71.95 kB / 462.8 MB, free: 11.01 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.002665/0.3649, allocations: 1.122 MB / 463.9 MB, free: 9.855 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.3649, allocations: 8 kB / 463.9 MB, free: 9.848 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.875e-05/0.365, allocations: 8.5 kB / 463.9 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.3651, allocations: 183.8 kB / 464.1 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.3652, allocations: 0 / 464.1 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.3652, allocations: 8.531 kB / 464.1 MB, free: 9.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.087e-05/0.3653, allocations: 17.11 kB / 464.1 MB, free: 9.598 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.3654, allocations: 105.3 kB / 464.2 MB, free: 9.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.3654, allocations: 5.281 kB / 464.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-06/0.3655, allocations: 0 / 464.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3655, allocations: 0.5 kB / 464.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002368/0.3657, allocations: 243.7 kB / 464.5 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000104/0.3658, allocations: 122.3 kB / 464.6 MB, free: 9.043 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.482e-05/0.3659, allocations: 21.84 kB / 464.6 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.3659, allocations: 4 kB / 464.6 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.995e-05/0.3659, allocations: 46.58 kB / 464.7 MB, free: 8.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.3659, allocations: 0 / 464.7 MB, free: 8.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001313/0.3661, allocations: 47.58 kB / 464.7 MB, free: 8.906 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.3661, allocations: 81.11 kB / 464.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.326e-05/0.3662, allocations: 126.2 kB / 464.9 MB, free: 8.684 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.969e-06/0.3662, allocations: 25.7 kB / 464.9 MB, free: 8.652 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.914e-05/0.3662, allocations: 80.14 kB / 465 MB, free: 8.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.014e-05/0.3663, allocations: 8 kB / 465 MB, free: 8.562 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-06/0.3663, allocations: 4.031 kB / 465 MB, free: 8.559 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.198e-05/0.3664, allocations: 318.8 kB / 465.3 MB, free: 8.238 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.288e-06/0.3664, allocations: 0 / 465.3 MB, free: 8.238 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.975e-05/0.3664, allocations: 27.44 kB / 465.4 MB, free: 8.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.444e-05/0.3664, allocations: 4 kB / 465.4 MB, free: 8.195 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3664, allocations: 8 kB / 465.4 MB, free: 8.188 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.359e-05/0.3665, allocations: 53.53 kB / 465.4 MB, free: 8.129 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.3665, allocations: 4 kB / 465.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.3665, allocations: 4 kB / 465.4 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-06/0.3665, allocations: 0 / 465.4 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.025e-05/0.3666, allocations: 1.438 kB / 465.4 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.247e-06/0.3666, allocations: 4 kB / 465.4 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.673e-05/0.3666, allocations: 128 / 465.4 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.3666, allocations: 11.94 kB / 465.5 MB, free: 8.105 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: 4 (sample1.u,sample1.y,assignClock.y,assignClock.u) * 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 5.608e-05/0.3667, allocations: 104.9 kB / 465.6 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.438e-05/0.3668, allocations: 50.34 kB / 465.6 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.3668, allocations: 12 kB / 465.6 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3668, allocations: 0 / 465.6 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.3668, allocations: 3.938 kB / 465.6 MB, free: 7.922 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3668, allocations: 3.984 kB / 465.6 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.3669, allocations: 138.2 kB / 465.8 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.367, allocations: 0 / 465.8 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.558e-06/0.367, allocations: 8.688 kB / 465.8 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.367, allocations: 1.031 kB / 465.8 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.367, allocations: 3.906 kB / 465.8 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.367, allocations: 3.984 kB / 465.8 MB, free: 7.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.367, allocations: 3.938 kB / 465.8 MB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001024/0.3671, allocations: 167 kB / 465.9 MB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001946/0.3673, allocations: 0.5336 MB / 466.5 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.3674, allocations: 93 kB / 466.6 MB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.3674, allocations: 0 / 466.6 MB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.332e-05/0.3675, allocations: 7.906 kB / 466.6 MB, free: 6.859 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.183e-05/0.3675, allocations: 4 kB / 466.6 MB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.3675, allocations: 0.9375 kB / 466.6 MB, free: 6.855 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.145e-05/0.3676, allocations: 111.1 kB / 466.7 MB, free: 6.746 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007704/0.3683, allocations: 4 kB / 466.7 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: 4 (sample1.u,assignClock.u,assignClock.y,sample1.y) * 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 8.694e-05/0.3684, allocations: 95.25 kB / 466.8 MB, free: 6.641 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.914e-05/0.3685, allocations: 19.98 kB / 466.8 MB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3685, allocations: 0 / 466.8 MB, free: 6.621 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.16e-05/0.3685, allocations: 8.188 kB / 466.8 MB, free: 6.613 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000203/0.3687, allocations: 18.95 kB / 466.8 MB, free: 6.598 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002172/0.369, allocations: 96.66 kB / 466.9 MB, free: 6.473 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.3693, allocations: 0.6954 MB / 467.6 MB, free: 5.754 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3693, allocations: 0 / 467.6 MB, free: 5.754 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1)