Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.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.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",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.001189/0.001189, allocations: 202.3 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009922/0.0009923, allocations: 95.2 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1095/0.1105, allocations: 56.89 MB / 343.2 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.2125, allocations: 51.48 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2661/0.4786, allocations: 77.19 MB / 471.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.4789, allocations: 63.97 kB / 472 MB, free: 14.11 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.005821/0.4847, allocations: 2.129 MB / 474.1 MB, free: 12.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.4847, allocations: 15.33 kB / 474.1 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002319/0.485, allocations: 38.66 kB / 474.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.4852, allocations: 202 kB / 474.3 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.4852, allocations: 11.28 kB / 474.4 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.4853, allocations: 15.27 kB / 474.4 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000122/0.4854, allocations: 40 kB / 474.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.4856, allocations: 109.6 kB / 474.5 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.4856, allocations: 0 / 474.5 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.108e-05/0.4856, allocations: 3.469 kB / 474.5 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.4856, allocations: 7.906 kB / 474.5 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004906/0.4861, allocations: 360.6 kB / 474.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.4863, allocations: 112.8 kB / 475 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.712e-05/0.4864, allocations: 42.55 kB / 475 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.4864, allocations: 0 / 475 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001416/0.4866, allocations: 117.6 kB / 475.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.4866, allocations: 0 / 475.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002832/0.4869, allocations: 130.3 kB / 475.3 MB, free: 11.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/0.4869, allocations: 62.38 kB / 475.3 MB, free: 11.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.914e-05/0.487, allocations: 122.1 kB / 475.5 MB, free: 11.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.487, allocations: 29.7 kB / 475.5 MB, free: 11.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.486e-05/0.487, allocations: 95.48 kB / 475.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.215e-05/0.4871, allocations: 37.88 kB / 475.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-06/0.4871, allocations: 0 / 475.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.691e-05/0.4872, allocations: 336.1 kB / 475.9 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.784e-05/0.4872, allocations: 31.19 kB / 476 MB, free: 11.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.387e-05/0.4873, allocations: 92.8 kB / 476.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.583e-05/0.4874, allocations: 55.95 kB / 476.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4874, allocations: 0 / 476.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002309/0.4877, allocations: 160.1 kB / 476.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.4877, allocations: 7.938 kB / 476.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.4877, allocations: 5.547 kB / 476.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.4877, allocations: 6.719 kB / 476.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.4879, allocations: 34.66 kB / 476.3 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.4879, allocations: 7.938 kB / 476.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.666e-05/0.488, allocations: 27.3 kB / 476.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.4881, allocations: 7.438 kB / 476.4 MB, free: 10.74 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$whenCondition2,$whenCondition1,$PRE.signalExtrema1.y_min,signalExtrema1.y_min,$PRE.signalExtrema1.y_max,signalExtrema1.y_max,$PRE.signalExtrema2.y_min,signalExtrema2.y_min,$PRE.signalExtrema2.y_max,signalExtrema2.y_max) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 8.662e-05/0.4881, allocations: 118.2 kB / 476.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.478e-05/0.4882, allocations: 15.19 kB / 476.5 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.4884, allocations: 130.2 kB / 476.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.4885, allocations: 7.281 kB / 476.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.4885, allocations: 3.125 kB / 476.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.4885, allocations: 3.828 kB / 476.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.4889, allocations: 432.4 kB / 477.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4889, allocations: 0 / 477.1 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.489, allocations: 19.19 kB / 477.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.489, allocations: 3.906 kB / 477.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.4891, allocations: 7.234 kB / 477.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.4891, allocations: 0 / 477.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4891, allocations: 0 / 477.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003382/0.4894, allocations: 297.8 kB / 477.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004463/0.4899, allocations: 0.7256 MB / 478.1 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.962e-05/0.4899, allocations: 89.23 kB / 478.2 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.816e-05/0.49, allocations: 14.81 kB / 478.2 MB, free: 9.148 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.4902, allocations: 45.83 kB / 478.3 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.132e-05/0.4902, allocations: 7.422 kB / 478.3 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.4903, allocations: 14.88 kB / 478.3 MB, free: 9.102 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.96e-05/0.4903, allocations: 102 kB / 478.4 MB, free: 9.016 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009048/0.4912, allocations: 28.25 kB / 478.4 MB, free: 8.988 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_min,signalExtrema1.t_max,signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_min,signalExtrema2.t_max) * Number of discrete states: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001528/0.4914, allocations: 111.6 kB / 478.5 MB, free: 8.879 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001896/0.4916, allocations: 111.3 kB / 478.6 MB, free: 8.801 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4916, allocations: 4.125 kB / 478.6 MB, free: 8.797 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.271e-05/0.4917, allocations: 54.81 kB / 478.7 MB, free: 8.762 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001588/0.4918, allocations: 11.47 kB / 478.7 MB, free: 8.754 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005255/0.4924, allocations: 217.9 kB / 478.9 MB, free: 8.566 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001997/0.4926, allocations: 0.7311 MB / 479.6 MB, free: 7.824 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4926, allocations: 0 / 479.6 MB, free: 7.824 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)