Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.0009945/0.0009944, allocations: 184.8 kB / 8.137 MB, free: 2.215 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.12/1.12, 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.000957/0.0009567, allocations: 107 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09744/0.09843, allocations: 55.82 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.3011, allocations: 50.38 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08661/0.3877, allocations: 75.54 MB / 462.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.388, allocations: 75.89 kB / 462.6 MB, free: 11.21 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.002822/0.3908, allocations: 1.127 MB / 463.7 MB, free: 10.06 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.3909, allocations: 8 kB / 463.7 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.124e-05/0.3909, allocations: 9.219 kB / 463.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001983/0.3911, allocations: 186.1 kB / 463.9 MB, free: 9.824 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.585e-06/0.3911, allocations: 0 / 463.9 MB, free: 9.824 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.3911, allocations: 5.062 kB / 463.9 MB, free: 9.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.995e-05/0.3912, allocations: 8 kB / 464 MB, free: 9.812 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.3913, allocations: 83.91 kB / 464 MB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.3914, allocations: 0 / 464 MB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.3914, allocations: 0 / 464 MB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.3914, allocations: 3.938 kB / 464 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002855/0.3917, allocations: 247.6 kB / 464.3 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.412e-05/0.3917, allocations: 45.16 kB / 464.3 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.065e-05/0.3918, allocations: 9.719 kB / 464.3 MB, free: 9.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.3918, allocations: 4.062 kB / 464.3 MB, free: 9.352 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.3918, allocations: 30.56 kB / 464.4 MB, free: 9.312 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.3918, allocations: 0 / 464.4 MB, free: 9.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001396/0.392, allocations: 53.56 kB / 464.4 MB, free: 9.254 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.392, allocations: 77.11 kB / 464.5 MB, free: 9.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.495e-05/0.3921, allocations: 119.1 kB / 464.6 MB, free: 9.035 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.3921, allocations: 25.7 kB / 464.6 MB, free: 9.004 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.619e-05/0.3922, allocations: 88.8 kB / 464.7 MB, free: 8.914 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.267e-06/0.3922, allocations: 7.984 kB / 464.7 MB, free: 8.906 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-06/0.3922, allocations: 0 / 464.7 MB, free: 8.906 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3923, allocations: 310.8 kB / 465 MB, free: 8.594 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.005e-05/0.3923, allocations: 8.031 kB / 465 MB, free: 8.586 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.632e-05/0.3923, allocations: 13.72 kB / 465.1 MB, free: 8.566 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.136e-05/0.3924, allocations: 0 / 465.1 MB, free: 8.566 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3924, allocations: 4 kB / 465.1 MB, free: 8.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.993e-05/0.3924, allocations: 50.47 kB / 465.1 MB, free: 8.508 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.3925, allocations: 4 kB / 465.1 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.3925, allocations: 0 / 465.1 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.3925, allocations: 4.125 kB / 465.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.661e-05/0.3926, allocations: 8 kB / 465.1 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.3926, allocations: 0 / 465.1 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.038e-05/0.3926, allocations: 4 kB / 465.1 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.3926, allocations: 0 / 465.1 MB, free: 8.488 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.906e-05/0.3927, allocations: 108.9 kB / 465.2 MB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.84e-05/0.3927, allocations: 45.53 kB / 465.3 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.996e-05/0.3928, allocations: 16.84 kB / 465.3 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.3928, allocations: 3.906 kB / 465.3 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3928, allocations: 0 / 465.3 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3928, allocations: 0 / 465.3 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.3929, allocations: 142.2 kB / 465.4 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.393, allocations: 0 / 465.4 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.292e-05/0.393, allocations: 8 kB / 465.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.393, allocations: 0 / 465.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.393, allocations: 2.062 kB / 465.4 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.393, allocations: 4 kB / 465.5 MB, free: 8.121 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.393, allocations: 4 kB / 465.5 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001188/0.3932, allocations: 153.9 kB / 465.6 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002186/0.3934, allocations: 0.5336 MB / 466.1 MB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.593e-05/0.3935, allocations: 96.94 kB / 466.2 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.3935, allocations: 0 / 466.2 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.617e-05/0.3936, allocations: 4 kB / 466.2 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.415e-05/0.3936, allocations: 0 / 466.2 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.3936, allocations: 0 / 466.2 MB, free: 7.262 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.596e-05/0.3937, allocations: 107.3 kB / 466.3 MB, free: 7.156 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000766/0.3944, allocations: 7.906 kB / 466.4 MB, free: 7.148 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 9.621e-05/0.3945, allocations: 99.23 kB / 466.4 MB, free: 7.039 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.644e-05/0.3946, allocations: 7.938 kB / 466.5 MB, free: 7.031 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3946, allocations: 0 / 466.5 MB, free: 7.031 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.022e-05/0.3946, allocations: 4 kB / 466.5 MB, free: 7.027 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002031/0.3948, allocations: 14.95 kB / 466.5 MB, free: 7.016 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002054/0.395, allocations: 92.89 kB / 466.6 MB, free: 6.895 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002531/0.3953, allocations: 0.7074 MB / 467.3 MB, free: 6.16 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3953, allocations: 0 / 467.3 MB, free: 6.16 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1)