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.001669/0.001669, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002465/0.002464, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3666, allocations: 50.55 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003348/0.37, allocations: 2.029 MB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.3713, allocations: 0.7402 MB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.3714, allocations: 11.94 kB / 411.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.509e-05/0.3715, allocations: 23.67 kB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.3717, allocations: 39.53 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004593/0.3722, allocations: 147.7 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004536/0.3726, allocations: 359.1 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.3728, allocations: 48.8 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002792/0.3731, allocations: 163.5 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001829/0.3733, allocations: 155.4 kB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.3733, allocations: 32 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.282e-05/0.3734, allocations: 36 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.299e-05/0.3735, allocations: 79.72 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.3736, allocations: 139.3 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.374, allocations: 300.6 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.374, allocations: 3.984 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.374, allocations: 0 / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.374, allocations: 0 / 413 MB, free: 13.22 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.001525/0.3755, allocations: 0.7429 MB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3756, allocations: 8.031 kB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.603e-05/0.3757, allocations: 58.67 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003537/0.376, allocations: 56.61 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/0.3764, allocations: 264.7 kB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.3765, allocations: 28.3 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-05/0.3765, allocations: 24.38 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008059/0.3773, allocations: 358.9 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3774, allocations: 0 / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.3774, allocations: 8 kB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.3774, allocations: 4 kB / 414.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000795/0.3782, allocations: 251.7 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.3793, allocations: 0.7032 MB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009157/0.3802, allocations: 364.4 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005512/0.3808, allocations: 201.6 kB / 416.1 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.3808, allocations: 4 kB / 416.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008428/0.3816, allocations: 390.9 kB / 416.5 MB, free: 9.574 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.004e-06/0.3817, allocations: 3.938 kB / 416.5 MB, free: 9.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001899/0.3836, allocations: 0.7503 MB / 417.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.656e-05/0.3836, allocations: 75.38 kB / 417.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.3838, allocations: 195.7 kB / 417.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.531e-05/0.3839, allocations: 45.7 kB / 417.5 MB, free: 8.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.175e-05/0.384, allocations: 128.9 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.947e-05/0.3841, allocations: 110.5 kB / 417.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.3842, allocations: 98.17 kB / 417.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.3843, allocations: 342.8 kB / 418.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004344/0.3848, allocations: 161 kB / 418.3 MB, free: 7.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004745/0.3853, allocations: 241.2 kB / 418.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008569/0.3861, allocations: 439.6 kB / 419 MB, free: 6.898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.309e-06/0.3861, allocations: 4 kB / 419 MB, free: 6.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001162/0.3873, allocations: 0.5682 MB / 419.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.419e-05/0.3874, allocations: 93.09 kB / 419.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.3874, allocations: 4 kB / 419.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.3875, allocations: 8.219 kB / 419.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000385/0.3878, allocations: 75.88 kB / 419.7 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.3879, allocations: 7.938 kB / 419.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.3882, allocations: 63.64 kB / 419.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.034e-05/0.3883, allocations: 23.98 kB / 419.8 MB, free: 6.012 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.0002105/0.3885, allocations: 165.7 kB / 420 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.992e-05/0.3885, allocations: 23.72 kB / 420 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.048e-05/0.3886, allocations: 34.98 kB / 420.1 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.3886, allocations: 8 kB / 420.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.3887, allocations: 3.938 kB / 420.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.3887, allocations: 3.984 kB / 420.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003729/0.3891, allocations: 353 kB / 420.4 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3891, allocations: 0 / 420.4 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002757/0.3894, allocations: 51.89 kB / 420.5 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.217e-06/0.3894, allocations: 4 kB / 420.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.3894, allocations: 15.98 kB / 420.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3894, allocations: 0 / 420.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3894, allocations: 0 / 420.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002015/0.3914, allocations: 0.8563 MB / 421.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.056e-05/0.3915, allocations: 104.8 kB / 421.5 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.85e-05/0.3916, allocations: 16 kB / 421.5 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.392, allocations: 55.97 kB / 421.5 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.3921, allocations: 48.03 kB / 421.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.932e-05/0.3922, allocations: 35.95 kB / 421.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001892/0.3924, allocations: 136.2 kB / 421.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3924, allocations: 0 / 421.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.3927, allocations: 79.91 kB / 421.8 MB, free: 3.941 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.002381/0.3951, allocations: 1.42 MB / 423.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.3965, allocations: 0.6076 MB / 423.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3965, allocations: 448 / 423.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006115/0.3972, allocations: 267.5 kB / 424.1 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003436/0.3975, allocations: 35.97 kB / 424.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005267/0.4028, allocations: 3.247 MB / 427.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.4033, allocations: 0.7566 MB / 428.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001781/0.4035, allocations: 34.98 kB / 428.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.4037, allocations: 95.39 kB / 428.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4037, allocations: 0 / 428.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0279/0.4316, allocations: 7.02 MB / 435.3 MB, free: 6.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.119/8.55, allocations: 6.719 kB / 435.3 MB, free: 6.316 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 & /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)