Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_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 trunk/package.mo): time 0.001138/0.001138, allocations: 198.6 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000844/0.000844, allocations: 98.28 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1107/0.1115, allocations: 56.9 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.2142, allocations: 51.47 MB / 394.7 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2446/0.4588, allocations: 77.08 MB / 471.8 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.4591, allocations: 78 kB / 471.9 MB, free: 14.35 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.00433/0.4635, allocations: 1.64 MB / 473.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.4635, allocations: 8 kB / 473.5 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.4636, allocations: 27.02 kB / 473.5 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.4638, allocations: 189.1 kB / 473.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-06/0.4638, allocations: 8 kB / 473.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.4638, allocations: 0 / 473.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.402e-05/0.4639, allocations: 18.92 kB / 473.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001607/0.4641, allocations: 99.44 kB / 473.8 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.4641, allocations: 0 / 473.8 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.4641, allocations: 4 kB / 473.9 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.4641, allocations: 7.938 kB / 473.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000266/0.4644, allocations: 254.8 kB / 474.1 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.667e-05/0.4645, allocations: 66.98 kB / 474.2 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.346e-05/0.4645, allocations: 29.88 kB / 474.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.4645, allocations: 3.375 kB / 474.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.465e-05/0.4646, allocations: 35.62 kB / 474.2 MB, free: 12.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.4646, allocations: 4 kB / 474.2 MB, free: 12.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001595/0.4647, allocations: 56.2 kB / 474.3 MB, free: 12.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.4648, allocations: 105.9 kB / 474.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.631e-05/0.4649, allocations: 129.2 kB / 474.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.4649, allocations: 25.7 kB / 474.6 MB, free: 12.15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.331e-05/0.4649, allocations: 91.42 kB / 474.6 MB, free: 12.06 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.363e-05/0.4649, allocations: 4 kB / 474.6 MB, free: 12.06 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-06/0.465, allocations: 4.094 kB / 474.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.836e-05/0.465, allocations: 317.6 kB / 475 MB, free: 11.74 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.579e-05/0.465, allocations: 7.625 kB / 475 MB, free: 11.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.982e-05/0.4651, allocations: 27.38 kB / 475 MB, free: 11.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.15e-05/0.4651, allocations: 14.77 kB / 475 MB, free: 11.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.4651, allocations: 0 / 475 MB, free: 11.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.635e-05/0.4652, allocations: 55.53 kB / 475.1 MB, free: 11.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.4652, allocations: 4 kB / 475.1 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.4652, allocations: 4 kB / 475.1 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.4652, allocations: 0 / 475.1 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.204e-05/0.4653, allocations: 8 kB / 475.1 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.4653, allocations: 3.469 kB / 475.1 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.768e-05/0.4654, allocations: 12.03 kB / 475.1 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.4654, allocations: 4 kB / 475.1 MB, free: 11.61 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 4.416e-05/0.4654, allocations: 104.9 kB / 475.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.387e-05/0.4655, allocations: 48.47 kB / 475.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.358e-05/0.4656, allocations: 11 kB / 475.3 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.4656, allocations: 3.406 kB / 475.3 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4656, allocations: 4 kB / 475.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4656, allocations: 3.969 kB / 475.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.4657, allocations: 157.4 kB / 475.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.4657, allocations: 4 kB / 475.4 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.432e-05/0.4658, allocations: 15.27 kB / 475.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.4658, allocations: 3.938 kB / 475.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.4658, allocations: 0 / 475.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.4658, allocations: 4 kB / 475.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.4658, allocations: 0 / 475.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001006/0.4659, allocations: 190.8 kB / 475.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001281/0.4661, allocations: 0.5623 MB / 476.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.851e-05/0.4661, allocations: 91.34 kB / 476.3 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.4661, allocations: 3.234 kB / 476.3 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.207e-05/0.4662, allocations: 4 kB / 476.3 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.771e-05/0.4663, allocations: 0 / 476.3 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/0.4663, allocations: 4 kB / 476.3 MB, free: 10.35 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.204e-05/0.4663, allocations: 109.4 kB / 476.4 MB, free: 10.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008282/0.4671, allocations: 15.23 kB / 476.4 MB, free: 10.24 MB / 346.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: 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.0001036/0.4673, allocations: 98.69 kB / 476.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.681e-05/0.4673, allocations: 19.88 kB / 476.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.4673, allocations: 0 / 476.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.386e-05/0.4674, allocations: 4 kB / 476.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.4676, allocations: 23.47 kB / 476.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002485/0.4679, allocations: 113.5 kB / 476.7 MB, free: 9.984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/0.4681, allocations: 0.7079 MB / 477.4 MB, free: 9.262 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4681, allocations: 0 / 477.4 MB, free: 9.262 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1)