Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001137/0.001137, allocations: 178.9 kB / 8.129 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.173/1.173, allocations: 221.4 MB / 229.9 MB, free: 13.58 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008855/0.0008856, allocations: 92.53 kB / 280.8 MB, free: 10.59 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09262/0.09354, allocations: 55.83 MB / 336.6 MB, free: 2.789 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0806/0.1742, allocations: 50.42 MB / 387 MB, free: 328 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2016/0.3758, allocations: 80.43 MB / 467.5 MB, free: 1.246 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.3761, allocations: 81.64 kB / 467.5 MB, free: 1.168 MB / 338.8 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.0162/0.3923, allocations: 6.314 MB / 473.9 MB, free: 10.92 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.3923, allocations: 8 kB / 473.9 MB, free: 10.91 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.043e-05/0.3924, allocations: 23.72 kB / 473.9 MB, free: 10.89 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.3928, allocations: 302.8 kB / 474.2 MB, free: 10.55 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.3929, allocations: 4.562 kB / 474.2 MB, free: 10.55 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.3929, allocations: 4.812 kB / 474.2 MB, free: 10.55 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001068/0.393, allocations: 39.98 kB / 474.2 MB, free: 10.51 MB / 354.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002627/0.3933, allocations: 163.9 kB / 474.4 MB, free: 10.32 MB / 354.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3933, allocations: 7.172 kB / 474.4 MB, free: 10.32 MB / 354.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.3933, allocations: 4 kB / 474.4 MB, free: 10.31 MB / 354.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3933, allocations: 0 / 474.4 MB, free: 10.31 MB / 354.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004839/0.3938, allocations: 389.4 kB / 474.8 MB, free: 9.891 MB / 354.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.394, allocations: 134.5 kB / 474.9 MB, free: 9.723 MB / 354.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.947e-05/0.3941, allocations: 53.28 kB / 475 MB, free: 9.66 MB / 354.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.3941, allocations: 6.344 kB / 475 MB, free: 9.656 MB / 354.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.394e-05/0.3942, allocations: 82.7 kB / 475 MB, free: 9.566 MB / 354.8 MB Notification: Performance of pre-optimization done (n=11): time 2.696e-06/0.3942, allocations: 1.031 kB / 475 MB, free: 9.566 MB / 354.8 MB Notification: Performance of matching and sorting (n=11): time 0.0002258/0.3944, allocations: 122.9 kB / 475.2 MB, free: 9.441 MB / 354.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.275e-05/0.3945, allocations: 190.4 kB / 475.4 MB, free: 9.215 MB / 354.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002789/0.3948, allocations: 293 kB / 475.6 MB, free: 8.918 MB / 354.8 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.3948, allocations: 25.7 kB / 475.7 MB, free: 8.887 MB / 354.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.361e-05/0.3949, allocations: 101 kB / 475.8 MB, free: 8.781 MB / 354.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.3949, allocations: 23.83 kB / 475.8 MB, free: 8.758 MB / 354.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-06/0.3949, allocations: 0 / 475.8 MB, free: 8.758 MB / 354.8 MB Notification: Performance of setup shared object (initialization): time 8.754e-05/0.395, allocations: 334.8 kB / 476.1 MB, free: 8.422 MB / 354.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.912e-05/0.3951, allocations: 24 kB / 476.1 MB, free: 8.398 MB / 354.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.506e-05/0.3951, allocations: 96.52 kB / 476.2 MB, free: 8.273 MB / 354.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.63e-05/0.3952, allocations: 35.98 kB / 476.3 MB, free: 8.238 MB / 354.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3952, allocations: 0 / 476.3 MB, free: 8.238 MB / 354.8 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001814/0.3954, allocations: 125.4 kB / 476.4 MB, free: 8.109 MB / 354.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.458e-06/0.3954, allocations: 8.031 kB / 476.4 MB, free: 8.102 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3954, allocations: 4 kB / 476.4 MB, free: 8.098 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.488e-06/0.3954, allocations: 0 / 476.4 MB, free: 8.098 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.3956, allocations: 23.98 kB / 476.4 MB, free: 8.074 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.3956, allocations: 4.688 kB / 476.4 MB, free: 8.07 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.966e-05/0.3957, allocations: 11.91 kB / 476.4 MB, free: 8.059 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.3957, allocations: 8 kB / 476.4 MB, free: 8.051 MB / 354.8 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 7.579e-05/0.3958, allocations: 109 kB / 476.6 MB, free: 7.938 MB / 354.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.162e-05/0.3959, allocations: 80.25 kB / 476.6 MB, free: 7.855 MB / 354.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.3961, allocations: 111.3 kB / 476.7 MB, free: 7.742 MB / 354.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.708e-06/0.3961, allocations: 7.906 kB / 476.8 MB, free: 7.734 MB / 354.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3961, allocations: 0 / 476.8 MB, free: 7.734 MB / 354.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3961, allocations: 8.5 kB / 476.8 MB, free: 7.727 MB / 354.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.3963, allocations: 226.2 kB / 477 MB, free: 7.469 MB / 354.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3963, allocations: 1.688 kB / 477 MB, free: 7.469 MB / 354.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.145e-05/0.3964, allocations: 15.98 kB / 477 MB, free: 7.453 MB / 354.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.3964, allocations: 12 kB / 477 MB, free: 7.441 MB / 354.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.3964, allocations: 0 / 477 MB, free: 7.441 MB / 354.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.3964, allocations: 6.062 kB / 477 MB, free: 7.438 MB / 354.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3964, allocations: 0 / 477 MB, free: 7.438 MB / 354.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000204/0.3966, allocations: 211.1 kB / 477.2 MB, free: 7.188 MB / 354.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002773/0.3969, allocations: 0.5789 MB / 477.8 MB, free: 6.559 MB / 354.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.397, allocations: 120.8 kB / 477.9 MB, free: 6.422 MB / 354.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.3971, allocations: 7.984 kB / 477.9 MB, free: 6.414 MB / 354.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.073e-05/0.3972, allocations: 4 kB / 477.9 MB, free: 6.41 MB / 354.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.3972, allocations: 11.98 kB / 477.9 MB, free: 6.398 MB / 354.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.3972, allocations: 6.688 kB / 477.9 MB, free: 6.395 MB / 354.8 MB Notification: Performance of sort global known variables: time 0.0001984/0.3974, allocations: 229.2 kB / 478.2 MB, free: 6.168 MB / 354.8 MB Notification: Performance of remove unused functions: time 0.0008442/0.3983, allocations: 59.83 kB / 478.2 MB, free: 6.109 MB / 354.8 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.0006035/0.3989, allocations: 330.3 kB / 478.6 MB, free: 5.922 MB / 354.8 MB Notification: Performance of simCode: created initialization part: time 0.0001783/0.3991, allocations: 86.78 kB / 478.6 MB, free: 5.84 MB / 354.8 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3991, allocations: 0 / 478.6 MB, free: 5.84 MB / 354.8 MB Notification: Performance of simCode: created simulation system equations: time 5.508e-05/0.3992, allocations: 32.31 kB / 478.7 MB, free: 5.809 MB / 354.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.3995, allocations: 70.23 kB / 478.7 MB, free: 5.746 MB / 354.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004949/0.4, allocations: 288.9 kB / 479 MB, free: 5.434 MB / 354.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003431/0.4004, allocations: 0.7795 MB / 479.8 MB, free: 4.629 MB / 354.8 MB Notification: Performance of SimCode: time 2.71e-07/0.4004, allocations: 1.219 kB / 479.8 MB, free: 4.629 MB / 354.8 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1)