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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001584/0.001583, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002219/0.002219, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.48 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08451/0.08579, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003307/0.08913, allocations: 2.016 MB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.09056, allocations: 0.7519 MB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.09075, allocations: 3.938 kB / 360.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.316e-05/0.09083, allocations: 23.67 kB / 360.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.09105, allocations: 47.52 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004633/0.09152, allocations: 143.7 kB / 360.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004276/0.09196, allocations: 355.2 kB / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.09213, allocations: 56.8 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003207/0.09246, allocations: 163.4 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/0.09269, allocations: 155.4 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.709e-05/0.09276, allocations: 35.94 kB / 361.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.476e-05/0.09285, allocations: 32 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.978e-05/0.09293, allocations: 79.72 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.09308, allocations: 139.3 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003563/0.09345, allocations: 291.3 kB / 361.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.09346, allocations: 0 / 361.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09347, allocations: 4 kB / 361.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.09349, allocations: 4 kB / 361.8 MB, free: 9.723 MB / 302.1 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.001612/0.09511, allocations: 0.739 MB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.09517, allocations: 12.03 kB / 362.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.851e-05/0.09525, allocations: 50.72 kB / 362.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003567/0.09562, allocations: 52.62 kB / 362.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/0.09597, allocations: 272.6 kB / 363 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.208e-05/0.09602, allocations: 20.36 kB / 363 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.476e-05/0.09609, allocations: 24.38 kB / 363 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008411/0.09694, allocations: 358.9 kB / 363.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.09697, allocations: 7.938 kB / 363.4 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.56e-05/0.09701, allocations: 4 kB / 363.4 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.09703, allocations: 8 kB / 363.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008288/0.09786, allocations: 247.8 kB / 363.6 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.09897, allocations: 0.7226 MB / 364.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008878/0.09987, allocations: 364.8 kB / 364.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005271/0.1004, allocations: 200.4 kB / 364.9 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.1005, allocations: 4 kB / 364.9 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009136/0.1014, allocations: 394.6 kB / 365.3 MB, free: 6.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.435e-06/0.1014, allocations: 3.938 kB / 365.3 MB, free: 6.066 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001924/0.1033, allocations: 0.7505 MB / 366 MB, free: 5.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.1034, allocations: 75.31 kB / 366.1 MB, free: 5.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.1036, allocations: 191.8 kB / 366.3 MB, free: 5.027 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.196e-05/0.1036, allocations: 45.7 kB / 366.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.229e-05/0.1037, allocations: 132.9 kB / 366.5 MB, free: 4.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.248e-05/0.1038, allocations: 110.6 kB / 366.6 MB, free: 4.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.104, allocations: 90.23 kB / 366.7 MB, free: 4.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1041, allocations: 338.8 kB / 367 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004306/0.1045, allocations: 157 kB / 367.2 MB, free: 4.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004622/0.105, allocations: 237.2 kB / 367.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009493/0.106, allocations: 449.5 kB / 367.8 MB, free: 3.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.106, allocations: 0 / 367.8 MB, free: 3.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001174/0.1072, allocations: 0.5763 MB / 368.4 MB, free: 2.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.571e-05/0.1073, allocations: 89.09 kB / 368.5 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.1073, allocations: 0 / 368.5 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.719e-05/0.1073, allocations: 4 kB / 368.5 MB, free: 2.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/0.1077, allocations: 79.81 kB / 368.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.1077, allocations: 8 kB / 368.6 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003617/0.1081, allocations: 67.61 kB / 368.6 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.03e-05/0.1081, allocations: 19.98 kB / 368.7 MB, free: 2.52 MB / 302.1 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 (signalExtrema3.t_min,$PRE.signalExtrema3.t_min,signalExtrema3.t_max,$PRE.signalExtrema3.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,$whenCondition5,signalExtrema2.y_max,$PRE.signalExtrema2.y_max,signalExtrema2.y_min,$PRE.signalExtrema2.y_min,signalExtrema1.y_max,$PRE.signalExtrema1.y_max,signalExtrema1.y_min,$PRE.signalExtrema1.y_min,sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,signalExtrema3.y_max,$PRE.signalExtrema3.y_max,signalExtrema3.y_min,$PRE.signalExtrema3.y_min,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002285/0.1084, allocations: 169.6 kB / 368.8 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.319e-05/0.1085, allocations: 27.72 kB / 368.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.4e-05/0.1086, allocations: 34.98 kB / 368.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1086, allocations: 4 kB / 368.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1086, allocations: 0 / 368.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1086, allocations: 7.984 kB / 368.9 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003441/0.1089, allocations: 349.2 kB / 369.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.109, allocations: 0 / 369.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002734/0.1092, allocations: 43.89 kB / 369.3 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.1092, allocations: 4 kB / 369.3 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/0.1093, allocations: 15.98 kB / 369.3 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1093, allocations: 4 kB / 369.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1093, allocations: 0 / 369.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.1112, allocations: 0.8564 MB / 370.2 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.754e-05/0.1113, allocations: 104.7 kB / 370.3 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.042e-05/0.1114, allocations: 15.94 kB / 370.3 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003539/0.1118, allocations: 63.97 kB / 370.3 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.1119, allocations: 47.94 kB / 370.4 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/0.112, allocations: 27.97 kB / 370.4 MB, free: 0.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001312/0.1121, allocations: 136.2 kB / 370.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1121, allocations: 0 / 370.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003731/0.1125, allocations: 80 kB / 370.6 MB, free: 468 kB / 302.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1619/0.2744, allocations: 1.41 MB / 372 MB, free: 19.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.2761, allocations: 0.625 MB / 372.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2761, allocations: 0.75 kB / 372.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007065/0.2768, allocations: 265.1 kB / 372.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.2772, allocations: 43.12 kB / 373 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006053/0.2833, allocations: 3.251 MB / 376.2 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.2837, allocations: 0.7517 MB / 377 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002008/0.2839, allocations: 34.94 kB / 377 MB, free: 17.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.2841, allocations: 89.45 kB / 377.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of SimCode: time 1.222e-06/0.2841, allocations: 0 / 377.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5793/0.8634, allocations: 6.727 MB / 383.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.461/9.324, allocations: 6.078 kB / 383.8 MB, free: 15.86 MB / 302.1 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/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)