Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.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.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001107/0.001107, allocations: 115.4 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001113, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.4 MB, free: 9.082 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 60.12 kB / 306.5 MB, free: 0.6367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08757, allocations: 50.54 MB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002827/0.09043, allocations: 1.781 MB / 358.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.0915, allocations: 0.6545 MB / 359.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.75e-05/0.09161, allocations: 0 / 359.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.09175, allocations: 7.875 kB / 359.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.792e-05/0.09182, allocations: 23.84 kB / 359.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.09219, allocations: 75.86 kB / 359.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002297/0.09243, allocations: 151.6 kB / 359.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.09259, allocations: 33.41 kB / 359.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.09282, allocations: 67.83 kB / 359.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.09296, allocations: 71.67 kB / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.826e-05/0.09301, allocations: 12 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.922e-05/0.0931, allocations: 19.94 kB / 360 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.356e-05/0.09315, allocations: 35.91 kB / 360 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.091e-05/0.09323, allocations: 63.72 kB / 360.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.09347, allocations: 139.8 kB / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.09348, allocations: 0 / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.09349, allocations: 0 / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.09351, allocations: 3.938 kB / 360.2 MB, free: 10.95 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0008089/0.09433, allocations: 498.3 kB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.09438, allocations: 8.031 kB / 360.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.052e-05/0.09445, allocations: 46.73 kB / 360.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002658/0.09472, allocations: 28.81 kB / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000257/0.09499, allocations: 213.6 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.09503, allocations: 4.375 kB / 361 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.09508, allocations: 19.92 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004502/0.09554, allocations: 169.5 kB / 361.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.09556, allocations: 0 / 361.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.09558, allocations: 0 / 361.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.0956, allocations: 4 kB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003305/0.09593, allocations: 99.91 kB / 361.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007404/0.09668, allocations: 428.3 kB / 361.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005221/0.09722, allocations: 190.4 kB / 361.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.09748, allocations: 92.78 kB / 362 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.0975, allocations: 4 kB / 362 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004507/0.09796, allocations: 171.2 kB / 362.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.09797, allocations: 0 / 362.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009191/0.0989, allocations: 339.8 kB / 362.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.09896, allocations: 67.34 kB / 362.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.09908, allocations: 151.7 kB / 362.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.09911, allocations: 33.7 kB / 362.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/0.09917, allocations: 104.5 kB / 362.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.217e-05/0.09921, allocations: 43.44 kB / 362.9 MB, free: 8.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.004e-05/0.09928, allocations: 45.64 kB / 362.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.675e-05/0.09938, allocations: 326.8 kB / 363.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.0995, allocations: 51.97 kB / 363.3 MB, free: 7.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.09965, allocations: 114.2 kB / 363.4 MB, free: 7.496 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.09991, allocations: 172.4 kB / 363.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.09992, allocations: 0 / 363.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000348/0.1003, allocations: 201.2 kB / 363.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.1003, allocations: 8 kB / 363.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1003, allocations: 4.281 kB / 363.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.1003, allocations: 7.938 kB / 363.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.1005, allocations: 43.84 kB / 363.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.1005, allocations: 4 kB / 363.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.312e-05/0.1006, allocations: 23.78 kB / 363.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.1006, allocations: 4 kB / 363.9 MB, free: 7 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001053/0.1008, allocations: 143.5 kB / 364 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.1008, allocations: 7.906 kB / 364 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006511/0.1015, allocations: 282.2 kB / 364.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1015, allocations: 3.984 kB / 364.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1015, allocations: 0 / 364.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1015, allocations: 0 / 364.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008613/0.1024, allocations: 0.5829 MB / 364.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1024, allocations: 0 / 364.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.982e-05/0.1025, allocations: 19.98 kB / 364.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.1025, allocations: 4 kB / 364.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.1025, allocations: 7.984 kB / 364.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1025, allocations: 0 / 364.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1025, allocations: 0 / 364.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009075/0.1034, allocations: 478 kB / 365.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.064e-05/0.1035, allocations: 85.05 kB / 365.4 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.1035, allocations: 8 kB / 365.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.1037, allocations: 36.02 kB / 365.5 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.1038, allocations: 11.92 kB / 365.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.1038, allocations: 4 kB / 365.5 MB, free: 5.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.56e-05/0.1039, allocations: 110.6 kB / 365.6 MB, free: 5.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1039, allocations: 0 / 365.6 MB, free: 5.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002771/0.1041, allocations: 39.84 kB / 365.7 MB, free: 5.102 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,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: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001044/0.1052, allocations: 0.978 MB / 366.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004079/0.1056, allocations: 166.9 kB / 366.8 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1056, allocations: 0 / 366.8 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002337/0.1059, allocations: 100.4 kB / 366.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.1061, allocations: 8 kB / 366.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.1082, allocations: 1.97 MB / 368.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.1085, allocations: 0.7084 MB / 369.6 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.027e-05/0.1085, allocations: 13.08 kB / 369.6 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.1086, allocations: 39.42 kB / 369.6 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1086, allocations: 0 / 369.6 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5707/0.6793, allocations: 2.584 MB / 372.2 MB, free: 20.23 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/0.6795, allocations: 199.3 kB / 372.4 MB, free: 19.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.506/4.185, allocations: 0 / 372.4 MB, free: 19.97 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)