Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",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.001087/0.001087, allocations: 205.8 kB / 8.544 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000889/0.0008891, allocations: 96.64 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1281/0.129, allocations: 56.9 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.2307, allocations: 51.47 MB / 394.7 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.28/0.5107, allocations: 76.51 MB / 471.2 MB, free: 15.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002017/0.5109, allocations: 72.97 kB / 471.3 MB, free: 15.02 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.002802/0.5137, allocations: 1.18 MB / 472.5 MB, free: 14.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.5138, allocations: 8.562 kB / 472.5 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.5138, allocations: 11.91 kB / 472.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.514, allocations: 197.6 kB / 472.7 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.327e-06/0.514, allocations: 0 / 472.7 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.514, allocations: 0 / 472.7 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.533e-05/0.5141, allocations: 18.94 kB / 472.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001889/0.5143, allocations: 108.3 kB / 472.8 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.5143, allocations: 0 / 472.8 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.5143, allocations: 0 / 472.8 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.5143, allocations: 0 / 472.8 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002611/0.5146, allocations: 247.5 kB / 473.1 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.5148, allocations: 133.3 kB / 473.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.244e-05/0.5148, allocations: 21.22 kB / 473.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.5148, allocations: 0 / 473.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.248e-05/0.5148, allocations: 34.56 kB / 473.2 MB, free: 13.37 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.5148, allocations: 3.938 kB / 473.2 MB, free: 13.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.000144/0.515, allocations: 57.38 kB / 473.3 MB, free: 13.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.515, allocations: 77.11 kB / 473.4 MB, free: 13.22 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.678e-05/0.5151, allocations: 119.1 kB / 473.5 MB, free: 13.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.494e-06/0.5151, allocations: 25.7 kB / 473.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.811e-05/0.5152, allocations: 83.95 kB / 473.6 MB, free: 13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.302e-05/0.5152, allocations: 6.906 kB / 473.6 MB, free: 12.99 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.614e-06/0.5152, allocations: 0 / 473.6 MB, free: 12.99 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.581e-05/0.5152, allocations: 322.6 kB / 473.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.074e-05/0.5152, allocations: 0 / 473.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.903e-05/0.5153, allocations: 31.06 kB / 473.9 MB, free: 12.63 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.58e-05/0.5153, allocations: 7.188 kB / 474 MB, free: 12.63 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.5153, allocations: 4 kB / 474 MB, free: 12.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.292e-05/0.5154, allocations: 52.53 kB / 474 MB, free: 12.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/0.5154, allocations: 7.906 kB / 474 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.5154, allocations: 4 kB / 474 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.5154, allocations: 0 / 474 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.657e-05/0.5155, allocations: 11.94 kB / 474 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.5155, allocations: 2.188 kB / 474 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.438e-05/0.5155, allocations: 7.141 kB / 474 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-06/0.5155, allocations: 8.125 kB / 474 MB, free: 12.54 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 3.718e-05/0.5156, allocations: 104.9 kB / 474.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.17e-05/0.5156, allocations: 47.8 kB / 474.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.974e-05/0.5157, allocations: 11.94 kB / 474.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.5157, allocations: 0 / 474.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.5157, allocations: 5.406 kB / 474.2 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.5157, allocations: 0 / 474.2 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001014/0.5158, allocations: 140.3 kB / 474.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.5158, allocations: 1.875 kB / 474.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.698e-05/0.5159, allocations: 15.19 kB / 474.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.5159, allocations: 4 kB / 474.4 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-06/0.5159, allocations: 0 / 474.4 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5159, allocations: 0 / 474.4 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5159, allocations: 0 / 474.4 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.399e-05/0.516, allocations: 174.2 kB / 474.5 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001116/0.5161, allocations: 0.5315 MB / 475.1 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.751e-05/0.5162, allocations: 98.17 kB / 475.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.5162, allocations: 0 / 475.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.981e-05/0.5163, allocations: 4.047 kB / 475.2 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.68e-05/0.5163, allocations: 11.89 kB / 475.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.5163, allocations: 7.047 kB / 475.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.547e-05/0.5164, allocations: 102.3 kB / 475.3 MB, free: 11.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008016/0.5172, allocations: 4 kB / 475.3 MB, free: 11.25 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 9.05e-05/0.5173, allocations: 99.19 kB / 475.4 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.372e-05/0.5173, allocations: 15.56 kB / 475.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5173, allocations: 256 / 475.4 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.558e-06/0.5174, allocations: 4 kB / 475.4 MB, free: 11.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.5176, allocations: 31.05 kB / 475.4 MB, free: 11.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001949/0.5178, allocations: 85.83 kB / 475.5 MB, free: 11.01 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.5179, allocations: 0.708 MB / 476.2 MB, free: 10.29 MB / 346.7 MB Notification: Performance of SimCode: time 3e-07/0.5179, allocations: 0 / 476.2 MB, free: 10.29 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1)