Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds") translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001247/0.001247, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2088/0.2088, allocations: 46.11 MB / 344.3 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 77.75 kB / 417.5 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1022, allocations: 62.45 MB / 479.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002827/0.105, allocations: 1.768 MB / 481.7 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003884/0.1054, allocations: 159.5 kB / 481.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.041e-05/0.1055, allocations: 4 kB / 481.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.983e-05/0.1056, allocations: 7.875 kB / 481.9 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.125e-05/0.1057, allocations: 7.922 kB / 481.9 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.106, allocations: 87.83 kB / 482 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.1061, allocations: 99.77 kB / 482.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1063, allocations: 33.38 kB / 482.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.222e-05/0.1063, allocations: 43.83 kB / 482.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.526e-05/0.1064, allocations: 35.84 kB / 482.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.1064, allocations: 4 kB / 482.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.837e-05/0.1065, allocations: 8 kB / 482.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.609e-05/0.1065, allocations: 15.91 kB / 482.2 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.742e-05/0.1065, allocations: 43.73 kB / 482.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.353e-05/0.1066, allocations: 55.89 kB / 482.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1066, allocations: 4 kB / 482.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.1067, allocations: 0 / 482.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.1067, allocations: 0 / 482.3 MB, free: 3.344 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006499/0.1073, allocations: 443.3 kB / 482.7 MB, free: 2.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.1074, allocations: 8.875 kB / 482.7 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.801e-05/0.1074, allocations: 16.73 kB / 482.8 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.1076, allocations: 200.2 kB / 483 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.1076, allocations: 8.375 kB / 483 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.552e-05/0.1077, allocations: 4.375 kB / 483 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003531/0.108, allocations: 156.8 kB / 483.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.108, allocations: 4.188 kB / 483.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.1081, allocations: 3.938 kB / 483.1 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.1081, allocations: 4 kB / 483.1 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003597/0.1084, allocations: 107.8 kB / 483.2 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006601/0.1091, allocations: 0.5437 MB / 483.8 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.1095, allocations: 138.4 kB / 483.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.1097, allocations: 64.84 kB / 484 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.1097, allocations: 3.984 kB / 484 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.1098, allocations: 34.56 kB / 484 MB, free: 1.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.233e-06/0.1098, allocations: 0 / 484 MB, free: 1.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005972/0.1104, allocations: 185.4 kB / 484.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.232e-05/0.1104, allocations: 110.8 kB / 484.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.1106, allocations: 134.1 kB / 484.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.1106, allocations: 33.64 kB / 484.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.488e-05/0.1107, allocations: 112 kB / 484.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.1107, allocations: 23.72 kB / 484.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/0.1107, allocations: 29.7 kB / 484.6 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1109, allocations: 326.8 kB / 484.9 MB, free: 452 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.1111, allocations: 55.95 kB / 485 MB, free: 396 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.1113, allocations: 84.23 kB / 485.1 MB, free: 296 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.1116, allocations: 114.8 kB / 485.2 MB, free: 172 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1116, allocations: 0 / 485.2 MB, free: 172 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003954/0.112, allocations: 149.4 kB / 485.3 MB, free: 16 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.112, allocations: 8 kB / 485.3 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.112, allocations: 0 / 485.3 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.112, allocations: 0 / 485.3 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.1122, allocations: 31.97 kB / 485.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.1122, allocations: 3.938 kB / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.1124, allocations: 27.91 kB / 485.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.1124, allocations: 8.062 kB / 485.4 MB, free: 15.94 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.0001059/0.1125, allocations: 125.8 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.473e-05/0.1125, allocations: 7.906 kB / 485.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.794e-05/0.1126, allocations: 12.72 kB / 485.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1126, allocations: 0 / 485.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.1126, allocations: 0 / 485.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1126, allocations: 7.875 kB / 485.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002123/0.1128, allocations: 213.5 kB / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1128, allocations: 0 / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.113, allocations: 27.97 kB / 485.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.113, allocations: 0 / 485.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.477e-06/0.113, allocations: 0 / 485.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.113, allocations: 0 / 485.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.113, allocations: 0 / 485.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004291/0.1134, allocations: 243.2 kB / 486 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.1135, allocations: 88.95 kB / 486.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.1135, allocations: 4 kB / 486.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.1137, allocations: 23.95 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.1137, allocations: 8 kB / 486.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.998e-06/0.1137, allocations: 12.11 kB / 486.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.847e-05/0.1138, allocations: 105.7 kB / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1138, allocations: 7.938 kB / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.1141, allocations: 12 kB / 486.3 MB, free: 14.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001026/0.1142, allocations: 95.25 kB / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004006/0.1146, allocations: 120 kB / 486.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1146, allocations: 0 / 486.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.1148, allocations: 59.89 kB / 486.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.1151, allocations: 19.98 kB / 486.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005451/0.1157, allocations: 281.4 kB / 486.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.1159, allocations: 0.7009 MB / 487.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.753e-05/0.116, allocations: 19.44 kB / 487.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.116, allocations: 0 / 487.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Templates: time 0.002878/0.1189, allocations: 1.407 MB / 489 MB, free: 12.21 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)