Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001845/0.001845, allocations: 105.8 kB / 18.3 MB, free: 4.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002186/0.002186, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.394/1.394, allocations: 227.7 MB / 247.7 MB, free: 10.37 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002113, allocations: 68.52 kB / 307.9 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1065, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema): time 0.003797/0.1103, allocations: 2.022 MB / 360.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1122, allocations: 0.7363 MB / 361.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002144/0.1124, allocations: 11.88 kB / 361.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.168e-05/0.1125, allocations: 23.67 kB / 361.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.1128, allocations: 43.58 kB / 361.3 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005347/0.1133, allocations: 155.7 kB / 361.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004907/0.1138, allocations: 343.2 kB / 361.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.114, allocations: 68.75 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003537/0.1144, allocations: 151.5 kB / 362 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.1146, allocations: 167.4 kB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.938e-05/0.1147, allocations: 32 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.698e-05/0.1148, allocations: 32 kB / 362.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.176e-05/0.1149, allocations: 71.73 kB / 362.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.1151, allocations: 143.3 kB / 362.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.1155, allocations: 287.3 kB / 362.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1155, allocations: 0 / 362.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1155, allocations: 0 / 362.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1155, allocations: 0 / 362.7 MB, free: 9.676 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.00162/0.1171, allocations: 0.7429 MB / 363.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1172, allocations: 11.97 kB / 363.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003766/0.1176, allocations: 56.62 kB / 363.5 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003432/0.1179, allocations: 264.7 kB / 363.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.169e-05/0.118, allocations: 24.36 kB / 363.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.48e-05/0.1181, allocations: 28.28 kB / 363.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008549/0.1189, allocations: 363.1 kB / 364.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1189, allocations: 4 kB / 364.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.119, allocations: 4 kB / 364.2 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.119, allocations: 4 kB / 364.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000831/0.1198, allocations: 251.7 kB / 364.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.1211, allocations: 0.7109 MB / 365.1 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000968/0.122, allocations: 368.9 kB / 365.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000572/0.1226, allocations: 209.2 kB / 365.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.1227, allocations: 7.938 kB / 365.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001236/0.1239, allocations: 402.3 kB / 366.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.136e-06/0.1239, allocations: 0 / 366.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.002024/0.126, allocations: 0.7504 MB / 366.8 MB, free: 5.305 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.126, allocations: 67.39 kB / 366.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002105/0.1262, allocations: 195.8 kB / 367.1 MB, free: 5.027 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.788e-05/0.1263, allocations: 45.64 kB / 367.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.1264, allocations: 132.9 kB / 367.3 MB, free: 4.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.1266, allocations: 114.6 kB / 367.4 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.1267, allocations: 94.23 kB / 367.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1269, allocations: 338.8 kB / 367.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000442/0.1273, allocations: 157 kB / 368 MB, free: 4.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004867/0.1278, allocations: 241.2 kB / 368.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008836/0.1287, allocations: 435.8 kB / 368.6 MB, free: 3.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1288, allocations: 0 / 368.6 MB, free: 3.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001223/0.13, allocations: 0.5722 MB / 369.2 MB, free: 2.805 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.04e-05/0.1301, allocations: 93.09 kB / 369.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.1301, allocations: 224 / 369.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.1301, allocations: 8 kB / 369.3 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.1305, allocations: 79.81 kB / 369.4 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.1305, allocations: 4 kB / 369.4 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.1309, allocations: 67.64 kB / 369.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.1309, allocations: 19.98 kB / 369.5 MB, free: 2.52 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.00022/0.1312, allocations: 165.7 kB / 369.6 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.144e-05/0.1312, allocations: 31.62 kB / 369.6 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.94e-05/0.1313, allocations: 38.92 kB / 369.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1314, allocations: 4 kB / 369.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.1314, allocations: 0 / 369.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.1314, allocations: 3.984 kB / 369.7 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003921/0.1318, allocations: 349.2 kB / 370 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.1318, allocations: 0 / 370 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002872/0.1321, allocations: 43.95 kB / 370.1 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.245e-05/0.1321, allocations: 4 kB / 370.1 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.1322, allocations: 15.97 kB / 370.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1322, allocations: 4 kB / 370.1 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1322, allocations: 0 / 370.1 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.1343, allocations: 0.8563 MB / 371 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.894e-05/0.1344, allocations: 108.7 kB / 371.1 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.472e-05/0.1345, allocations: 15.94 kB / 371.1 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003645/0.1348, allocations: 59.97 kB / 371.1 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.135, allocations: 47.94 kB / 371.2 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.606e-05/0.1351, allocations: 31.97 kB / 371.2 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001244/0.1352, allocations: 140.2 kB / 371.3 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1352, allocations: 4 kB / 371.4 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000376/0.1356, allocations: 80 kB / 371.4 MB, free: 456 kB / 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.0001902/0.1358, allocations: 123.7 kB / 371.6 MB, free: 324 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1514/0.2872, allocations: 0.6196 MB / 372.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.2872, allocations: 0 / 372.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007469/0.2879, allocations: 264.1 kB / 372.4 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004055/0.2884, allocations: 37.69 kB / 372.5 MB, free: 20.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.2897, allocations: 0.5827 MB / 373 MB, free: 20.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001877/0.2899, allocations: 0.7586 MB / 373.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.29, allocations: 33.05 kB / 373.8 MB, free: 19.37 MB / 302.1 MB Notification: Performance of SimCode: time 1.233e-06/0.29, allocations: 0 / 373.8 MB, free: 19.37 MB / 302.1 MB Notification: Performance of Templates: time 0.008359/0.2984, allocations: 3.957 MB / 377.8 MB, free: 19.13 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.DemonstrateContinuousSignalExtrema.pipe 2>&1)