Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",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.001245/0.001245, allocations: 198.6 kB / 8.539 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.209/1.209, allocations: 225.5 MB / 234.4 MB, free: 3.449 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008883/0.0008883, allocations: 94.72 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1072/0.1081, allocations: 56.9 MB / 343.2 MB, free: 8.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.2302, allocations: 51.48 MB / 394.7 MB, free: 5.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2306/0.4608, allocations: 77.07 MB / 471.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001805/0.4611, allocations: 74.34 kB / 471.9 MB, free: 14.24 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.005406/0.4665, allocations: 2.235 MB / 474.1 MB, free: 12.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.4665, allocations: 12 kB / 474.1 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.4667, allocations: 19.14 kB / 474.1 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.4668, allocations: 192.6 kB / 474.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.4668, allocations: 8 kB / 474.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.4669, allocations: 0 / 474.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.844e-05/0.4669, allocations: 18.03 kB / 474.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/0.4671, allocations: 93.14 kB / 474.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-06/0.4671, allocations: 0 / 474.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.4671, allocations: 0 / 474.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.4671, allocations: 4 kB / 474.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002469/0.4674, allocations: 245.7 kB / 474.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.702e-05/0.4674, allocations: 40.53 kB / 474.7 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.14e-05/0.4675, allocations: 17.84 kB / 474.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.4675, allocations: 0 / 474.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.209e-05/0.4675, allocations: 35.88 kB / 474.8 MB, free: 12.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.4675, allocations: 0.75 kB / 474.8 MB, free: 12.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.000133/0.4676, allocations: 48.52 kB / 474.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/0.4677, allocations: 81.17 kB / 474.9 MB, free: 12.01 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.633e-05/0.4678, allocations: 126.8 kB / 475 MB, free: 11.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.903e-06/0.4678, allocations: 25.7 kB / 475 MB, free: 11.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.836e-05/0.4678, allocations: 84.02 kB / 475.1 MB, free: 11.78 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.4678, allocations: 7.844 kB / 475.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.076e-06/0.4678, allocations: 0 / 475.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.459e-05/0.4679, allocations: 321.6 kB / 475.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.172e-05/0.4679, allocations: 3.562 kB / 475.5 MB, free: 11.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.439e-05/0.4679, allocations: 17.72 kB / 475.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.718e-05/0.4679, allocations: 11.19 kB / 475.5 MB, free: 11.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4679, allocations: 0 / 475.5 MB, free: 11.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.153e-05/0.468, allocations: 41.08 kB / 475.5 MB, free: 11.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.769e-06/0.468, allocations: 8 kB / 475.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.468, allocations: 2.188 kB / 475.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.345e-06/0.468, allocations: 0 / 475.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.845e-05/0.4681, allocations: 11.41 kB / 475.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.4681, allocations: 4 kB / 475.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.784e-05/0.4682, allocations: 3.312 kB / 475.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.4682, allocations: 4 kB / 475.6 MB, free: 11.36 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 3.502e-05/0.4682, allocations: 108.9 kB / 475.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.082e-05/0.4683, allocations: 44.98 kB / 475.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.773e-05/0.4683, allocations: 10.95 kB / 475.7 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4683, allocations: 4.031 kB / 475.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.4683, allocations: 4 kB / 475.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.4683, allocations: 0.875 kB / 475.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.4684, allocations: 144.8 kB / 475.9 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4684, allocations: 0 / 475.9 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.899e-05/0.4685, allocations: 11.28 kB / 475.9 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.4685, allocations: 0 / 475.9 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.4685, allocations: 0 / 475.9 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.4685, allocations: 5.781 kB / 475.9 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4685, allocations: 4 kB / 475.9 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.116e-05/0.4686, allocations: 167.1 kB / 476 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001065/0.4687, allocations: 0.5287 MB / 476.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.615e-05/0.4688, allocations: 91.77 kB / 476.7 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.4688, allocations: 4 kB / 476.7 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.791e-05/0.4689, allocations: 4 kB / 476.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.607e-05/0.4689, allocations: 0 / 476.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-06/0.4689, allocations: 3.812 kB / 476.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.092e-05/0.469, allocations: 103.8 kB / 476.8 MB, free: 10.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008156/0.4698, allocations: 15.11 kB / 476.8 MB, free: 10.06 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 6.857e-05/0.4699, allocations: 95.25 kB / 476.9 MB, free: 9.961 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.092e-05/0.4699, allocations: 15.62 kB / 476.9 MB, free: 9.949 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4699, allocations: 0 / 476.9 MB, free: 9.949 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.285e-05/0.47, allocations: 6.062 kB / 476.9 MB, free: 9.945 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.4702, allocations: 15.06 kB / 476.9 MB, free: 9.938 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002051/0.4704, allocations: 101.4 kB / 477 MB, free: 9.824 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.4705, allocations: 0.7015 MB / 477.7 MB, free: 9.105 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4705, allocations: 0 / 477.7 MB, free: 9.105 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1)