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.001231/0.001231, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2475, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003443/0.2509, allocations: 2.029 MB / 410.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.2526, allocations: 0.7324 MB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.2528, allocations: 7.875 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.514e-05/0.253, allocations: 31.66 kB / 411.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.2532, allocations: 51.52 kB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.2537, allocations: 143.7 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004389/0.2542, allocations: 351.1 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.2544, allocations: 64.77 kB / 412.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002782/0.2546, allocations: 147.5 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.2548, allocations: 167.4 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.15e-05/0.2549, allocations: 36 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.332e-05/0.255, allocations: 36 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.887e-05/0.2551, allocations: 71.73 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.2552, allocations: 143.3 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003099/0.2555, allocations: 300.7 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2555, allocations: 0 / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2556, allocations: 0 / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.2556, allocations: 0 / 413 MB, free: 13.25 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.001385/0.257, allocations: 0.739 MB / 413.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.257, allocations: 8.031 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.06e-05/0.2571, allocations: 70.59 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003184/0.2574, allocations: 52.62 kB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.2578, allocations: 268.7 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.428e-05/0.2578, allocations: 20.38 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.2579, allocations: 28.36 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007565/0.2586, allocations: 354.9 kB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2587, allocations: 0 / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.2587, allocations: 11.98 kB / 414.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.2587, allocations: 4 kB / 414.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000727/0.2594, allocations: 247.7 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.2605, allocations: 0.7032 MB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008598/0.2613, allocations: 360.9 kB / 415.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005049/0.2618, allocations: 205.5 kB / 416.1 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.231e-05/0.2619, allocations: 11.98 kB / 416.1 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008078/0.2627, allocations: 394.9 kB / 416.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.715e-06/0.2627, allocations: 0 / 416.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.001763/0.2645, allocations: 0.7464 MB / 417.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/0.2646, allocations: 75.39 kB / 417.3 MB, free: 8.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.2647, allocations: 195.7 kB / 417.5 MB, free: 8.551 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.2648, allocations: 45.7 kB / 417.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.042e-05/0.2649, allocations: 132.9 kB / 417.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.23e-05/0.265, allocations: 110.5 kB / 417.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.2651, allocations: 94.23 kB / 417.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2652, allocations: 342.8 kB / 418.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/0.2656, allocations: 161 kB / 418.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004229/0.2661, allocations: 241.2 kB / 418.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00074/0.2668, allocations: 443.6 kB / 419 MB, free: 6.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2668, allocations: 0 / 419 MB, free: 6.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001042/0.2679, allocations: 0.5643 MB / 419.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.352e-05/0.268, allocations: 93.09 kB / 419.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.268, allocations: 4 kB / 419.7 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.268, allocations: 4 kB / 419.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003523/0.2684, allocations: 80.03 kB / 419.8 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.2684, allocations: 8 kB / 419.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003243/0.2687, allocations: 63.64 kB / 419.8 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.968e-05/0.2688, allocations: 20 kB / 419.8 MB, free: 6.043 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.0001696/0.2689, allocations: 169.6 kB / 420 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.383e-05/0.269, allocations: 23.72 kB / 420 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.897e-05/0.2691, allocations: 38.98 kB / 420.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2691, allocations: 4 kB / 420.1 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.2691, allocations: 7.938 kB / 420.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2691, allocations: 0 / 420.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003144/0.2694, allocations: 349 kB / 420.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.2695, allocations: 0 / 420.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.2697, allocations: 47.95 kB / 420.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2697, allocations: 0 / 420.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/0.2698, allocations: 19.97 kB / 420.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2698, allocations: 0 / 420.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.2698, allocations: 4 kB / 420.5 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.2716, allocations: 0.8563 MB / 421.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.657e-05/0.2717, allocations: 100.8 kB / 421.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.614e-05/0.2718, allocations: 20.03 kB / 421.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003291/0.2721, allocations: 59.92 kB / 421.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.2723, allocations: 47.94 kB / 421.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.394e-05/0.2723, allocations: 35.97 kB / 421.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001067/0.2724, allocations: 132.2 kB / 421.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.2725, allocations: 0 / 421.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003541/0.2728, allocations: 83.83 kB / 421.8 MB, free: 3.969 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.002104/0.2749, allocations: 1.416 MB / 423.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.2761, allocations: 0.6038 MB / 423.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.145e-06/0.2761, allocations: 0 / 423.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005771/0.2767, allocations: 271.9 kB / 424.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.277, allocations: 38.2 kB / 424.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004737/0.2818, allocations: 3.243 MB / 427.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.2821, allocations: 0.7605 MB / 428.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001574/0.2823, allocations: 39.08 kB / 428.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.2825, allocations: 91.41 kB / 428.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2825, allocations: 0 / 428.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02743/0.3099, allocations: 6.815 MB / 435.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.991/8.301, allocations: 9.859 kB / 435.1 MB, free: 6.551 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)