Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1",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.001009/0.001009, allocations: 183.2 kB / 8.135 MB, free: 2.223 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.191/1.191, allocations: 221.4 MB / 229.9 MB, free: 3.105 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.0008939/0.0008938, allocations: 99.39 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1014/0.1023, allocations: 55.82 MB / 336.6 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.3243, allocations: 50.4 MB / 387 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08586/0.4102, allocations: 77.77 MB / 464.8 MB, free: 9.027 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.4104, allocations: 83.89 kB / 464.9 MB, free: 8.945 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.006825/0.4173, allocations: 2.491 MB / 467.4 MB, free: 6.438 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.4173, allocations: 8 kB / 467.4 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.143e-05/0.4174, allocations: 19.72 kB / 467.4 MB, free: 6.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.4177, allocations: 235.7 kB / 467.6 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.4177, allocations: 4 kB / 467.6 MB, free: 6.133 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.4177, allocations: 4 kB / 467.6 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001197/0.4179, allocations: 52.31 kB / 467.7 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004688/0.4183, allocations: 238.2 kB / 467.9 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.4184, allocations: 4.938 kB / 467.9 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.4184, allocations: 1.031 kB / 467.9 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.4184, allocations: 4 kB / 467.9 MB, free: 5.805 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006088/0.419, allocations: 400 kB / 468.3 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003582/0.4194, allocations: 246.2 kB / 468.5 MB, free: 5.059 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.4195, allocations: 94.59 kB / 468.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.4196, allocations: 4 kB / 468.6 MB, free: 4.949 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.4196, allocations: 34.56 kB / 468.7 MB, free: 4.906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 2.225e-06/0.4196, allocations: 4 kB / 468.7 MB, free: 4.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003198/0.42, allocations: 129.3 kB / 468.8 MB, free: 4.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.4201, allocations: 195.8 kB / 469 MB, free: 4.535 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.4202, allocations: 150.4 kB / 469.1 MB, free: 4.379 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.4202, allocations: 29.64 kB / 469.2 MB, free: 4.344 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.872e-05/0.4203, allocations: 96.22 kB / 469.3 MB, free: 4.246 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.4203, allocations: 15.84 kB / 469.3 MB, free: 4.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/0.4203, allocations: 0 / 469.3 MB, free: 4.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.4204, allocations: 328.7 kB / 469.6 MB, free: 3.902 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.406e-05/0.4205, allocations: 12 kB / 469.6 MB, free: 3.891 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.4206, allocations: 121.9 kB / 469.7 MB, free: 3.723 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.802e-05/0.4207, allocations: 35.95 kB / 469.8 MB, free: 3.688 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4207, allocations: 0 / 469.8 MB, free: 3.688 MB / 346.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002092/0.4209, allocations: 133.2 kB / 469.9 MB, free: 3.551 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.4209, allocations: 8.562 kB / 469.9 MB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.4209, allocations: 4 kB / 469.9 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.4209, allocations: 4 kB / 469.9 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.4211, allocations: 42.08 kB / 470 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.4211, allocations: 7.938 kB / 470 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.4212, allocations: 12 kB / 470 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.4212, allocations: 12.92 kB / 470 MB, free: 3.465 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 9.19e-05/0.4213, allocations: 120.8 kB / 470.1 MB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/0.4215, allocations: 101.4 kB / 470.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.596e-05/0.4216, allocations: 25.39 kB / 470.2 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.4216, allocations: 4.188 kB / 470.2 MB, free: 3.203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4216, allocations: 4.031 kB / 470.2 MB, free: 3.199 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4216, allocations: 3.938 kB / 470.2 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.4219, allocations: 190 kB / 470.4 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4219, allocations: 0 / 470.4 MB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001541/0.422, allocations: 39.97 kB / 470.5 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.4221, allocations: 4 kB / 470.5 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.4221, allocations: 0 / 470.5 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.4221, allocations: 12.72 kB / 470.5 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4221, allocations: 4 kB / 470.5 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002968/0.4224, allocations: 364 kB / 470.8 MB, free: 2.508 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004019/0.4228, allocations: 0.7345 MB / 471.6 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.789e-05/0.4229, allocations: 109 kB / 471.7 MB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.423, allocations: 7.891 kB / 471.7 MB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.4231, allocations: 20.8 kB / 471.7 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.4232, allocations: 0 / 471.7 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.4232, allocations: 11.92 kB / 471.7 MB, free: 1.555 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.411e-05/0.4233, allocations: 124.1 kB / 471.8 MB, free: 1.434 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008623/0.4242, allocations: 16 kB / 471.9 MB, free: 1.418 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0001177/0.4243, allocations: 103.2 kB / 472 MB, free: 1.309 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001692/0.4245, allocations: 80.8 kB / 472 MB, free: 1.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4245, allocations: 4.062 kB / 472 MB, free: 1.227 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.006e-05/0.4245, allocations: 7.938 kB / 472.1 MB, free: 1.219 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000447/0.4249, allocations: 90.83 kB / 472.1 MB, free: 1.133 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009831/0.4259, allocations: 321.5 kB / 472.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/0.4263, allocations: 0.7471 MB / 473.2 MB, free: 12 kB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4263, allocations: 4 kB / 473.2 MB, free: 8 kB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1)