Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",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.001564/0.001564, allocations: 188.4 kB / 8.137 MB, free: 2.188 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.132/1.132, allocations: 221.4 MB / 230 MB, free: 3.223 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.0008749/0.0008749, allocations: 105.8 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09334/0.09424, allocations: 55.81 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.2939, allocations: 50.4 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08473/0.3786, allocations: 80.41 MB / 467.4 MB, free: 6.316 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.3789, allocations: 83.95 kB / 467.5 MB, free: 6.234 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.01638/0.3953, allocations: 6.136 MB / 473.6 MB, free: 104 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3954, allocations: 11.98 kB / 473.7 MB, free: 92 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.518e-05/0.3954, allocations: 27.7 kB / 473.7 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.3959, allocations: 269.6 kB / 473.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.3959, allocations: 4 kB / 473.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.436e-05/0.3959, allocations: 4 kB / 474 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001125/0.3961, allocations: 44.86 kB / 474 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.3964, allocations: 152.9 kB / 474.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3964, allocations: 0 / 474.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.3964, allocations: 0 / 474.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.3964, allocations: 4 kB / 474.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005016/0.3969, allocations: 355.8 kB / 474.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/0.3971, allocations: 122.8 kB / 474.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.176e-05/0.3972, allocations: 55.55 kB / 474.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.3972, allocations: 4 kB / 474.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001008/0.3973, allocations: 79.25 kB / 474.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.104e-06/0.3973, allocations: 0 / 474.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002519/0.3976, allocations: 109.4 kB / 474.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.754e-05/0.3977, allocations: 166.2 kB / 475 MB, free: 14.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002462/0.3979, allocations: 232.2 kB / 475.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.398, allocations: 25.7 kB / 475.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.888e-05/0.398, allocations: 101.6 kB / 475.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.398, allocations: 23.73 kB / 475.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-06/0.3981, allocations: 96 / 475.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3982, allocations: 330.8 kB / 475.7 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.078e-05/0.3982, allocations: 27.94 kB / 475.7 MB, free: 13.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.003e-05/0.3983, allocations: 75.72 kB / 475.8 MB, free: 13.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.41e-05/0.3984, allocations: 28.02 kB / 475.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3984, allocations: 4 kB / 475.8 MB, free: 13.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001938/0.3986, allocations: 117.3 kB / 476 MB, free: 13.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.3986, allocations: 4 kB / 476 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.3986, allocations: 192 / 476 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3986, allocations: 8 kB / 476 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.456e-05/0.3987, allocations: 20.48 kB / 476 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.3988, allocations: 1.641 kB / 476 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.057e-05/0.3988, allocations: 8 kB / 476 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.3989, allocations: 4 kB / 476 MB, free: 13.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.746e-05/0.3989, allocations: 116.8 kB / 476.1 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.3991, allocations: 69.5 kB / 476.2 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001846/0.3992, allocations: 103.2 kB / 476.3 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3993, allocations: 4 kB / 476.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3993, allocations: 3.938 kB / 476.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3993, allocations: 4 kB / 476.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.3995, allocations: 210.2 kB / 476.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3995, allocations: 0 / 476.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.034e-05/0.3995, allocations: 11.98 kB / 476.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.756e-06/0.3995, allocations: 0 / 476.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.3996, allocations: 8.031 kB / 476.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3996, allocations: 8.094 kB / 476.5 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3996, allocations: 3.938 kB / 476.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002303/0.3998, allocations: 192.3 kB / 476.7 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003344/0.4002, allocations: 0.5763 MB / 477.3 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.4003, allocations: 124.7 kB / 477.4 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.4003, allocations: 0 / 477.4 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.802e-05/0.4004, allocations: 4 kB / 477.4 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.611e-05/0.4005, allocations: 11.98 kB / 477.4 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.4005, allocations: 4 kB / 477.4 MB, free: 11.85 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001832/0.4007, allocations: 188.5 kB / 477.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008234/0.4015, allocations: 39.98 kB / 477.7 MB, free: 11.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000621/0.4021, allocations: 310.1 kB / 478 MB, free: 11.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001812/0.4023, allocations: 75.86 kB / 478 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4023, allocations: 0 / 478 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.263e-05/0.4024, allocations: 24 kB / 478.1 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.4027, allocations: 75.98 kB / 478.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004857/0.4032, allocations: 238.3 kB / 478.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003528/0.4036, allocations: 0.7589 MB / 479.1 MB, free: 10.19 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4036, allocations: 7.938 kB / 479.1 MB, free: 10.18 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1)