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.00145/0.00145, allocations: 100.7 kB / 17.32 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001596/0.001596, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 56.78 kB / 306.5 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09254/0.09367, allocations: 50.54 MB / 357.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003505/0.09721, allocations: 2.077 MB / 359.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.09868, allocations: 0.7402 MB / 359.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/0.09891, allocations: 7.938 kB / 359.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.523e-05/0.099, allocations: 15.86 kB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001791/0.09922, allocations: 27.72 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004462/0.09968, allocations: 131.8 kB / 360.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003996/0.1001, allocations: 351.2 kB / 360.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.1002, allocations: 48.8 kB / 360.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002949/0.1005, allocations: 171.5 kB / 360.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.1008, allocations: 159.3 kB / 360.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.828e-05/0.1008, allocations: 32 kB / 360.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.015e-05/0.1009, allocations: 39.98 kB / 360.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.344e-05/0.101, allocations: 71.8 kB / 360.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.1011, allocations: 143.3 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003218/0.1015, allocations: 287.3 kB / 361.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1015, allocations: 0 / 361.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1015, allocations: 0 / 361.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.1015, allocations: 0 / 361.4 MB, free: 9.926 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.001598/0.1031, allocations: 0.7429 MB / 362.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.1031, allocations: 8.031 kB / 362.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.727e-05/0.1032, allocations: 54.73 kB / 362.2 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003376/0.1036, allocations: 56.61 kB / 362.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.1039, allocations: 264.6 kB / 362.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.1039, allocations: 24.36 kB / 362.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.306e-05/0.104, allocations: 28.38 kB / 362.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008147/0.1048, allocations: 362.8 kB / 362.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1048, allocations: 0 / 362.9 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.1049, allocations: 11.98 kB / 362.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.1049, allocations: 4 kB / 362.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007669/0.1057, allocations: 247.8 kB / 363.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.1067, allocations: 0.707 MB / 363.8 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008783/0.1076, allocations: 369 kB / 364.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005186/0.1081, allocations: 208.2 kB / 364.4 MB, free: 6.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.1082, allocations: 4 kB / 364.4 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008558/0.109, allocations: 398.6 kB / 364.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.214e-06/0.1091, allocations: 0 / 364.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001882/0.1109, allocations: 0.7543 MB / 365.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.111, allocations: 75.38 kB / 365.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.1112, allocations: 187.8 kB / 365.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.758e-05/0.1113, allocations: 49.69 kB / 365.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.1113, allocations: 132.9 kB / 366 MB, free: 5.035 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.823e-05/0.1114, allocations: 106.6 kB / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.1116, allocations: 94.23 kB / 366.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1117, allocations: 338.8 kB / 366.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.1122, allocations: 161 kB / 366.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005873/0.1128, allocations: 237.2 kB / 366.9 MB, free: 4.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008119/0.1136, allocations: 445.5 kB / 367.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.1136, allocations: 4 kB / 367.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001145/0.1148, allocations: 0.5685 MB / 367.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.328e-05/0.1148, allocations: 93.09 kB / 368 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.1149, allocations: 4 kB / 368 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.1149, allocations: 4 kB / 368 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003708/0.1153, allocations: 79.81 kB / 368.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.1153, allocations: 7.984 kB / 368.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.1156, allocations: 63.61 kB / 368.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.91e-05/0.1157, allocations: 24 kB / 368.2 MB, free: 2.715 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.0001759/0.1159, allocations: 169.6 kB / 368.3 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.681e-05/0.1159, allocations: 23.72 kB / 368.4 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.1161, allocations: 34.98 kB / 368.4 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.1161, allocations: 8 kB / 368.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.1161, allocations: 0 / 368.4 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.1161, allocations: 3.984 kB / 368.4 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000501/0.1166, allocations: 345.2 kB / 368.7 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.1166, allocations: 4 kB / 368.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004269/0.1171, allocations: 51.89 kB / 368.8 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.1171, allocations: 3.938 kB / 368.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.975e-05/0.1172, allocations: 15.98 kB / 368.8 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1172, allocations: 0 / 368.8 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1172, allocations: 0 / 368.8 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.1194, allocations: 0.8525 MB / 369.7 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.582e-05/0.1195, allocations: 112.6 kB / 369.8 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/0.1196, allocations: 16 kB / 369.8 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003562/0.12, allocations: 55.92 kB / 369.9 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.1201, allocations: 48.03 kB / 369.9 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-05/0.1202, allocations: 35.97 kB / 369.9 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001043/0.1203, allocations: 140.2 kB / 370.1 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1203, allocations: 0 / 370.1 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003402/0.1206, allocations: 72 kB / 370.1 MB, free: 0.6523 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.1614/0.2821, allocations: 1.412 MB / 371.6 MB, free: 19.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.2834, allocations: 0.6246 MB / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2834, allocations: 0 / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006005/0.284, allocations: 264.7 kB / 372.4 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.0003371/0.2843, allocations: 38.05 kB / 372.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.2887, allocations: 3.333 MB / 375.8 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.2888, allocations: 0.755 MB / 376.6 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000147/0.289, allocations: 38.56 kB / 376.6 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.2891, allocations: 90.31 kB / 376.7 MB, free: 17.13 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2891, allocations: 0 / 376.7 MB, free: 17.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/0.4194, allocations: 6.33 MB / 383 MB, free: 16.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.01322/0.4327, allocations: 209.2 kB / 383.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.525/3.957, allocations: 10.55 kB / 383.2 MB, free: 15.9 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)