Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.TimeBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",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.001099/0.001099, allocations: 180.3 kB / 8.134 MB, free: 2.133 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.133/1.133, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009111/0.0009112, allocations: 89.23 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1014/0.1024, allocations: 55.82 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.302, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08372/0.3857, allocations: 75.86 MB / 462.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.386, allocations: 83.88 kB / 462.9 MB, free: 10.86 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.002916/0.3889, allocations: 1.047 MB / 464 MB, free: 9.793 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.389, allocations: 8 kB / 464 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.389, allocations: 11.91 kB / 464 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.3892, allocations: 173.4 kB / 464.2 MB, free: 9.566 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.3892, allocations: 4 kB / 464.2 MB, free: 9.562 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/0.3892, allocations: 0 / 464.2 MB, free: 9.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.954e-05/0.3893, allocations: 15.94 kB / 464.2 MB, free: 9.547 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.3895, allocations: 95.23 kB / 464.3 MB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.3895, allocations: 0 / 464.3 MB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.3895, allocations: 7.984 kB / 464.3 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.3895, allocations: 0 / 464.3 MB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001428/0.3897, allocations: 138.2 kB / 464.4 MB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.582e-05/0.3898, allocations: 38.58 kB / 464.5 MB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.726e-05/0.3898, allocations: 16.89 kB / 464.5 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.3898, allocations: 3.938 kB / 464.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.3899, allocations: 42.69 kB / 464.5 MB, free: 9.141 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.3899, allocations: 0 / 464.5 MB, free: 9.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001332/0.39, allocations: 45.61 kB / 464.6 MB, free: 9.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.3901, allocations: 55.39 kB / 464.6 MB, free: 9.023 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.178e-05/0.3901, allocations: 105.7 kB / 464.7 MB, free: 8.914 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.3902, allocations: 25.7 kB / 464.8 MB, free: 8.883 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.495e-05/0.3902, allocations: 80.14 kB / 464.8 MB, free: 8.801 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.999e-06/0.3902, allocations: 0 / 464.8 MB, free: 8.801 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.384e-06/0.3902, allocations: 0.75 kB / 464.8 MB, free: 8.801 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.3903, allocations: 326.8 kB / 465.2 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.043e-06/0.3903, allocations: 0 / 465.2 MB, free: 8.473 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.527e-05/0.3904, allocations: 27.38 kB / 465.2 MB, free: 8.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.637e-05/0.3904, allocations: 8 kB / 465.2 MB, free: 8.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3904, allocations: 0 / 465.2 MB, free: 8.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.449e-05/0.3905, allocations: 53.53 kB / 465.2 MB, free: 8.367 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.3905, allocations: 8 kB / 465.2 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3905, allocations: 3.688 kB / 465.3 MB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.3905, allocations: 3.938 kB / 465.3 MB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.62e-05/0.3906, allocations: 8 kB / 465.3 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.3906, allocations: 0 / 465.3 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.316e-05/0.3906, allocations: 7.891 kB / 465.3 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-06/0.3906, allocations: 4 kB / 465.3 MB, free: 8.336 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 5.646e-05/0.3907, allocations: 113 kB / 465.4 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.663e-05/0.3908, allocations: 57.59 kB / 465.4 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.184e-05/0.3908, allocations: 4 kB / 465.4 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.3908, allocations: 0 / 465.4 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3908, allocations: 384 / 465.4 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3908, allocations: 0 / 465.4 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.446e-05/0.3909, allocations: 138.2 kB / 465.6 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.3909, allocations: 4 kB / 465.6 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.284e-05/0.391, allocations: 7.938 kB / 465.6 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.391, allocations: 11.91 kB / 465.6 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.391, allocations: 0 / 465.6 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.391, allocations: 0 / 465.6 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.391, allocations: 0 / 465.6 MB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.576e-05/0.3911, allocations: 84.95 kB / 465.7 MB, free: 7.852 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002081/0.3913, allocations: 461.7 kB / 466.1 MB, free: 7.379 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.547e-05/0.3914, allocations: 81.11 kB / 466.2 MB, free: 7.281 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.3914, allocations: 4.594 kB / 466.2 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.294e-05/0.3915, allocations: 7.984 kB / 466.2 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-06/0.3915, allocations: 0 / 466.2 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.3915, allocations: 4 kB / 466.2 MB, free: 7.266 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.654e-05/0.3915, allocations: 83.28 kB / 466.3 MB, free: 7.184 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007475/0.3923, allocations: 4 kB / 466.3 MB, free: 7.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0001091/0.3924, allocations: 99.25 kB / 466.4 MB, free: 7.074 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.641e-05/0.3925, allocations: 23.92 kB / 466.4 MB, free: 7.051 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3925, allocations: 0 / 466.4 MB, free: 7.051 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.62e-07/0.3925, allocations: 0 / 466.4 MB, free: 7.051 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.3927, allocations: 18.92 kB / 466.5 MB, free: 7.035 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000194/0.3929, allocations: 75.69 kB / 466.5 MB, free: 6.938 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002868/0.3932, allocations: 0.7035 MB / 467.2 MB, free: 6.211 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3932, allocations: 0 / 467.2 MB, free: 6.211 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1)