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.001235/0.001235, 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.001397/0.001397, 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.239/1.239, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1846/0.1846, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 75.17 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09544, allocations: 62.45 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002572/0.09805, allocations: 1.703 MB / 481.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003725/0.09844, allocations: 155.5 kB / 482 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.268e-05/0.09852, allocations: 11.94 kB / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.625e-05/0.09858, allocations: 11.86 kB / 482 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.768e-05/0.09864, allocations: 7.875 kB / 482 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.09894, allocations: 103.8 kB / 482.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001305/0.09908, allocations: 103.8 kB / 482.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.0992, allocations: 29.38 kB / 482.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.489e-05/0.09927, allocations: 47.83 kB / 482.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5e-05/0.09932, allocations: 39.84 kB / 482.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.09935, allocations: 8 kB / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.012e-05/0.09938, allocations: 12 kB / 482.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.09941, allocations: 15.92 kB / 482.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.023e-05/0.09946, allocations: 47.73 kB / 482.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.09958, allocations: 83.97 kB / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.09959, allocations: 0 / 482.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.0996, allocations: 4 kB / 482.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.09961, allocations: 0 / 482.5 MB, free: 2.805 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.0006162/0.1002, allocations: 451 kB / 482.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.1003, allocations: 8.031 kB / 482.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.705e-05/0.1003, allocations: 38.75 kB / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.361e-05/0.1003, allocations: 12.75 kB / 483 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.1005, allocations: 202.5 kB / 483.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.1005, allocations: 8.375 kB / 483.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.1006, allocations: 4.375 kB / 483.2 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.1009, allocations: 162.2 kB / 483.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.1009, allocations: 3.938 kB / 483.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.1009, allocations: 0 / 483.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.1009, allocations: 7.938 kB / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003357/0.1013, allocations: 111.9 kB / 483.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005784/0.1019, allocations: 0.5399 MB / 484 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003679/0.1022, allocations: 138.4 kB / 484.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.1024, allocations: 56.84 kB / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.1024, allocations: 4 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.1025, allocations: 34.55 kB / 484.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.1025, allocations: 0 / 484.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005679/0.103, allocations: 189.5 kB / 484.4 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.1031, allocations: 106.8 kB / 484.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.624e-05/0.1032, allocations: 136.5 kB / 484.7 MB, free: 400 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.1032, allocations: 33.64 kB / 484.7 MB, free: 360 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.91e-05/0.1033, allocations: 120.1 kB / 484.8 MB, free: 236 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.1033, allocations: 23.64 kB / 484.9 MB, free: 212 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/0.1034, allocations: 29.7 kB / 484.9 MB, free: 176 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.286e-05/0.1035, allocations: 318.8 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.1036, allocations: 51.94 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.1038, allocations: 88.25 kB / 485.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002994/0.1041, allocations: 110.5 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1041, allocations: 4 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003713/0.1045, allocations: 153.7 kB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.1045, allocations: 8 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.1045, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.1046, allocations: 4.062 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.1047, allocations: 27.97 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.1047, allocations: 0 / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.1048, allocations: 27.91 kB / 485.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.1049, allocations: 4 kB / 485.7 MB, free: 15.35 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 8.878e-05/0.105, allocations: 121.8 kB / 485.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.249e-05/0.105, allocations: 11.91 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.256e-05/0.105, allocations: 16.7 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.105, allocations: 0 / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1051, allocations: 192 / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1051, allocations: 3.938 kB / 485.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.1052, allocations: 221.4 kB / 486 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1053, allocations: 0 / 486 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.1054, allocations: 27.91 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1054, allocations: 0 / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.1054, allocations: 0 / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1054, allocations: 4 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1054, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000393/0.1058, allocations: 243.2 kB / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.93e-05/0.1059, allocations: 81.02 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.1059, allocations: 8 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.106, allocations: 19.97 kB / 486.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.1061, allocations: 15.92 kB / 486.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.1061, allocations: 4 kB / 486.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.548e-05/0.1062, allocations: 106 kB / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1062, allocations: 0 / 486.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.1064, allocations: 16 kB / 486.5 MB, free: 14.38 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.0006325/0.107, allocations: 0.767 MB / 487.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003794/0.1074, allocations: 115.9 kB / 487.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1074, allocations: 3.938 kB / 487.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.1076, allocations: 59.94 kB / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.1079, allocations: 33.67 kB / 487.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001929/0.1099, allocations: 1.654 MB / 489.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.1101, allocations: 0.7002 MB / 489.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.855e-05/0.1101, allocations: 9.219 kB / 489.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.472e-05/0.1102, allocations: 27.42 kB / 489.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1102, allocations: 0 / 489.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8623/0.9726, allocations: 2.707 MB / 492.6 MB, free: 8.211 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.869/10.84, allocations: 7.875 kB / 492.6 MB, free: 8.203 MB / 366.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)