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.001603/0.001603, allocations: 122.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001647/0.001647, allocations: 197.2 kB / 18.74 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 67.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3088, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00326/0.3121, allocations: 1.733 MB / 410.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.3135, allocations: 0.6583 MB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.554e-05/0.3136, allocations: 4 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.3138, allocations: 19.8 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.136e-05/0.3139, allocations: 11.81 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.3142, allocations: 91.75 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.3145, allocations: 155.5 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.3146, allocations: 33.44 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.3148, allocations: 59.83 kB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.3149, allocations: 71.67 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.3149, allocations: 12 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.656e-05/0.315, allocations: 20 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.395e-05/0.3151, allocations: 35.89 kB / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.565e-05/0.3151, allocations: 63.72 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002244/0.3154, allocations: 138.6 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3154, allocations: 3.938 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3154, allocations: 4 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.3154, allocations: 0 / 411.9 MB, free: 14.42 MB / 334.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.000774/0.3162, allocations: 0.4904 MB / 412.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3162, allocations: 8.031 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.358e-05/0.3163, allocations: 42.73 kB / 412.4 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.3166, allocations: 32.81 kB / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/0.3169, allocations: 215.7 kB / 412.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.117e-05/0.317, allocations: 12.38 kB / 412.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.352e-05/0.317, allocations: 15.92 kB / 412.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004384/0.3175, allocations: 165.5 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3175, allocations: 0 / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.3175, allocations: 4 kB / 412.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.3175, allocations: 0 / 412.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003344/0.3178, allocations: 99.91 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007023/0.3186, allocations: 424.4 kB / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005397/0.3191, allocations: 194.4 kB / 413.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.3194, allocations: 92.78 kB / 413.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.3194, allocations: 4 kB / 413.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004305/0.3199, allocations: 175.2 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.024e-06/0.3199, allocations: 4 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009694/0.3208, allocations: 341.3 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.3209, allocations: 59.34 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.3211, allocations: 149.8 kB / 414.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.3211, allocations: 33.7 kB / 414.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.816e-05/0.3212, allocations: 108.4 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/0.3212, allocations: 39.69 kB / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.285e-05/0.3213, allocations: 45.7 kB / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.3215, allocations: 326.8 kB / 414.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.3216, allocations: 47.97 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.3218, allocations: 120.4 kB / 415 MB, free: 10.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.3221, allocations: 172.4 kB / 415.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3221, allocations: 0 / 415.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003701/0.3225, allocations: 205.3 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3225, allocations: 8.281 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3225, allocations: 8 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.3225, allocations: 3.938 kB / 415.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.3227, allocations: 39.91 kB / 415.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.3227, allocations: 4 kB / 415.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.453e-05/0.3228, allocations: 19.89 kB / 415.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.3228, allocations: 7.984 kB / 415.5 MB, free: 10.46 MB / 334.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.0001266/0.323, allocations: 135.5 kB / 415.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.68e-05/0.323, allocations: 15.84 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006853/0.3237, allocations: 285.4 kB / 415.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3237, allocations: 3.984 kB / 415.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3237, allocations: 0 / 415.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.3237, allocations: 4 kB / 415.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009767/0.3247, allocations: 0.5724 MB / 416.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.3247, allocations: 0 / 416.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.3248, allocations: 19.92 kB / 416.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3249, allocations: 4 kB / 416.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.3249, allocations: 7.984 kB / 416.5 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3249, allocations: 0 / 416.5 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3249, allocations: 0 / 416.5 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009813/0.3259, allocations: 471.1 kB / 417 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.765e-05/0.326, allocations: 89.05 kB / 417.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.326, allocations: 8 kB / 417.1 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.3262, allocations: 36.02 kB / 417.1 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.3263, allocations: 7.984 kB / 417.1 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.3263, allocations: 8 kB / 417.1 MB, free: 8.711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.586e-05/0.3264, allocations: 112.3 kB / 417.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3264, allocations: 3.938 kB / 417.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002841/0.3267, allocations: 31.94 kB / 417.3 MB, free: 8.566 MB / 334.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.001214/0.3279, allocations: 0.9804 MB / 418.3 MB, free: 7.566 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004722/0.3284, allocations: 163.8 kB / 418.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3284, allocations: 0 / 418.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002403/0.3286, allocations: 96.42 kB / 418.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.3289, allocations: 8 kB / 418.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.3315, allocations: 1.96 MB / 420.5 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/0.3319, allocations: 0.7086 MB / 421.2 MB, free: 4.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.3e-05/0.3319, allocations: 13.08 kB / 421.2 MB, free: 4.461 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.381e-05/0.332, allocations: 35.42 kB / 421.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.332, allocations: 4 kB / 421.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03254/0.3646, allocations: 2.76 MB / 424 MB, free: 1.742 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.226/8.591, allocations: 15.16 kB / 424 MB, free: 1.73 MB / 334.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1)