Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",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.001064/0.001064, allocations: 197.6 kB / 8.538 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008809/0.0008811, allocations: 91.69 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1106/0.1115, allocations: 56.9 MB / 343.2 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.2081, allocations: 51.47 MB / 394.7 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2708/0.479, allocations: 76.91 MB / 471.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.4792, allocations: 74.11 kB / 471.7 MB, free: 14.41 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.00411/0.4834, allocations: 1.549 MB / 473.2 MB, free: 13.39 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.4834, allocations: 12 kB / 473.3 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.4836, allocations: 19.19 kB / 473.3 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.4837, allocations: 181.6 kB / 473.4 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.4837, allocations: 3.938 kB / 473.5 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.4838, allocations: 4 kB / 473.5 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.443e-05/0.4838, allocations: 19.72 kB / 473.5 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001369/0.484, allocations: 82.33 kB / 473.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.484, allocations: 0 / 473.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.484, allocations: 0 / 473.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.484, allocations: 0 / 473.6 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00028/0.4843, allocations: 249.2 kB / 473.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.793e-05/0.4844, allocations: 40.03 kB / 473.8 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.306e-05/0.4844, allocations: 13.84 kB / 473.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.4844, allocations: 4 kB / 473.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.425e-05/0.4844, allocations: 33.56 kB / 473.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.4845, allocations: 4 kB / 473.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001518/0.4846, allocations: 52.08 kB / 473.9 MB, free: 12.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.4847, allocations: 77.11 kB / 474 MB, free: 12.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.536e-05/0.4847, allocations: 123.6 kB / 474.1 MB, free: 12.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.436e-06/0.4848, allocations: 25.7 kB / 474.2 MB, free: 12.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.294e-05/0.4848, allocations: 92.14 kB / 474.3 MB, free: 12.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.4848, allocations: 6.656 kB / 474.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-06/0.4848, allocations: 0 / 474.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.213e-05/0.4849, allocations: 314.3 kB / 474.6 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.401e-05/0.4849, allocations: 7.188 kB / 474.6 MB, free: 11.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.411e-05/0.4849, allocations: 13.72 kB / 474.6 MB, free: 11.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.866e-05/0.4849, allocations: 11.12 kB / 474.6 MB, free: 11.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.4849, allocations: 0 / 474.6 MB, free: 11.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.395e-05/0.485, allocations: 48.31 kB / 474.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.485, allocations: 4 kB / 474.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.485, allocations: 0 / 474.6 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.4851, allocations: 4 kB / 474.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.162e-05/0.4851, allocations: 4 kB / 474.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.4851, allocations: 4.125 kB / 474.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.933e-05/0.4852, allocations: 12 kB / 474.7 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.4852, allocations: 0 / 474.7 MB, free: 11.87 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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.905e-05/0.4853, allocations: 108.9 kB / 474.8 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.207e-05/0.4853, allocations: 33.61 kB / 474.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.707e-05/0.4854, allocations: 13.89 kB / 474.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.4854, allocations: 0 / 474.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4854, allocations: 3.906 kB / 474.8 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.4854, allocations: 5.406 kB / 474.8 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.4855, allocations: 143.7 kB / 475 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.4855, allocations: 4.031 kB / 475 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.752e-05/0.4856, allocations: 7.188 kB / 475 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.4856, allocations: 0 / 475 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.4856, allocations: 4 kB / 475 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4856, allocations: 0 / 475 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4856, allocations: 0 / 475 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.905e-05/0.4857, allocations: 167.1 kB / 475.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001484/0.4859, allocations: 0.5264 MB / 475.7 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.924e-05/0.4859, allocations: 89.22 kB / 475.8 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.486, allocations: 7.047 kB / 475.8 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.825e-05/0.486, allocations: 4 kB / 475.8 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.165e-05/0.4861, allocations: 0 / 475.8 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.4861, allocations: 7.906 kB / 475.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.151e-05/0.4861, allocations: 105.5 kB / 475.9 MB, free: 10.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007818/0.4869, allocations: 11.42 kB / 475.9 MB, free: 10.59 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 (2): * Single equations (assignments): 2 * 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.0001174/0.4871, allocations: 99.19 kB / 476 MB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.206e-05/0.4872, allocations: 15.31 kB / 476 MB, free: 10.47 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4872, allocations: 0 / 476 MB, free: 10.47 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.207e-05/0.4872, allocations: 0 / 476 MB, free: 10.47 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.4874, allocations: 15.17 kB / 476 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000262/0.4877, allocations: 90.62 kB / 476.1 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.4879, allocations: 0.7018 MB / 476.8 MB, free: 9.648 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4879, allocations: 7.938 kB / 476.8 MB, free: 9.641 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1)