Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked",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.0009695/0.0009695, allocations: 181.4 kB / 8.131 MB, free: 2.207 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.125/1.125, allocations: 221.4 MB / 229.9 MB, free: 3.25 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.0009018/0.0009019, allocations: 96.84 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09557/0.09651, allocations: 55.82 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.2698, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07649/0.3464, allocations: 75.53 MB / 462.5 MB, free: 11.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002051/0.3466, allocations: 73.17 kB / 462.6 MB, free: 11.12 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.002601/0.3492, allocations: 1.051 MB / 463.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.069e-05/0.3493, allocations: 11.94 kB / 463.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.3493, allocations: 7.906 kB / 463.7 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.3495, allocations: 184.6 kB / 463.9 MB, free: 9.801 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.3495, allocations: 4.594 kB / 463.9 MB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.088e-06/0.3495, allocations: 4.656 kB / 463.9 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.49e-05/0.3496, allocations: 8 kB / 463.9 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.3497, allocations: 82.83 kB / 463.9 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.3498, allocations: 1.5 kB / 464 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.635e-06/0.3498, allocations: 0 / 464 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3498, allocations: 0.5938 kB / 464 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002554/0.35, allocations: 240.5 kB / 464.2 MB, free: 9.414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.492e-05/0.3501, allocations: 41.09 kB / 464.2 MB, free: 9.355 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.611e-05/0.3501, allocations: 17.84 kB / 464.2 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.3502, allocations: 0 / 464.2 MB, free: 9.332 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.3502, allocations: 34.55 kB / 464.3 MB, free: 9.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.3502, allocations: 0 / 464.3 MB, free: 9.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001331/0.3503, allocations: 50.98 kB / 464.3 MB, free: 9.234 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.3504, allocations: 77.11 kB / 464.4 MB, free: 9.141 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.37e-05/0.3505, allocations: 120.6 kB / 464.5 MB, free: 9.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.798e-06/0.3505, allocations: 25.7 kB / 464.5 MB, free: 8.988 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.478e-05/0.3505, allocations: 88.12 kB / 464.6 MB, free: 8.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.013e-06/0.3505, allocations: 3.906 kB / 464.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.054e-06/0.3506, allocations: 0 / 464.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.3506, allocations: 314.8 kB / 464.9 MB, free: 8.578 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.908e-06/0.3507, allocations: 8.031 kB / 465 MB, free: 8.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.273e-05/0.3507, allocations: 9.719 kB / 465 MB, free: 8.555 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.377e-05/0.3507, allocations: 4 kB / 465 MB, free: 8.551 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3507, allocations: 0 / 465 MB, free: 8.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.156e-05/0.3508, allocations: 45.62 kB / 465 MB, free: 8.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.3508, allocations: 7.125 kB / 465 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3508, allocations: 0 / 465 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.3508, allocations: 12.78 kB / 465 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.196e-05/0.3508, allocations: 1.312 kB / 465 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.366e-06/0.3508, allocations: 0 / 465 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.186e-05/0.3509, allocations: 4 kB / 465 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.718e-06/0.3509, allocations: 0 / 465 MB, free: 8.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.633e-05/0.351, allocations: 105.7 kB / 465.1 MB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.773e-05/0.351, allocations: 45.53 kB / 465.2 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.707e-05/0.351, allocations: 7.469 kB / 465.2 MB, free: 8.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3511, allocations: 9.062 kB / 465.2 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3511, allocations: 3.938 kB / 465.2 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.3511, allocations: 0 / 465.2 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.3512, allocations: 146.1 kB / 465.3 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3512, allocations: 0.5 kB / 465.3 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-06/0.3512, allocations: 0 / 465.3 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3512, allocations: 0 / 465.3 MB, free: 8.129 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.3512, allocations: 4 kB / 465.3 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.3512, allocations: 1.188 kB / 465.3 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3513, allocations: 0.7812 kB / 465.3 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.967e-05/0.3514, allocations: 166 kB / 465.5 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001926/0.3516, allocations: 0.5228 MB / 466 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.827e-05/0.3516, allocations: 89.09 kB / 466.1 MB, free: 7.281 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.3516, allocations: 3.906 kB / 466.1 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.431e-05/0.3517, allocations: 7.984 kB / 466.1 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.334e-05/0.3517, allocations: 0 / 466.1 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.3517, allocations: 0.5625 kB / 466.1 MB, free: 7.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.67e-05/0.3518, allocations: 103.3 kB / 466.2 MB, free: 7.168 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007638/0.3526, allocations: 0 / 466.2 MB, free: 7.168 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: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.6e-05/0.3527, allocations: 103.3 kB / 466.3 MB, free: 7.059 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 4.915e-05/0.3527, allocations: 7.938 kB / 466.3 MB, free: 7.051 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3527, allocations: 3.938 kB / 466.3 MB, free: 7.047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.388e-05/0.3528, allocations: 8 kB / 466.4 MB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/0.353, allocations: 12.02 kB / 466.4 MB, free: 7.027 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001986/0.3532, allocations: 84.89 kB / 466.4 MB, free: 6.914 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.3534, allocations: 0.7036 MB / 467.2 MB, free: 6.184 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3534, allocations: 0 / 467.2 MB, free: 6.184 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1)