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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008662/0.0008661, allocations: 101.3 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.755e-05/1.747e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1097, allocations: 51.48 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3867/0.4965, allocations: 77.85 MB / 473.1 MB, free: 13.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/0.4967, allocations: 65.86 kB / 473.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01159/0.5083, allocations: 3.869 MB / 477 MB, free: 11.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.5084, allocations: 0 / 477 MB, free: 11.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.5084, allocations: 4 kB / 477 MB, free: 11.14 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.001114/0.5095, allocations: 0.7156 MB / 477.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.5095, allocations: 12.03 kB / 477.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.5098, allocations: 61.7 kB / 477.8 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001181/0.51, allocations: 202.3 kB / 478 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.51, allocations: 16.84 kB / 478 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.273e-05/0.5101, allocations: 17.5 kB / 478.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002683/0.5104, allocations: 132.9 kB / 478.2 MB, free: 10.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.5107, allocations: 260 kB / 478.4 MB, free: 9.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.5107, allocations: 0 / 478.4 MB, free: 9.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.225e-05/0.5108, allocations: 9.438 kB / 478.5 MB, free: 9.902 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.5108, allocations: 4 kB / 478.5 MB, free: 9.898 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.5119, allocations: 0.7159 MB / 479.2 MB, free: 9.387 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.5122, allocations: 258.5 kB / 479.4 MB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.5124, allocations: 127.3 kB / 479.6 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.5124, allocations: 7.953 kB / 479.6 MB, free: 9.133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004206/0.5128, allocations: 309.5 kB / 479.9 MB, free: 8.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 1.744e-06/0.5129, allocations: 0 / 479.9 MB, free: 8.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=41): time 0.000579/0.5134, allocations: 422.4 kB / 480.3 MB, free: 8.668 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.5135, allocations: 77.45 kB / 480.4 MB, free: 8.586 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.5136, allocations: 160.6 kB / 480.5 MB, free: 8.453 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.5136, allocations: 35.14 kB / 480.5 MB, free: 8.418 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.586e-05/0.5137, allocations: 126.7 kB / 480.7 MB, free: 8.316 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.183e-05/0.5138, allocations: 102.5 kB / 480.8 MB, free: 8.242 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.988e-05/0.5138, allocations: 4 kB / 480.8 MB, free: 8.238 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.505e-05/0.5138, allocations: 336.4 kB / 481.1 MB, free: 7.922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.514, allocations: 101.6 kB / 481.2 MB, free: 7.863 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.5142, allocations: 184 kB / 481.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.5144, allocations: 103.4 kB / 481.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5144, allocations: 7.938 kB / 481.5 MB, free: 7.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0004818/0.5149, allocations: 370.2 kB / 481.8 MB, free: 7.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.851e-05/0.5149, allocations: 89.06 kB / 481.9 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.5149, allocations: 0 / 481.9 MB, free: 7.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.515, allocations: 10.5 kB / 481.9 MB, free: 7.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003451/0.5153, allocations: 91.91 kB / 482 MB, free: 7.184 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.5153, allocations: 4 kB / 482 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.5156, allocations: 67.08 kB / 482.1 MB, free: 7.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.5157, allocations: 31.78 kB / 482.1 MB, free: 7.09 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.0001027/0.5158, allocations: 129.8 kB / 482.3 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004799/0.5163, allocations: 416.1 kB / 482.7 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.672e-05/0.5163, allocations: 27.67 kB / 482.7 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.261e-05/0.5164, allocations: 29.77 kB / 482.7 MB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.5164, allocations: 8 kB / 482.7 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5164, allocations: 0 / 482.7 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.5164, allocations: 0 / 482.7 MB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002173/0.5167, allocations: 306.6 kB / 483 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.5167, allocations: 0 / 483 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.5169, allocations: 55.39 kB / 483.1 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.517, allocations: 7.953 kB / 483.1 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.177e-05/0.517, allocations: 7.984 kB / 483.1 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.517, allocations: 1.875 kB / 483.1 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.517, allocations: 0 / 483.1 MB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007263/0.5177, allocations: 0.6232 MB / 483.7 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.766e-05/0.5178, allocations: 108.7 kB / 483.8 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.475e-05/0.5179, allocations: 18.7 kB / 483.9 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/0.5182, allocations: 75.92 kB / 483.9 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.5184, allocations: 50.61 kB / 484 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.075e-05/0.5184, allocations: 23.84 kB / 484 MB, free: 5.504 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.366e-05/0.5185, allocations: 125.8 kB / 484.1 MB, free: 5.395 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5185, allocations: 0 / 484.1 MB, free: 5.395 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003157/0.5188, allocations: 79.73 kB / 484.2 MB, free: 5.32 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.000925/0.5197, allocations: 1.19 MB / 485.4 MB, free: 4.293 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004705/0.5202, allocations: 488.4 kB / 485.9 MB, free: 3.875 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.5202, allocations: 0 / 485.9 MB, free: 3.875 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.5204, allocations: 179.9 kB / 486 MB, free: 3.766 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002522/0.5207, allocations: 32.47 kB / 486.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008361/0.5216, allocations: 444.4 kB / 486.5 MB, free: 3.332 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.5217, allocations: 0.7608 MB / 487.3 MB, free: 2.543 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.5219, allocations: 30.06 kB / 487.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.522, allocations: 83.14 kB / 487.4 MB, free: 2.48 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.522, allocations: 0 / 487.4 MB, free: 2.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.5445, allocations: 5.304 MB / 492.7 MB, free: 13.26 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/0.5448, allocations: 148.5 kB / 492.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/2.591, allocations: 0 / 492.8 MB, free: 13.07 MB / 362.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)