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.001717/0.001717, 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.002129/0.002129, 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.403/1.403, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 54.12 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09058/0.09201, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.00347/0.09552, allocations: 2.024 MB / 359.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.09693, allocations: 0.7402 MB / 360.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.09719, allocations: 7.938 kB / 360.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.763e-05/0.09728, allocations: 27.67 kB / 360.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.0975, allocations: 43.52 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005344/0.09804, allocations: 147.7 kB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004868/0.09854, allocations: 347.1 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.09875, allocations: 68.75 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003529/0.09911, allocations: 147.5 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002373/0.09936, allocations: 175.3 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.398e-05/0.09945, allocations: 35.94 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.09956, allocations: 32 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.503e-05/0.09965, allocations: 71.8 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001591/0.09982, allocations: 139.3 kB / 361.6 MB, free: 10 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003799/0.1002, allocations: 287.3 kB / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1002, allocations: 0 / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1002, allocations: 0 / 361.8 MB, free: 9.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.1003, allocations: 0 / 361.8 MB, free: 9.719 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.001653/0.1019, allocations: 0.7429 MB / 362.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.102, allocations: 16.02 kB / 362.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.416e-05/0.102, allocations: 50.73 kB / 362.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003931/0.1024, allocations: 52.62 kB / 362.7 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.1028, allocations: 272.6 kB / 363 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.1028, allocations: 16.38 kB / 363 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.21e-05/0.1029, allocations: 32.36 kB / 363 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008778/0.1038, allocations: 358.9 kB / 363.4 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1038, allocations: 0 / 363.4 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.945e-05/0.1039, allocations: 11.98 kB / 363.4 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.1039, allocations: 4 kB / 363.4 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008282/0.1047, allocations: 247.8 kB / 363.6 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.1058, allocations: 0.7109 MB / 364.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009491/0.1067, allocations: 364.8 kB / 364.7 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005586/0.1073, allocations: 204.5 kB / 364.9 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.167e-05/0.1074, allocations: 7.984 kB / 364.9 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009121/0.1083, allocations: 402.6 kB / 365.3 MB, free: 6.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.605e-06/0.1083, allocations: 0 / 365.3 MB, free: 6.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001962/0.1103, allocations: 0.7543 MB / 366 MB, free: 5.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.1103, allocations: 71.39 kB / 366.1 MB, free: 5.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.1105, allocations: 187.8 kB / 366.3 MB, free: 5.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.18e-05/0.1106, allocations: 45.7 kB / 366.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.152e-05/0.1107, allocations: 132.9 kB / 366.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.193e-05/0.1108, allocations: 114.6 kB / 366.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.1109, allocations: 90.23 kB / 366.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.111, allocations: 346.8 kB / 367 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004424/0.1115, allocations: 157 kB / 367.2 MB, free: 4.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004749/0.112, allocations: 233.2 kB / 367.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008413/0.1128, allocations: 451.5 kB / 367.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.1128, allocations: 4 kB / 367.8 MB, free: 3.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001139/0.114, allocations: 0.5646 MB / 368.4 MB, free: 2.789 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.661e-05/0.1141, allocations: 93.09 kB / 368.5 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.1141, allocations: 4 kB / 368.5 MB, free: 2.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.1141, allocations: 4 kB / 368.5 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003734/0.1145, allocations: 75.83 kB / 368.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.1145, allocations: 7.984 kB / 368.6 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.1149, allocations: 63.61 kB / 368.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.1149, allocations: 20 kB / 368.7 MB, free: 2.508 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.0001908/0.1151, allocations: 177.6 kB / 368.8 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.1152, allocations: 23.72 kB / 368.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.842e-05/0.1153, allocations: 34.98 kB / 368.9 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.1153, allocations: 8 kB / 368.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1153, allocations: 0 / 368.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1153, allocations: 0 / 368.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003302/0.1156, allocations: 345.2 kB / 369.2 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1156, allocations: 0 / 369.2 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002826/0.1159, allocations: 51.89 kB / 369.3 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.1159, allocations: 0 / 369.3 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.432e-05/0.116, allocations: 23.97 kB / 369.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.116, allocations: 0 / 369.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.116, allocations: 0 / 369.3 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.118, allocations: 0.8486 MB / 370.2 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.304e-05/0.1181, allocations: 108.6 kB / 370.3 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.142e-05/0.1182, allocations: 20.03 kB / 370.3 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003685/0.1186, allocations: 55.92 kB / 370.3 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.1187, allocations: 47.94 kB / 370.4 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.928e-05/0.1188, allocations: 27.98 kB / 370.4 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001032/0.1189, allocations: 140.2 kB / 370.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1189, allocations: 3.938 kB / 370.6 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003465/0.1192, allocations: 79.98 kB / 370.6 MB, free: 452 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.1503/0.2695, allocations: 1.402 MB / 372 MB, free: 19.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.271, allocations: 0.6243 MB / 372.7 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.271, allocations: 0.5312 kB / 372.7 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006753/0.2717, allocations: 259.7 kB / 372.9 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.2721, allocations: 43.06 kB / 373 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004972/0.2771, allocations: 3.251 MB / 376.2 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.2773, allocations: 0.7584 MB / 377 MB, free: 17.24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001774/0.2775, allocations: 33.39 kB / 377 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.2777, allocations: 89.36 kB / 377.1 MB, free: 17.17 MB / 302.1 MB Notification: Performance of SimCode: time 1.443e-06/0.2777, allocations: 1.375 kB / 377.1 MB, free: 17.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02609/0.3038, allocations: 6.724 MB / 383.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.751/8.055, allocations: 10.95 kB / 383.8 MB, free: 15.88 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateContinuousSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)