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.001405/0.001405, allocations: 114 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001673/0.001673, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2131/0.2131, allocations: 46.11 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 81.2 kB / 417.1 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1168, allocations: 62.44 MB / 479.6 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003433/0.1203, allocations: 1.772 MB / 481.4 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004678/0.1208, allocations: 159.6 kB / 481.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.1209, allocations: 0 / 481.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.077e-05/0.121, allocations: 11.86 kB / 481.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.986e-05/0.1211, allocations: 11.88 kB / 481.5 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004048/0.1215, allocations: 79.91 kB / 481.6 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002001/0.1217, allocations: 115.7 kB / 481.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.1219, allocations: 33.36 kB / 481.8 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.156e-05/0.122, allocations: 43.86 kB / 481.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.404e-05/0.1221, allocations: 39.83 kB / 481.8 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.829e-05/0.1221, allocations: 11.98 kB / 481.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.956e-05/0.1221, allocations: 8 kB / 481.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.744e-05/0.1221, allocations: 23.92 kB / 481.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.085e-05/0.1222, allocations: 39.73 kB / 481.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001447/0.1224, allocations: 87.97 kB / 482 MB, free: 3.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1224, allocations: 0 / 482 MB, free: 3.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1224, allocations: 0 / 482 MB, free: 3.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.1224, allocations: 0 / 482 MB, free: 3.09 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.0007177/0.1231, allocations: 447 kB / 482.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.1232, allocations: 12.03 kB / 482.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.69e-05/0.1232, allocations: 38.75 kB / 482.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.376e-05/0.1233, allocations: 12.75 kB / 482.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.1235, allocations: 196.2 kB / 482.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.1235, allocations: 4.375 kB / 482.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.1236, allocations: 12.38 kB / 482.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003817/0.1239, allocations: 160.6 kB / 482.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.124, allocations: 3.938 kB / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.124, allocations: 0 / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.124, allocations: 0 / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003665/0.1244, allocations: 119.8 kB / 483 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006852/0.1251, allocations: 0.5398 MB / 483.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004191/0.1255, allocations: 142.5 kB / 483.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.1257, allocations: 56.84 kB / 483.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.1257, allocations: 0 / 483.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.1257, allocations: 34.56 kB / 483.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.1258, allocations: 0 / 483.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006344/0.1264, allocations: 193.4 kB / 484 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.1265, allocations: 106.8 kB / 484.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.1266, allocations: 138.1 kB / 484.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.1266, allocations: 25.7 kB / 484.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.368e-05/0.1267, allocations: 116 kB / 484.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.1267, allocations: 23.64 kB / 484.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.073e-05/0.1268, allocations: 29.72 kB / 484.4 MB, free: 476 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.743e-05/0.1269, allocations: 318.8 kB / 484.7 MB, free: 148 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.1271, allocations: 47.95 kB / 484.7 MB, free: 100 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.1273, allocations: 96.17 kB / 484.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.1276, allocations: 110.6 kB / 484.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1276, allocations: 0 / 484.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004047/0.1281, allocations: 153.4 kB / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1281, allocations: 4 kB / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1281, allocations: 4.062 kB / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.1281, allocations: 4 kB / 485.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.1283, allocations: 27.91 kB / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.1283, allocations: 0 / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.1284, allocations: 31.91 kB / 485.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.1285, allocations: 4 kB / 485.2 MB, free: 15.64 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.0001037/0.1286, allocations: 125.8 kB / 485.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.1286, allocations: 7.906 kB / 485.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.321e-05/0.1287, allocations: 12.7 kB / 485.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.1287, allocations: 4 kB / 485.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1287, allocations: 0 / 485.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1287, allocations: 3.938 kB / 485.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.1289, allocations: 217.4 kB / 485.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1289, allocations: 0 / 485.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.1291, allocations: 27.91 kB / 485.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1291, allocations: 0 / 485.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.1291, allocations: 11.94 kB / 485.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.1291, allocations: 0 / 485.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1291, allocations: 0 / 485.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004327/0.1295, allocations: 235.3 kB / 485.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.1296, allocations: 89.02 kB / 485.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.1296, allocations: 0 / 485.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.1298, allocations: 24.16 kB / 485.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.193e-05/0.1299, allocations: 15.92 kB / 485.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.1299, allocations: 3.938 kB / 485.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.798e-05/0.1299, allocations: 105.5 kB / 486 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.13, allocations: 0 / 486 MB, free: 14.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002544/0.1302, allocations: 20 kB / 486.1 MB, free: 14.66 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.0006858/0.1309, allocations: 0.7674 MB / 486.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004163/0.1313, allocations: 123.9 kB / 486.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.1313, allocations: 0 / 486.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.1315, allocations: 63.88 kB / 487 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003669/0.1319, allocations: 22.59 kB / 487 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.1341, allocations: 1.687 MB / 488.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.1343, allocations: 0.7007 MB / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.481e-05/0.1344, allocations: 8.672 kB / 489.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.581e-05/0.1344, allocations: 27.42 kB / 489.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1345, allocations: 4 kB / 489.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01374/0.1482, allocations: 2.481 MB / 491.9 MB, free: 8.734 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/0.1485, allocations: 193.3 kB / 492.1 MB, free: 8.473 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.982/2.13, allocations: 0 / 492.1 MB, free: 8.473 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)