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: "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001214/0.001214, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001241/0.001241, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.214/0.214, allocations: 46.13 MB / 344.4 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003429/0.003429, allocations: 75.88 kB / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.335, allocations: 62.44 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002784/0.3379, allocations: 1.724 MB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003754/0.3383, allocations: 161.4 kB / 0.5324 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.597e-05/0.3383, allocations: 1.312 kB / 0.5324 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.251e-05/0.3384, allocations: 7.875 kB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.126e-05/0.3384, allocations: 16.89 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.3388, allocations: 102.9 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.3389, allocations: 101 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.3391, allocations: 42.23 kB / 0.5327 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.744e-05/0.3392, allocations: 44.28 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.941e-05/0.3392, allocations: 37.03 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.3392, allocations: 7.469 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.849e-05/0.3393, allocations: 9.094 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.263e-05/0.3393, allocations: 31.41 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.686e-05/0.3394, allocations: 36.92 kB / 0.5329 GB, free: 11.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.3395, allocations: 99 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3395, allocations: 0 / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3395, allocations: 0 / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.3395, allocations: 0 / 0.533 GB, free: 11.48 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.0007027/0.3402, allocations: 448.5 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.3403, allocations: 9.062 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.623e-05/0.3403, allocations: 37.97 kB / 0.5334 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.519e-05/0.3404, allocations: 15.12 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.3406, allocations: 204.2 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.3407, allocations: 3.719 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.3407, allocations: 9.938 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003426/0.341, allocations: 150.8 kB / 0.5338 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.341, allocations: 7.875 kB / 0.5338 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.3411, allocations: 5.375 kB / 0.5338 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.3411, allocations: 2.75 kB / 0.5338 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003602/0.3414, allocations: 108.4 kB / 0.5339 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006777/0.3421, allocations: 0.5482 MB / 0.5345 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.3425, allocations: 134 kB / 0.5346 GB, free: 9.977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.3427, allocations: 61.62 kB / 0.5346 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.3427, allocations: 1.375 kB / 0.5346 GB, free: 9.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.3428, allocations: 36.02 kB / 0.5347 GB, free: 9.898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.3428, allocations: 0 / 0.5347 GB, free: 9.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.000627/0.3434, allocations: 185.4 kB / 0.5349 GB, free: 9.801 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.284e-05/0.3435, allocations: 108 kB / 0.535 GB, free: 9.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.3436, allocations: 139.9 kB / 0.5351 GB, free: 9.547 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.3437, allocations: 29.7 kB / 0.5351 GB, free: 9.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.237e-05/0.3437, allocations: 109.8 kB / 0.5352 GB, free: 9.406 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.3438, allocations: 18.61 kB / 0.5352 GB, free: 9.391 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.569e-05/0.3438, allocations: 27.02 kB / 0.5353 GB, free: 9.367 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.344, allocations: 330.2 kB / 0.5356 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.3442, allocations: 47.55 kB / 0.5356 GB, free: 9.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.3444, allocations: 84.98 kB / 0.5357 GB, free: 8.953 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003302/0.3447, allocations: 117.2 kB / 0.5358 GB, free: 8.883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3447, allocations: 0 / 0.5358 GB, free: 8.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004049/0.3452, allocations: 161.3 kB / 0.536 GB, free: 8.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3452, allocations: 4.781 kB / 0.536 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3452, allocations: 5.219 kB / 0.536 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3452, allocations: 1.094 kB / 0.536 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.3453, allocations: 26.16 kB / 0.536 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.3454, allocations: 5.219 kB / 0.536 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001465/0.3455, allocations: 38.92 kB / 0.536 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.3455, allocations: 7.172 kB / 0.5361 GB, free: 8.746 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 0.00011/0.3457, allocations: 119.6 kB / 0.5362 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.3457, allocations: 8.422 kB / 0.5362 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.964e-05/0.3457, allocations: 15.94 kB / 0.5362 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3457, allocations: 1 kB / 0.5362 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3457, allocations: 4.188 kB / 0.5362 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3458, allocations: 5.094 kB / 0.5362 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002377/0.346, allocations: 202.8 kB / 0.5364 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.346, allocations: 0 / 0.5364 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.3461, allocations: 23.41 kB / 0.5364 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3461, allocations: 0 / 0.5364 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.3462, allocations: 9.484 kB / 0.5364 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3462, allocations: 0 / 0.5364 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3462, allocations: 5.172 kB / 0.5364 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.3466, allocations: 244.8 kB / 0.5367 GB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.289e-05/0.3467, allocations: 83.81 kB / 0.5367 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.3467, allocations: 5.359 kB / 0.5368 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001547/0.3469, allocations: 31.09 kB / 0.5368 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/0.3469, allocations: 10.67 kB / 0.5368 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.3469, allocations: 2.75 kB / 0.5368 GB, free: 8.035 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.423e-05/0.347, allocations: 103.4 kB / 0.5369 GB, free: 7.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.347, allocations: 1.156 kB / 0.5369 GB, free: 7.949 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002305/0.3473, allocations: 22.34 kB / 0.5369 GB, free: 7.941 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 0.0007604/0.348, allocations: 0.7627 MB / 0.5377 GB, free: 7.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004218/0.3484, allocations: 120.5 kB / 0.5378 GB, free: 7.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3485, allocations: 1.062 kB / 0.5378 GB, free: 7.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.3487, allocations: 59.45 kB / 0.5378 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.349, allocations: 31.69 kB / 0.5379 GB, free: 7.137 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.3513, allocations: 1.661 MB / 0.5395 GB, free: 5.684 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.3517, allocations: 0.6982 MB / 0.5402 GB, free: 4.977 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.873e-05/0.3517, allocations: 16.11 kB / 0.5402 GB, free: 4.969 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.979e-05/0.3518, allocations: 29.22 kB / 0.5402 GB, free: 4.945 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3518, allocations: 1.062 kB / 0.5402 GB, free: 4.945 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.3746, allocations: 2.754 MB / 0.5429 GB, free: 3.477 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.84/8.214, allocations: 2.062 kB / 0.5429 GB, free: 3.477 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)