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.001633/0.001633, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001872/0.001872, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.218/0.218, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002522/0.002523, allocations: 77 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1269, allocations: 62.45 MB / 480 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003089/0.1301, allocations: 1.707 MB / 481.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000444/0.1305, allocations: 159.5 kB / 481.9 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.016e-05/0.1307, allocations: 4 kB / 481.9 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.772e-05/0.1307, allocations: 15.81 kB / 481.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.188e-05/0.1308, allocations: 15.8 kB / 481.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.1311, allocations: 91.86 kB / 482 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.1313, allocations: 107.8 kB / 482.1 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.1314, allocations: 33.36 kB / 482.1 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.913e-05/0.1315, allocations: 39.86 kB / 482.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.15e-05/0.1316, allocations: 39.83 kB / 482.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.498e-05/0.1316, allocations: 12 kB / 482.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.94e-05/0.1316, allocations: 8 kB / 482.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.992e-05/0.1317, allocations: 23.91 kB / 482.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.544e-05/0.1317, allocations: 43.73 kB / 482.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.1318, allocations: 87.69 kB / 482.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1319, allocations: 0 / 482.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1319, allocations: 0 / 482.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1319, allocations: 0 / 482.4 MB, free: 2.91 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.0007017/0.1326, allocations: 447.3 kB / 482.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.1326, allocations: 12.03 kB / 482.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.729e-05/0.1327, allocations: 16.73 kB / 482.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.1329, allocations: 200.2 kB / 483 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.856e-06/0.1329, allocations: 8.375 kB / 483.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.1329, allocations: 4.375 kB / 483.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003559/0.1333, allocations: 156.6 kB / 483.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.1333, allocations: 192 / 483.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.1333, allocations: 11.88 kB / 483.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.1333, allocations: 4 kB / 483.2 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003895/0.1337, allocations: 111.8 kB / 483.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006997/0.1344, allocations: 0.5398 MB / 483.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004115/0.1349, allocations: 138.4 kB / 484 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001968/0.1351, allocations: 60.83 kB / 484.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.1351, allocations: 12.06 kB / 484.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.1351, allocations: 30.56 kB / 484.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.1351, allocations: 0 / 484.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006408/0.1358, allocations: 185.4 kB / 484.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.1359, allocations: 106.8 kB / 484.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.136, allocations: 140.5 kB / 484.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.136, allocations: 25.7 kB / 484.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.402e-05/0.1361, allocations: 112 kB / 484.7 MB, free: 400 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/0.1361, allocations: 23.66 kB / 484.7 MB, free: 376 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-05/0.1362, allocations: 33.7 kB / 484.7 MB, free: 336 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1363, allocations: 322.8 kB / 485 MB, free: 4 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.1365, allocations: 47.95 kB / 485.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.1367, allocations: 92.17 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003447/0.1371, allocations: 106.8 kB / 485.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.1371, allocations: 0 / 485.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004318/0.1375, allocations: 157.5 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.1375, allocations: 8 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1376, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1376, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.1378, allocations: 31.97 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.1378, allocations: 4 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.1379, allocations: 31.91 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.1379, allocations: 4 kB / 485.5 MB, free: 15.5 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.0001101/0.1381, allocations: 121.8 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.667e-05/0.1381, allocations: 11.89 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.828e-05/0.1382, allocations: 16.72 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.1382, allocations: 4 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1382, allocations: 0 / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1382, allocations: 3.938 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/0.1384, allocations: 205.7 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1384, allocations: 0 / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.1385, allocations: 31.84 kB / 485.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1386, allocations: 4 kB / 485.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.1386, allocations: 0 / 485.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1386, allocations: 3.938 kB / 485.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1386, allocations: 4 kB / 485.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004447/0.139, allocations: 243.3 kB / 486.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/0.1391, allocations: 84.95 kB / 486.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.631e-05/0.1391, allocations: 8 kB / 486.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.1393, allocations: 27.95 kB / 486.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.772e-05/0.1394, allocations: 8 kB / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.1394, allocations: 11.92 kB / 486.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.272e-05/0.1394, allocations: 102 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1395, allocations: 0 / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.1397, allocations: 16 kB / 486.4 MB, free: 14.52 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 9.065e-05/0.1398, allocations: 99.19 kB / 486.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004445/0.1403, allocations: 119.8 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1403, allocations: 0 / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.1405, allocations: 55.95 kB / 486.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.1408, allocations: 26.64 kB / 486.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005443/0.1414, allocations: 221.9 kB / 486.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.1417, allocations: 0.6963 MB / 487.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.692e-05/0.1417, allocations: 8.672 kB / 487.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.21e-05/0.1418, allocations: 23.42 kB / 487.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1418, allocations: 0 / 487.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of Templates: time 0.004037/0.1458, allocations: 1.429 MB / 489.1 MB, free: 11.79 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)