Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",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.00127/0.00127, allocations: 183.1 kB / 8.134 MB, free: 2.211 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.152/1.152, 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.0009627/0.0009627, allocations: 97.28 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1044/0.1054, allocations: 55.82 MB / 336.6 MB, free: 9.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1961/0.3016, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08659/0.3882, allocations: 80.24 MB / 467.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.3885, allocations: 84.92 kB / 467.3 MB, free: 6.461 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.01617/0.4047, allocations: 6.02 MB / 473.3 MB, free: 452 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.883e-05/0.4047, allocations: 14.34 kB / 473.4 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.862e-05/0.4048, allocations: 15.81 kB / 473.4 MB, free: 424 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.4052, allocations: 261.6 kB / 473.6 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.4052, allocations: 7.984 kB / 473.6 MB, free: 112 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.4052, allocations: 4 kB / 473.6 MB, free: 108 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.881e-05/0.4053, allocations: 36 kB / 473.7 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.4056, allocations: 143.2 kB / 473.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.4056, allocations: 0 / 473.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.4056, allocations: 3.906 kB / 473.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.4056, allocations: 0 / 473.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003862/0.406, allocations: 340.5 kB / 474.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001258/0.4061, allocations: 95.91 kB / 474.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.803e-05/0.4062, allocations: 46.69 kB / 474.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.4062, allocations: 0 / 474.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.235e-05/0.4063, allocations: 67.56 kB / 474.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.4063, allocations: 4 kB / 474.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001974/0.4065, allocations: 97.42 kB / 474.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/0.4066, allocations: 140.5 kB / 474.6 MB, free: 15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.4068, allocations: 224.1 kB / 474.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.4069, allocations: 29.7 kB / 474.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.288e-05/0.4069, allocations: 100.1 kB / 474.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.407, allocations: 15.75 kB / 475 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.407, allocations: 0 / 475 MB, free: 14.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.4071, allocations: 326.8 kB / 475.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.884e-05/0.4071, allocations: 27.98 kB / 475.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.196e-05/0.4072, allocations: 62.67 kB / 475.4 MB, free: 14.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.713e-05/0.4073, allocations: 28.73 kB / 475.4 MB, free: 14.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.4073, allocations: 8.031 kB / 475.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001556/0.4074, allocations: 101.3 kB / 475.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.4074, allocations: 4 kB / 475.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4075, allocations: 4 kB / 475.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.4075, allocations: 0 / 475.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.04e-05/0.4076, allocations: 16.81 kB / 475.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.4076, allocations: 4 kB / 475.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.713e-05/0.4077, allocations: 16.05 kB / 475.5 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.4077, allocations: 11.98 kB / 475.6 MB, free: 13.99 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.146e-05/0.4078, allocations: 108.9 kB / 475.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.493e-05/0.4078, allocations: 65.44 kB / 475.7 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001744/0.408, allocations: 94.42 kB / 475.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.408, allocations: 0 / 475.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.408, allocations: 4.938 kB / 475.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4081, allocations: 3.906 kB / 475.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001981/0.4083, allocations: 206.2 kB / 476 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4083, allocations: 0 / 476 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.766e-05/0.4083, allocations: 11.94 kB / 476 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.4083, allocations: 0 / 476 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.4083, allocations: 3.984 kB / 476 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.4084, allocations: 4 kB / 476 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4084, allocations: 0 / 476 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001869/0.4085, allocations: 177.8 kB / 476.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002786/0.4088, allocations: 0.5374 MB / 476.8 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.409, allocations: 112.9 kB / 476.9 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.409, allocations: 3.938 kB / 476.9 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.3e-05/0.4091, allocations: 7.984 kB / 476.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.507e-05/0.4091, allocations: 7.906 kB / 476.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.4091, allocations: 4 kB / 476.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001606/0.4093, allocations: 184.5 kB / 477.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008118/0.4101, allocations: 43.92 kB / 477.1 MB, free: 12.27 MB / 362.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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (10): * Single equations (assignments): 8 * 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.0005967/0.4107, allocations: 323.9 kB / 477.4 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.4109, allocations: 63.92 kB / 477.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4109, allocations: 0 / 477.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.444e-05/0.411, allocations: 27.94 kB / 477.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000329/0.4113, allocations: 54.23 kB / 477.6 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004421/0.4118, allocations: 245.2 kB / 477.8 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.4121, allocations: 0.747 MB / 478.6 MB, free: 10.86 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4121, allocations: 0 / 478.6 MB, free: 10.86 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1)