Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",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.001622/0.001622, allocations: 195.5 kB / 8.538 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 225.5 MB / 234.4 MB, free: 3.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 93.06 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1233/0.1244, allocations: 56.9 MB / 343.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.2345, allocations: 51.48 MB / 394.7 MB, free: 5.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2762/0.5107, allocations: 77.07 MB / 471.8 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.511, allocations: 77.5 kB / 471.9 MB, free: 14.26 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.00435/0.5153, allocations: 1.599 MB / 473.5 MB, free: 13.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.5154, allocations: 8 kB / 473.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.5155, allocations: 26.33 kB / 473.5 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.5157, allocations: 197.4 kB / 473.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.5158, allocations: 0 / 473.7 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.5158, allocations: 4 kB / 473.7 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.128e-05/0.5159, allocations: 16.62 kB / 473.7 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.5161, allocations: 101 kB / 473.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.5161, allocations: 3.375 kB / 473.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.5161, allocations: 0 / 473.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.5161, allocations: 4 kB / 473.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000321/0.5164, allocations: 249.8 kB / 474.1 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.5166, allocations: 127.3 kB / 474.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.703e-05/0.5167, allocations: 30.95 kB / 474.2 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/0.5167, allocations: 0 / 474.2 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.5167, allocations: 38.5 kB / 474.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.5167, allocations: 0 / 474.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001892/0.5169, allocations: 51.28 kB / 474.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.517, allocations: 81.11 kB / 474.4 MB, free: 12.22 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.72e-05/0.5171, allocations: 131.1 kB / 474.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.5171, allocations: 29.7 kB / 474.5 MB, free: 12.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.746e-05/0.5172, allocations: 80.14 kB / 474.6 MB, free: 11.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.5172, allocations: 3.438 kB / 474.6 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-06/0.5172, allocations: 0 / 474.6 MB, free: 11.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.426e-05/0.5173, allocations: 318.2 kB / 474.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.7e-05/0.5173, allocations: 9.594 kB / 474.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.288e-05/0.5173, allocations: 26.56 kB / 475 MB, free: 11.62 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.183e-05/0.5173, allocations: 11.42 kB / 475 MB, free: 11.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5173, allocations: 0 / 475 MB, free: 11.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.646e-05/0.5174, allocations: 56.5 kB / 475 MB, free: 11.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.5174, allocations: 7.438 kB / 475 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.5175, allocations: 0 / 475 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.5175, allocations: 4.125 kB / 475 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.221e-05/0.5176, allocations: 12.14 kB / 475.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.5176, allocations: 3.938 kB / 475.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.899e-05/0.5176, allocations: 11.23 kB / 475.1 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.5176, allocations: 7.938 kB / 475.1 MB, free: 11.52 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 5.358e-05/0.5177, allocations: 104.5 kB / 475.2 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.5178, allocations: 48.88 kB / 475.2 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.643e-05/0.5178, allocations: 7.625 kB / 475.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.5178, allocations: 8 kB / 475.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.5178, allocations: 0.8125 kB / 475.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.5178, allocations: 0 / 475.2 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001206/0.518, allocations: 155.2 kB / 475.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.518, allocations: 0 / 475.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.788e-05/0.518, allocations: 11.47 kB / 475.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.518, allocations: 4 kB / 475.4 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.5181, allocations: 3.125 kB / 475.4 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.5181, allocations: 3.938 kB / 475.4 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.5181, allocations: 4.703 kB / 475.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.915e-05/0.5182, allocations: 173.9 kB / 475.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001354/0.5183, allocations: 0.5334 MB / 476.1 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.5184, allocations: 95.61 kB / 476.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.5184, allocations: 3.938 kB / 476.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.868e-05/0.5185, allocations: 7.469 kB / 476.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.898e-05/0.5185, allocations: 3.906 kB / 476.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.5186, allocations: 0 / 476.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.6e-05/0.5186, allocations: 102.9 kB / 476.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007909/0.5194, allocations: 8 kB / 476.3 MB, free: 10.22 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 0.0001108/0.5195, allocations: 103.2 kB / 476.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.725e-05/0.5196, allocations: 22.75 kB / 476.5 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.5196, allocations: 0 / 476.5 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.382e-05/0.5196, allocations: 3.375 kB / 476.5 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.5199, allocations: 18.91 kB / 476.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002279/0.5201, allocations: 97.47 kB / 476.6 MB, free: 9.98 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.5203, allocations: 0.7038 MB / 477.3 MB, free: 9.266 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5203, allocations: 3.938 kB / 477.3 MB, free: 9.262 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1)