Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_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.001191/0.001191, allocations: 182 kB / 8.129 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.15/1.15, allocations: 221.4 MB / 229.9 MB, free: 3.051 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.0008818/0.0008818, allocations: 104.3 kB / 280.8 MB, free: 1.203 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09813/0.09905, allocations: 55.82 MB / 336.6 MB, free: 9.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2025/0.3015, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08017/0.3818, allocations: 76.29 MB / 463.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.382, allocations: 79.89 kB / 463.4 MB, free: 10.4 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.005899/0.3879, allocations: 2.138 MB / 465.5 MB, free: 8.242 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.388, allocations: 8 kB / 465.5 MB, free: 8.234 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.553e-05/0.388, allocations: 7.906 kB / 465.5 MB, free: 8.227 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.3882, allocations: 205.6 kB / 465.7 MB, free: 7.988 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.3882, allocations: 0 / 465.7 MB, free: 7.988 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.3883, allocations: 8 kB / 465.7 MB, free: 7.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.62e-05/0.3884, allocations: 16 kB / 465.7 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.3885, allocations: 101.9 kB / 465.8 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.3886, allocations: 3.938 kB / 465.8 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.3886, allocations: 0 / 465.8 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3886, allocations: 0 / 465.8 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003237/0.3889, allocations: 260.6 kB / 466.1 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.729e-05/0.389, allocations: 67.8 kB / 466.2 MB, free: 7.449 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.956e-05/0.3891, allocations: 23.48 kB / 466.2 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.3891, allocations: 4 kB / 466.2 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.3891, allocations: 30.56 kB / 466.2 MB, free: 7.375 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.3891, allocations: 0 / 466.2 MB, free: 7.375 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.000208/0.3893, allocations: 61.53 kB / 466.3 MB, free: 7.309 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.3894, allocations: 112.1 kB / 466.4 MB, free: 7.176 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.3895, allocations: 121 kB / 466.5 MB, free: 7.051 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.3896, allocations: 25.7 kB / 466.5 MB, free: 7.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/0.3896, allocations: 88.05 kB / 466.6 MB, free: 6.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.3896, allocations: 5.969 kB / 466.6 MB, free: 6.926 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-06/0.3896, allocations: 3.938 kB / 466.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.3898, allocations: 322.9 kB / 466.9 MB, free: 6.598 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.515e-05/0.3898, allocations: 4 kB / 467 MB, free: 6.594 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.511e-05/0.3898, allocations: 27.44 kB / 467 MB, free: 6.555 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.266e-05/0.3899, allocations: 4 kB / 467 MB, free: 6.551 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.3899, allocations: 3.984 kB / 467 MB, free: 6.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.144e-05/0.39, allocations: 61.48 kB / 467 MB, free: 6.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.39, allocations: 8 kB / 467.1 MB, free: 6.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.39, allocations: 0 / 467.1 MB, free: 6.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.39, allocations: 0 / 467.1 MB, free: 6.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.39e-05/0.3901, allocations: 11.98 kB / 467.1 MB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3901, allocations: 4 kB / 467.1 MB, free: 6.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.778e-05/0.3902, allocations: 15.97 kB / 467.1 MB, free: 6.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-06/0.3902, allocations: 0 / 467.1 MB, free: 6.441 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.087e-05/0.3903, allocations: 105 kB / 467.2 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.062e-05/0.3903, allocations: 49.61 kB / 467.2 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.574e-05/0.3904, allocations: 7.844 kB / 467.2 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3904, allocations: 11.97 kB / 467.3 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3904, allocations: 0.6875 kB / 467.3 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3904, allocations: 0 / 467.3 MB, free: 6.258 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.3906, allocations: 154.8 kB / 467.4 MB, free: 6.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3906, allocations: 4.062 kB / 467.4 MB, free: 6.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.443e-05/0.3906, allocations: 11.94 kB / 467.4 MB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3907, allocations: 1.25 kB / 467.4 MB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.3907, allocations: 11.98 kB / 467.4 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3907, allocations: 0 / 467.4 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3907, allocations: 0 / 467.4 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001551/0.3908, allocations: 188.5 kB / 467.6 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002863/0.3911, allocations: 0.5604 MB / 468.2 MB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.258e-05/0.3912, allocations: 93 kB / 468.3 MB, free: 5.117 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.3912, allocations: 3.984 kB / 468.3 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.018e-05/0.3913, allocations: 4 kB / 468.3 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.677e-05/0.3914, allocations: 4.938 kB / 468.3 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-06/0.3914, allocations: 0 / 468.3 MB, free: 5.105 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.113e-05/0.3914, allocations: 106.4 kB / 468.4 MB, free: 5.004 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007743/0.3922, allocations: 15.91 kB / 468.4 MB, free: 4.988 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0001118/0.3923, allocations: 95.25 kB / 468.5 MB, free: 4.883 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.535e-05/0.3924, allocations: 23.92 kB / 468.5 MB, free: 4.859 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.3924, allocations: 0 / 468.5 MB, free: 4.859 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.578e-05/0.3924, allocations: 11.94 kB / 468.5 MB, free: 4.848 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002437/0.3927, allocations: 20.02 kB / 468.6 MB, free: 4.828 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002613/0.393, allocations: 113.8 kB / 468.7 MB, free: 4.684 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003087/0.3933, allocations: 0.7114 MB / 469.4 MB, free: 3.945 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3933, allocations: 0 / 469.4 MB, free: 3.945 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1)