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.000879/0.0008794, allocations: 92.67 kB / 17.35 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 200 kB / 18.28 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002293, allocations: 8.188 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08834/0.08858, allocations: 51.52 MB / 359.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.00203/0.09065, allocations: 1.734 MB / 361.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001246/0.09192, allocations: 0.7364 MB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.09208, allocations: 3.938 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.403e-05/0.09214, allocations: 19.84 kB / 361.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001655/0.09231, allocations: 39.66 kB / 361.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003865/0.0927, allocations: 127.8 kB / 362 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003232/0.09304, allocations: 323.1 kB / 362.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.09318, allocations: 56.78 kB / 362.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002715/0.09346, allocations: 131.5 kB / 362.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.09366, allocations: 151.4 kB / 362.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.302e-05/0.09371, allocations: 16 kB / 362.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.35e-05/0.09378, allocations: 20 kB / 362.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.631e-05/0.09384, allocations: 55.8 kB / 362.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.09397, allocations: 153 kB / 362.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002602/0.09424, allocations: 271.3 kB / 363.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.09425, allocations: 0 / 363.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.09426, allocations: 0 / 363.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.09427, allocations: 0 / 363.2 MB, free: 9.359 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.001322/0.0956, allocations: 0.7198 MB / 363.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.09564, allocations: 11.97 kB / 363.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.511e-05/0.09572, allocations: 62.72 kB / 363.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003167/0.09605, allocations: 68.47 kB / 364 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.09633, allocations: 260.7 kB / 364.3 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.09637, allocations: 24.36 kB / 364.3 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.108e-05/0.09644, allocations: 32.38 kB / 364.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008203/0.09726, allocations: 382.9 kB / 364.7 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.09729, allocations: 4 kB / 364.7 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.09732, allocations: 4 kB / 364.7 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.09733, allocations: 4 kB / 364.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008256/0.09816, allocations: 298 kB / 365 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009938/0.09917, allocations: 0.7303 MB / 365.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008896/0.1001, allocations: 396.9 kB / 366.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005453/0.1006, allocations: 237.5 kB / 366.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.1007, allocations: 4 kB / 366.4 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000828/0.1015, allocations: 422.9 kB / 366.8 MB, free: 5.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.873e-06/0.1015, allocations: 0 / 366.8 MB, free: 5.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001895/0.1034, allocations: 0.8323 MB / 367.6 MB, free: 4.688 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.1035, allocations: 71.38 kB / 367.7 MB, free: 4.605 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.1036, allocations: 199.7 kB / 367.9 MB, free: 4.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.746e-05/0.1037, allocations: 45.7 kB / 367.9 MB, free: 4.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.265e-05/0.1038, allocations: 132.9 kB / 368 MB, free: 4.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.408e-05/0.1039, allocations: 114.5 kB / 368.1 MB, free: 4.102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.958e-05/0.1039, allocations: 53.69 kB / 368.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.1041, allocations: 338.8 kB / 368.5 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004331/0.1045, allocations: 181 kB / 368.7 MB, free: 3.523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004561/0.105, allocations: 253.2 kB / 369 MB, free: 3.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000838/0.1058, allocations: 481.6 kB / 369.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1058, allocations: 4 kB / 369.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00109/0.1069, allocations: 0.5957 MB / 370 MB, free: 2.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.148e-05/0.107, allocations: 89.11 kB / 370.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.107, allocations: 4.219 kB / 370.1 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.107, allocations: 4 kB / 370.1 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.1074, allocations: 87.81 kB / 370.2 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.1074, allocations: 8 kB / 370.2 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.1077, allocations: 75.7 kB / 370.3 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.1078, allocations: 19.98 kB / 370.3 MB, free: 1.816 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.0001564/0.1079, allocations: 173.5 kB / 370.5 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.391e-05/0.108, allocations: 31.7 kB / 370.5 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.063e-05/0.1081, allocations: 35 kB / 370.5 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1081, allocations: 4 kB / 370.5 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1081, allocations: 3.984 kB / 370.6 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1081, allocations: 0 / 370.6 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002888/0.1084, allocations: 349.2 kB / 370.9 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1084, allocations: 0 / 370.9 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.1087, allocations: 47.95 kB / 370.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1087, allocations: 8 kB / 370.9 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.154e-05/0.1087, allocations: 11.98 kB / 371 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1087, allocations: 3.984 kB / 371 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.1087, allocations: 4 kB / 371 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.1107, allocations: 0.9461 MB / 371.9 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.384e-05/0.1108, allocations: 100.8 kB / 372 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.571e-05/0.1108, allocations: 20.03 kB / 372 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1426/0.2534, allocations: 68.88 kB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.2536, allocations: 49.39 kB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.864e-05/0.2537, allocations: 27.75 kB / 372.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001274/0.2538, allocations: 137.5 kB / 372.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2538, allocations: 0 / 372.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004098/0.2542, allocations: 80 kB / 372.4 MB, free: 19.24 MB / 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.002224/0.2565, allocations: 1.506 MB / 373.9 MB, free: 18.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.2576, allocations: 0.6489 MB / 374.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2576, allocations: 0 / 374.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006524/0.2583, allocations: 296.9 kB / 374.8 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.2586, allocations: 40.69 kB / 374.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004309/0.2629, allocations: 3.436 MB / 378.3 MB, free: 16.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.2631, allocations: 0.7577 MB / 379.1 MB, free: 16.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001347/0.2632, allocations: 35.89 kB / 379.1 MB, free: 16.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.2634, allocations: 87.84 kB / 379.2 MB, free: 16.12 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2634, allocations: 0 / 379.2 MB, free: 16.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01515/0.2786, allocations: 5.937 MB / 385.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001367/0.2787, allocations: 218.5 kB / 385.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/2.036, allocations: 0 / 385.3 MB, free: 14.91 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)