Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.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.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema",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.001553/0.001552, allocations: 199.2 kB / 8.537 MB, free: 1.727 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009115/0.0009116, allocations: 89.23 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1112/0.1122, allocations: 56.89 MB / 343.2 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09756/0.2098, allocations: 51.47 MB / 394.7 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2622/0.4721, allocations: 77.79 MB / 472.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001918/0.4723, allocations: 57.53 kB / 472.5 MB, free: 13.68 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.01301/0.4853, allocations: 4.347 MB / 476.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.4854, allocations: 12 kB / 476.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003893/0.4858, allocations: 69.33 kB / 477 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.486, allocations: 194.7 kB / 477.2 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.451e-05/0.486, allocations: 14.47 kB / 477.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.995e-05/0.4861, allocations: 19.14 kB / 477.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002974/0.4864, allocations: 137.8 kB / 477.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004128/0.4868, allocations: 260.8 kB / 477.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.4869, allocations: 3.938 kB / 477.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.4869, allocations: 4 kB / 477.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.4869, allocations: 8 kB / 477.6 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.488, allocations: 0.6853 MB / 478.3 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.4884, allocations: 238 kB / 478.5 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.4886, allocations: 130.8 kB / 478.6 MB, free: 9.629 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.4886, allocations: 4 kB / 478.6 MB, free: 9.625 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004218/0.4891, allocations: 296.5 kB / 478.9 MB, free: 9.445 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 2.534e-06/0.4891, allocations: 0 / 478.9 MB, free: 9.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=41): time 0.0005774/0.4897, allocations: 307.1 kB / 479.2 MB, free: 9.242 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.4897, allocations: 62.53 kB / 479.3 MB, free: 9.172 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.4898, allocations: 169 kB / 479.5 MB, free: 9.031 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.4899, allocations: 33.02 kB / 479.5 MB, free: 8.996 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.116e-05/0.49, allocations: 114.3 kB / 479.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.651e-05/0.49, allocations: 97.41 kB / 479.7 MB, free: 8.824 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/0.4901, allocations: 0 / 479.7 MB, free: 8.824 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.644e-05/0.4901, allocations: 346.2 kB / 480 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.4903, allocations: 100.1 kB / 480.1 MB, free: 8.441 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.4905, allocations: 187 kB / 480.3 MB, free: 8.285 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001918/0.4907, allocations: 96.19 kB / 480.4 MB, free: 8.234 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.4908, allocations: 8 kB / 480.4 MB, free: 8.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0005272/0.4913, allocations: 349 kB / 480.8 MB, free: 7.988 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.4913, allocations: 6.344 kB / 480.8 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.4913, allocations: 7.5 kB / 480.8 MB, free: 7.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.4913, allocations: 9.016 kB / 480.8 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/0.4918, allocations: 90.34 kB / 480.9 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.4918, allocations: 8.5 kB / 480.9 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003798/0.4922, allocations: 77.33 kB / 481 MB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.347e-05/0.4922, allocations: 15.95 kB / 481 MB, free: 7.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalExtrema3.t_min,signalExtrema3.t_min,$PRE.signalExtrema3.t_max,signalExtrema3.t_max,$PRE.signalExtrema2.t_min,signalExtrema2.t_min,$PRE.signalExtrema2.t_max,signalExtrema2.t_max,$PRE.signalExtrema1.t_min,signalExtrema1.t_min,$PRE.signalExtrema1.t_max,signalExtrema1.t_max,$whenCondition5,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$PRE.sawTooth.T_start,sawTooth.T_start,$PRE.sawTooth.count,sawTooth.count,$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,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$PRE.sawTooth1.T_start,sawTooth1.T_start,$PRE.sawTooth1.count,sawTooth1.count,$PRE.signalExtrema3.y_min,signalExtrema3.y_min,$PRE.signalExtrema3.y_max,signalExtrema3.y_max) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 3 * 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 0.0001201/0.4923, allocations: 134.5 kB / 481.1 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/0.4924, allocations: 24.89 kB / 481.1 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.701e-05/0.4925, allocations: 31.72 kB / 481.2 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.4925, allocations: 4.609 kB / 481.2 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4925, allocations: 0 / 481.2 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.4925, allocations: 5.969 kB / 481.2 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003101/0.4928, allocations: 307.3 kB / 481.5 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.4928, allocations: 3.984 kB / 481.5 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003149/0.4932, allocations: 60.73 kB / 481.5 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-06/0.4932, allocations: 0 / 481.5 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.692e-05/0.4932, allocations: 15.53 kB / 481.5 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.4932, allocations: 4 kB / 481.6 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4932, allocations: 0 / 481.6 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007752/0.494, allocations: 0.5196 MB / 482.1 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009867/0.495, allocations: 1.066 MB / 483.1 MB, free: 6.117 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/0.4951, allocations: 100.8 kB / 483.2 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.039e-05/0.4952, allocations: 15.8 kB / 483.3 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003989/0.4956, allocations: 79.88 kB / 483.3 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.4957, allocations: 51.62 kB / 483.4 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.781e-05/0.4958, allocations: 27.73 kB / 483.4 MB, free: 5.848 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.713e-05/0.4959, allocations: 127.5 kB / 483.5 MB, free: 5.738 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009077/0.4968, allocations: 76.06 kB / 483.6 MB, free: 5.668 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (signalExtrema3.x,signalExtrema1.x,signalExtrema2.x) * Number of discrete variables: 28 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,sawTooth1.T_start,sawTooth1.count,signalExtrema3.y_min,signalExtrema3.y_max,signalExtrema3.t_min,signalExtrema3.t_max,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,sawTooth.T_start,sawTooth.count,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: 18 (sawTooth.count,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.y_min,signalExtrema1.t_min,signalExtrema1.u,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.y_min,signalExtrema2.t_min,signalExtrema2.u,pulse.count,sawTooth1.count,signalExtrema3.y_max,signalExtrema3.t_max,signalExtrema3.y_min,signalExtrema3.t_min,signalExtrema3.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.0002001/0.497, allocations: 133.5 kB / 483.7 MB, free: 5.531 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005572/0.4975, allocations: 397.6 kB / 484.1 MB, free: 5.219 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4975, allocations: 0 / 484.1 MB, free: 5.219 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.4978, allocations: 188.5 kB / 484.3 MB, free: 5.098 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.4981, allocations: 28.48 kB / 484.3 MB, free: 5.082 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008953/0.499, allocations: 389.5 kB / 484.7 MB, free: 4.734 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002924/0.4993, allocations: 0.7944 MB / 485.5 MB, free: 3.914 MB / 346.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4993, allocations: 0 / 485.5 MB, free: 3.914 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)