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.001388/0.001388, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001704/0.001704, allocations: 202 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001235, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2837, allocations: 50.56 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003048/0.2868, allocations: 2.03 MB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.2881, allocations: 0.7285 MB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.2883, allocations: 3.938 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.725e-05/0.2883, allocations: 27.61 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.2885, allocations: 55.5 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003822/0.2889, allocations: 143.7 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003449/0.2893, allocations: 355.2 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.2894, allocations: 64.77 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.2897, allocations: 151.5 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.2899, allocations: 163.4 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.039e-05/0.2899, allocations: 32 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.966e-05/0.29, allocations: 32 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.588e-05/0.2901, allocations: 83.66 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.2902, allocations: 139.4 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.2905, allocations: 298 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2906, allocations: 0 / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.2906, allocations: 0 / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.2906, allocations: 3.938 kB / 413 MB, free: 13.21 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001433/0.292, allocations: 0.7467 MB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.2921, allocations: 11.97 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.666e-05/0.2922, allocations: 54.72 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003351/0.2925, allocations: 56.72 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.2929, allocations: 276.8 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.336e-05/0.2929, allocations: 16.38 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.517e-05/0.293, allocations: 28.36 kB / 414.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007896/0.2938, allocations: 358.9 kB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.2938, allocations: 0 / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.2938, allocations: 8 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2939, allocations: 4 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007878/0.2946, allocations: 251.7 kB / 414.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.2957, allocations: 0.7072 MB / 415.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009057/0.2966, allocations: 364.9 kB / 415.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005354/0.2971, allocations: 197.6 kB / 416.1 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.2972, allocations: 4 kB / 416.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008357/0.298, allocations: 402.8 kB / 416.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.254e-06/0.298, allocations: 0 / 416.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.00189/0.2999, allocations: 0.7465 MB / 417.2 MB, free: 8.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.3, allocations: 67.39 kB / 417.3 MB, free: 8.715 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.3002, allocations: 195.8 kB / 417.5 MB, free: 8.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.3002, allocations: 49.7 kB / 417.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.215e-05/0.3003, allocations: 133 kB / 417.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.053e-05/0.3004, allocations: 119.1 kB / 417.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.3005, allocations: 94.17 kB / 417.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.3007, allocations: 346.8 kB / 418.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.3011, allocations: 157 kB / 418.4 MB, free: 7.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/0.3015, allocations: 237.2 kB / 418.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008252/0.3024, allocations: 447.6 kB / 419 MB, free: 6.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3024, allocations: 0 / 419 MB, free: 6.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001103/0.3035, allocations: 0.5725 MB / 419.6 MB, free: 6.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.003e-05/0.3036, allocations: 85.11 kB / 419.7 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.3036, allocations: 4 kB / 419.7 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.3036, allocations: 7.984 kB / 419.7 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003621/0.304, allocations: 75.83 kB / 419.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.304, allocations: 4 kB / 419.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/0.3044, allocations: 67.73 kB / 419.8 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.3044, allocations: 23.98 kB / 419.9 MB, free: 5.992 MB / 334.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.0001937/0.3046, allocations: 173.6 kB / 420 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.574e-05/0.3047, allocations: 23.86 kB / 420.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.411e-05/0.3048, allocations: 34.98 kB / 420.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.3048, allocations: 7.938 kB / 420.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3048, allocations: 4 kB / 420.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3048, allocations: 0 / 420.1 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.3052, allocations: 353.2 kB / 420.5 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3052, allocations: 0 / 420.5 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.3055, allocations: 43.95 kB / 420.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3055, allocations: 3.984 kB / 420.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.941e-05/0.3055, allocations: 23.97 kB / 420.5 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.3055, allocations: 3.938 kB / 420.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3055, allocations: 3.984 kB / 420.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/0.3075, allocations: 0.8526 MB / 421.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.098e-05/0.3076, allocations: 100.9 kB / 421.5 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.49e-05/0.3077, allocations: 20.03 kB / 421.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00037/0.3081, allocations: 55.92 kB / 421.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.3082, allocations: 51.94 kB / 421.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.892e-05/0.3083, allocations: 27.98 kB / 421.6 MB, free: 4.129 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001115/0.3084, allocations: 136.2 kB / 421.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3084, allocations: 0 / 421.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.3088, allocations: 83.94 kB / 421.9 MB, free: 3.914 MB / 334.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.002227/0.311, allocations: 1.416 MB / 423.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.3123, allocations: 0.5999 MB / 423.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3123, allocations: 4 kB / 423.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006208/0.3129, allocations: 263.9 kB / 424.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.3133, allocations: 39.97 kB / 424.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00496/0.3183, allocations: 3.262 MB / 427.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.3187, allocations: 0.7604 MB / 428.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.3189, allocations: 39.12 kB / 428.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.319, allocations: 87.41 kB / 428.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.319, allocations: 0 / 428.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02605/0.3451, allocations: 6.807 MB / 435.1 MB, free: 6.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.192/8.537, allocations: 12.03 kB / 435.1 MB, free: 6.492 MB / 350.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)