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.001076/0.001076, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.00111, allocations: 64.38 kB / 306.3 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1032, allocations: 50.53 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003997/0.1073, allocations: 2.089 MB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.1088, allocations: 0.7519 MB / 359.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001887/0.109, allocations: 7.938 kB / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.231e-05/0.1091, allocations: 19.78 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.1093, allocations: 35.72 kB / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004704/0.1098, allocations: 131.8 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004673/0.1103, allocations: 319.2 kB / 360.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.1105, allocations: 56.78 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000398/0.1109, allocations: 135.5 kB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.1112, allocations: 155.4 kB / 360.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.544e-05/0.1113, allocations: 20 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.937e-05/0.1114, allocations: 27.92 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.534e-05/0.1115, allocations: 55.8 kB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001749/0.1116, allocations: 131.3 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.112, allocations: 287.3 kB / 361.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1121, allocations: 0 / 361.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1121, allocations: 0 / 361.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.1121, allocations: 0 / 361.1 MB, free: 9.992 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001713/0.1138, allocations: 0.739 MB / 361.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.1139, allocations: 8.031 kB / 361.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.438e-05/0.114, allocations: 58.72 kB / 361.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003895/0.1144, allocations: 52.62 kB / 361.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.1147, allocations: 268.6 kB / 362.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/0.1147, allocations: 28.36 kB / 362.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.473e-05/0.1148, allocations: 32.36 kB / 362.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008214/0.1156, allocations: 350.9 kB / 362.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.1156, allocations: 0 / 362.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.1157, allocations: 8 kB / 362.6 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.1157, allocations: 8 kB / 362.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007551/0.1164, allocations: 247.7 kB / 362.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.1176, allocations: 0.7109 MB / 363.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009066/0.1185, allocations: 368.8 kB / 363.9 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005291/0.1191, allocations: 197.6 kB / 364.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.1191, allocations: 8 kB / 364.1 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008837/0.12, allocations: 386.6 kB / 364.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 4.027e-06/0.12, allocations: 0 / 364.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.001782/0.1218, allocations: 0.7543 MB / 365.2 MB, free: 5.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.1219, allocations: 75.38 kB / 365.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.1221, allocations: 199.7 kB / 365.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.031e-05/0.1221, allocations: 45.7 kB / 365.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.024e-05/0.1222, allocations: 132.9 kB / 365.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.649e-05/0.1223, allocations: 106.6 kB / 365.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.1225, allocations: 94.17 kB / 365.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1226, allocations: 342.8 kB / 366.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004112/0.123, allocations: 165 kB / 366.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004669/0.1235, allocations: 233.2 kB / 366.6 MB, free: 4.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009496/0.1244, allocations: 446.2 kB / 367 MB, free: 3.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.1245, allocations: 0 / 367 MB, free: 3.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001257/0.1257, allocations: 0.5713 MB / 367.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.019e-05/0.1258, allocations: 89.11 kB / 367.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.1258, allocations: 4 kB / 367.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/0.1259, allocations: 7.984 kB / 367.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000352/0.1262, allocations: 75.83 kB / 367.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.1263, allocations: 8.219 kB / 367.8 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000376/0.1266, allocations: 63.61 kB / 367.9 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-05/0.1267, allocations: 23.98 kB / 367.9 MB, free: 2.789 MB / 302.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.0002552/0.127, allocations: 173.6 kB / 368.1 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.9e-05/0.1271, allocations: 23.72 kB / 368.1 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.1272, allocations: 38.98 kB / 368.1 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.1272, allocations: 4 kB / 368.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.1272, allocations: 0 / 368.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1272, allocations: 4 kB / 368.1 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003959/0.1276, allocations: 345.2 kB / 368.5 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.1276, allocations: 0 / 368.5 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002771/0.1279, allocations: 43.95 kB / 368.5 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.1279, allocations: 3.938 kB / 368.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.526e-05/0.128, allocations: 15.97 kB / 368.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.128, allocations: 4 kB / 368.5 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.128, allocations: 4 kB / 368.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.1299, allocations: 0.8486 MB / 369.4 MB, free: 1.219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.018e-05/0.13, allocations: 104.7 kB / 369.5 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.593e-05/0.1301, allocations: 20.03 kB / 369.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003325/0.1304, allocations: 63.86 kB / 369.6 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.1306, allocations: 43.94 kB / 369.6 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-05/0.1307, allocations: 31.97 kB / 369.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.1308, allocations: 132.2 kB / 369.8 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1308, allocations: 4 kB / 369.8 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.1311, allocations: 76 kB / 369.8 MB, free: 0.7344 MB / 302.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.1969/0.328, allocations: 1.42 MB / 371.3 MB, free: 19.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.3295, allocations: 0.6058 MB / 371.9 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.3295, allocations: 3.562 kB / 371.9 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007294/0.3303, allocations: 268.8 kB / 372.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004461/0.3307, allocations: 38 kB / 372.2 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005619/0.3364, allocations: 3.327 MB / 375.5 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.3366, allocations: 0.7558 MB / 376.3 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000173/0.3368, allocations: 29.25 kB / 376.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001524/0.3369, allocations: 91.89 kB / 376.4 MB, free: 17 MB / 302.1 MB Notification: Performance of SimCode: time 2.374e-06/0.337, allocations: 0 / 376.4 MB, free: 17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.3548, allocations: 6.049 MB / 382.4 MB, free: 16.22 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000137/0.355, allocations: 214.1 kB / 382.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.929/2.284, allocations: 3.375 kB / 382.6 MB, free: 15.96 MB / 302.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)