Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",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.0009775/0.0009775, allocations: 179.9 kB / 8.133 MB, free: 2.129 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.116/1.116, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.001006/0.001007, allocations: 95.84 kB / 280.8 MB, free: 1.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09327/0.09431, allocations: 55.82 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.2767, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07686/0.3536, allocations: 76.26 MB / 463.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/0.3539, allocations: 83.88 kB / 463.3 MB, free: 10.46 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.005675/0.3596, allocations: 2.119 MB / 465.5 MB, free: 8.328 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.3597, allocations: 8.594 kB / 465.5 MB, free: 8.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.195e-05/0.3597, allocations: 9.875 kB / 465.5 MB, free: 8.312 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001686/0.3599, allocations: 190.9 kB / 465.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.218e-06/0.3599, allocations: 3.906 kB / 465.7 MB, free: 8.082 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.3599, allocations: 0.8438 kB / 465.7 MB, free: 8.082 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.28e-05/0.36, allocations: 29.83 kB / 465.7 MB, free: 8.055 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.3602, allocations: 89.91 kB / 465.8 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.3602, allocations: 0 / 465.8 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.3602, allocations: 3.984 kB / 465.8 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3602, allocations: 0 / 465.8 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002935/0.3605, allocations: 254.2 kB / 466 MB, free: 7.656 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.05e-05/0.3605, allocations: 37.14 kB / 466.1 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.456e-05/0.3606, allocations: 21.78 kB / 466.1 MB, free: 7.574 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.3606, allocations: 6.422 kB / 466.1 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.851e-05/0.3606, allocations: 34.56 kB / 466.1 MB, free: 7.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 9.91e-07/0.3606, allocations: 4 kB / 466.1 MB, free: 7.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001298/0.3608, allocations: 45.59 kB / 466.2 MB, free: 7.473 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.3608, allocations: 85.05 kB / 466.3 MB, free: 7.371 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.639e-05/0.3609, allocations: 123 kB / 466.4 MB, free: 7.242 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.3609, allocations: 25.7 kB / 466.4 MB, free: 7.211 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.931e-05/0.361, allocations: 80.14 kB / 466.5 MB, free: 7.129 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.156e-05/0.361, allocations: 3.906 kB / 466.5 MB, free: 7.125 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-06/0.361, allocations: 4.062 kB / 466.5 MB, free: 7.121 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.927e-05/0.3611, allocations: 324.1 kB / 466.8 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.899e-06/0.3611, allocations: 0 / 466.8 MB, free: 6.797 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.714e-05/0.3611, allocations: 17.72 kB / 466.8 MB, free: 6.773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.529e-05/0.3611, allocations: 4 kB / 466.8 MB, free: 6.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3612, allocations: 0 / 466.8 MB, free: 6.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.902e-05/0.3612, allocations: 61.56 kB / 466.9 MB, free: 6.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.626e-06/0.3612, allocations: 4 kB / 466.9 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.3613, allocations: 0.75 kB / 466.9 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.3613, allocations: 0 / 466.9 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.689e-05/0.3613, allocations: 8 kB / 466.9 MB, free: 6.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3614, allocations: 3.984 kB / 466.9 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.81e-05/0.3614, allocations: 4 kB / 466.9 MB, free: 6.684 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.217e-06/0.3614, allocations: 0 / 466.9 MB, free: 6.684 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: 0 () * 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.444e-05/0.3615, allocations: 105 kB / 467 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.597e-05/0.3615, allocations: 38.8 kB / 467.1 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.862e-05/0.3616, allocations: 11.48 kB / 467.1 MB, free: 6.523 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.3616, allocations: 4.656 kB / 467.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.3616, allocations: 0 / 467.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3616, allocations: 0 / 467.1 MB, free: 6.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001256/0.3617, allocations: 146.2 kB / 467.2 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.3617, allocations: 0 / 467.2 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.607e-05/0.3618, allocations: 11.94 kB / 467.2 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3618, allocations: 4.031 kB / 467.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.3618, allocations: 1.375 kB / 467.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3618, allocations: 0 / 467.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3618, allocations: 7.906 kB / 467.2 MB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001168/0.3619, allocations: 158 kB / 467.4 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002384/0.3622, allocations: 0.5336 MB / 467.9 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.843e-05/0.3623, allocations: 89.94 kB / 468 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.3623, allocations: 3.906 kB / 468 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.859e-05/0.3624, allocations: 8.031 kB / 468 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/0.3624, allocations: 8.922 kB / 468 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.3624, allocations: 0 / 468 MB, free: 5.449 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.294e-05/0.3625, allocations: 106.5 kB / 468.1 MB, free: 5.348 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007828/0.3633, allocations: 4 kB / 468.2 MB, free: 5.344 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 (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.35e-05/0.3634, allocations: 95.25 kB / 468.2 MB, free: 5.238 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.824e-05/0.3635, allocations: 8 kB / 468.3 MB, free: 5.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.3635, allocations: 0 / 468.3 MB, free: 5.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.756e-05/0.3635, allocations: 16.06 kB / 468.3 MB, free: 5.215 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.3637, allocations: 15.95 kB / 468.3 MB, free: 5.199 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002584/0.364, allocations: 92.61 kB / 468.4 MB, free: 5.078 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.3643, allocations: 0.705 MB / 469.1 MB, free: 4.348 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3643, allocations: 0 / 469.1 MB, free: 4.348 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1)