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.00124/0.00124, allocations: 113 kB / 18.45 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 208.9 kB / 19.4 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 227.4 MB / 247.6 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1887/0.1887, allocations: 46.1 MB / 345 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 79.88 kB / 482 MB, free: 4.125 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2934, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002616/0.296, allocations: 1.722 MB / 0.5333 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003827/0.2964, allocations: 164.7 kB / 0.5335 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.779e-05/0.2965, allocations: 2.062 kB / 0.5335 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.2e-05/0.2965, allocations: 11.86 kB / 0.5335 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.132e-05/0.2966, allocations: 9 kB / 0.5335 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.2969, allocations: 95.34 kB / 0.5336 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.2971, allocations: 106.6 kB / 0.5337 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.2972, allocations: 37.91 kB / 0.5337 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.683e-05/0.2973, allocations: 43.66 kB / 0.5338 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.679e-05/0.2973, allocations: 45.33 kB / 0.5338 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.2973, allocations: 7.156 kB / 0.5338 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.763e-05/0.2974, allocations: 8.656 kB / 0.5338 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.143e-05/0.2974, allocations: 27.16 kB / 0.5339 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.594e-05/0.2975, allocations: 36.58 kB / 0.5339 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.2976, allocations: 100.9 kB / 0.534 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2976, allocations: 0 / 0.534 GB, free: 11.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2976, allocations: 0 / 0.534 GB, free: 11.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.616e-06/0.2976, allocations: 0 / 0.534 GB, free: 11.76 MB / 398.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.000632/0.2982, allocations: 438.6 kB / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/0.2983, allocations: 8.469 kB / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.127e-05/0.2983, allocations: 15.25 kB / 0.5344 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.2985, allocations: 200.7 kB / 0.5346 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.2986, allocations: 11.44 kB / 0.5346 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.2986, allocations: 16.19 kB / 0.5346 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.2989, allocations: 149.1 kB / 0.5348 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.2989, allocations: 192 / 0.5348 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.2989, allocations: 9.312 kB / 0.5348 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.299, allocations: 5.375 kB / 0.5348 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003598/0.2993, allocations: 109.7 kB / 0.5349 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005989/0.2999, allocations: 0.5404 MB / 0.5354 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.3003, allocations: 136.6 kB / 0.5356 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.3005, allocations: 59.06 kB / 0.5356 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.3005, allocations: 0 / 0.5356 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.237e-05/0.3006, allocations: 33.31 kB / 0.5357 GB, free: 10.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.3006, allocations: 3.938 kB / 0.5357 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.000608/0.3012, allocations: 184.2 kB / 0.5358 GB, free: 10.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.3012, allocations: 108.2 kB / 0.5359 GB, free: 10.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.3014, allocations: 134.2 kB / 0.5361 GB, free: 9.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.3014, allocations: 26.7 kB / 0.5361 GB, free: 9.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.757e-05/0.3014, allocations: 108.4 kB / 0.5362 GB, free: 9.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.3015, allocations: 26.86 kB / 0.5362 GB, free: 9.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.932e-05/0.3015, allocations: 27.39 kB / 0.5362 GB, free: 9.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3016, allocations: 324.9 kB / 0.5366 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.3018, allocations: 47.86 kB / 0.5366 GB, free: 9.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.302, allocations: 97.62 kB / 0.5367 GB, free: 9.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003304/0.3024, allocations: 104.7 kB / 0.5368 GB, free: 9.223 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3024, allocations: 5.188 kB / 0.5368 GB, free: 9.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003955/0.3028, allocations: 152.3 kB / 0.5369 GB, free: 9.133 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.3028, allocations: 4.719 kB / 0.5369 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3028, allocations: 1.156 kB / 0.537 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.3028, allocations: 1.312 kB / 0.537 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.303, allocations: 33.56 kB / 0.537 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.303, allocations: 1.094 kB / 0.537 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001396/0.3031, allocations: 31.84 kB / 0.537 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.3031, allocations: 6.953 kB / 0.537 GB, free: 9.098 MB / 398.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 9.565e-05/0.3032, allocations: 127.3 kB / 0.5371 GB, free: 8.969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.3033, allocations: 8.312 kB / 0.5372 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.539e-05/0.3033, allocations: 16.22 kB / 0.5372 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3033, allocations: 1.281 kB / 0.5372 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.3033, allocations: 0 / 0.5372 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3034, allocations: 7.875 kB / 0.5372 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.3036, allocations: 216.2 kB / 0.5374 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.3036, allocations: 0 / 0.5374 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.3037, allocations: 26.25 kB / 0.5374 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.3037, allocations: 1.125 kB / 0.5374 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.3037, allocations: 1.062 kB / 0.5374 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3037, allocations: 7.984 kB / 0.5374 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3037, allocations: 1.156 kB / 0.5374 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004253/0.3041, allocations: 237.4 kB / 0.5376 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.851e-05/0.3042, allocations: 87.62 kB / 0.5377 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.3042, allocations: 5.562 kB / 0.5377 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.3044, allocations: 22.03 kB / 0.5378 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.3044, allocations: 16 kB / 0.5378 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.3045, allocations: 5.188 kB / 0.5378 GB, free: 8.371 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.381e-05/0.3045, allocations: 109 kB / 0.5379 GB, free: 8.281 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.192e-06/0.3045, allocations: 0 / 0.5379 GB, free: 8.281 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002482/0.3048, allocations: 27.03 kB / 0.5379 GB, free: 8.27 MB / 398.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 8.907e-05/0.3049, allocations: 95.69 kB / 0.538 GB, free: 8.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004194/0.3053, allocations: 116 kB / 0.5381 GB, free: 8.133 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3053, allocations: 0 / 0.5381 GB, free: 8.133 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.3055, allocations: 60.73 kB / 0.5382 GB, free: 8.109 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/0.3058, allocations: 28.78 kB / 0.5382 GB, free: 8.094 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005053/0.3063, allocations: 242 kB / 0.5384 GB, free: 7.895 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.3066, allocations: 0.7025 MB / 0.5391 GB, free: 7.184 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.696e-05/0.3066, allocations: 13.97 kB / 0.5391 GB, free: 7.18 MB / 398.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3066, allocations: 0 / 0.5391 GB, free: 7.18 MB / 398.1 MB Notification: Performance of Templates: time 0.002849/0.3095, allocations: 1.413 MB / 0.5405 GB, free: 6.453 MB / 398.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)