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: translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008595/0.0008595, allocations: 98.11 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001123/0.001123, allocations: 206.1 kB / 18.94 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.7 MB / 247.5 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002541, allocations: 8 kB / 308.4 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1062, allocations: 51.53 MB / 359.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.002177/0.1084, allocations: 1.719 MB / 361.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.1097, allocations: 0.7404 MB / 362.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.1099, allocations: 7.875 kB / 362.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.53e-05/0.11, allocations: 15.8 kB / 362.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.1101, allocations: 39.69 kB / 362.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004199/0.1106, allocations: 131.8 kB / 362.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003482/0.1109, allocations: 319.2 kB / 362.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.1111, allocations: 60.77 kB / 362.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002834/0.1114, allocations: 131.5 kB / 363.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.1116, allocations: 151.4 kB / 363.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.761e-05/0.1116, allocations: 16 kB / 363.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.892e-05/0.1117, allocations: 19.98 kB / 363.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.15e-05/0.1118, allocations: 63.67 kB / 363.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.1119, allocations: 149 kB / 363.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.1121, allocations: 191.8 kB / 363.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1122, allocations: 0 / 363.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1122, allocations: 4 kB / 363.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1122, allocations: 0 / 363.6 MB, free: 9.566 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.00149/0.1137, allocations: 0.7159 MB / 364.4 MB, free: 8.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.1137, allocations: 12.03 kB / 364.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003605/0.1141, allocations: 68.53 kB / 364.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/0.1144, allocations: 268.7 kB / 364.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.708e-05/0.1145, allocations: 20.38 kB / 364.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.488e-05/0.1145, allocations: 28.36 kB / 364.7 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000864/0.1154, allocations: 379.1 kB / 365.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1154, allocations: 4 kB / 365.1 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.1155, allocations: 8 kB / 365.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.1155, allocations: 4 kB / 365.1 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008479/0.1163, allocations: 299.7 kB / 365.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.1174, allocations: 0.7225 MB / 366.1 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000913/0.1183, allocations: 400.9 kB / 366.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000564/0.1189, allocations: 229.6 kB / 366.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.119, allocations: 7.938 kB / 366.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000892/0.1199, allocations: 426.8 kB / 367.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.164e-06/0.1199, allocations: 4 kB / 367.2 MB, free: 5.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.00196/0.1218, allocations: 0.8323 MB / 368 MB, free: 4.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.1219, allocations: 71.39 kB / 368.1 MB, free: 4.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.1221, allocations: 203.6 kB / 368.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.268e-05/0.1221, allocations: 37.7 kB / 368.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.122e-05/0.1222, allocations: 136.9 kB / 368.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.304e-05/0.1223, allocations: 102.7 kB / 368.6 MB, free: 4.391 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.899e-05/0.1224, allocations: 53.69 kB / 368.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1225, allocations: 342.8 kB / 368.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004413/0.123, allocations: 173 kB / 369.1 MB, free: 3.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000488/0.1235, allocations: 253.2 kB / 369.4 MB, free: 3.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008549/0.1243, allocations: 481.6 kB / 369.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1243, allocations: 0 / 369.8 MB, free: 3.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001146/0.1255, allocations: 0.6037 MB / 370.4 MB, free: 2.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.026e-05/0.1256, allocations: 89.09 kB / 370.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1256, allocations: 7.938 kB / 370.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.1256, allocations: 4 kB / 370.5 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003552/0.126, allocations: 83.83 kB / 370.6 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.126, allocations: 8 kB / 370.6 MB, free: 2.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003514/0.1263, allocations: 79.62 kB / 370.7 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/0.1264, allocations: 20 kB / 370.7 MB, free: 2.102 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.0001818/0.1266, allocations: 177.6 kB / 370.9 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.1266, allocations: 23.72 kB / 370.9 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.376e-05/0.1267, allocations: 38.98 kB / 371 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1268, allocations: 4 kB / 371 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1268, allocations: 0 / 371 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1268, allocations: 0 / 371 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003408/0.1271, allocations: 349.2 kB / 371.3 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1271, allocations: 0 / 371.3 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002822/0.1274, allocations: 63.89 kB / 371.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1274, allocations: 0 / 371.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.1275, allocations: 19.97 kB / 371.4 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.1275, allocations: 0 / 371.4 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1275, allocations: 4 kB / 371.4 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002023/0.1295, allocations: 0.9422 MB / 372.3 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.585e-05/0.1296, allocations: 100.8 kB / 372.4 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.668e-05/0.1297, allocations: 16.03 kB / 372.4 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003707/0.1301, allocations: 79.92 kB / 372.5 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.1302, allocations: 51.94 kB / 372.6 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.792e-05/0.1302, allocations: 31.97 kB / 372.6 MB, free: 128 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1723/0.3025, allocations: 129.6 kB / 372.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.12e-07/0.3026, allocations: 0 / 372.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000506/0.3031, allocations: 76.84 kB / 372.8 MB, free: 19.67 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.0001824/0.3033, allocations: 129.7 kB / 372.9 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.3048, allocations: 0.6488 MB / 373.6 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3048, allocations: 1.281 kB / 373.6 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007073/0.3055, allocations: 292.5 kB / 373.9 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003747/0.3059, allocations: 38.59 kB / 373.9 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.3073, allocations: 0.6848 MB / 374.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/0.3075, allocations: 0.756 MB / 375.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.3077, allocations: 27.23 kB / 375.4 MB, free: 18.35 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3077, allocations: 0 / 375.4 MB, free: 18.35 MB / 302.1 MB Notification: Performance of Templates: time 0.00859/0.3163, allocations: 3.918 MB / 379.3 MB, free: 18.11 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)