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.0009516/0.0009516, allocations: 94 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 196.6 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2122/0.2122, allocations: 46.17 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000282/0.000282, allocations: 8 kB / 419.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1097, allocations: 63.56 MB / 483.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.001805/0.1115, allocations: 1.433 MB / 484.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003632/0.1119, allocations: 151.6 kB / 484.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.373e-05/0.112, allocations: 0 / 484.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.316e-05/0.1121, allocations: 3.938 kB / 484.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.82e-05/0.1121, allocations: 15.81 kB / 484.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003218/0.1125, allocations: 95.38 kB / 484.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.1126, allocations: 95.77 kB / 485 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.1127, allocations: 33.38 kB / 485 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.032e-05/0.1128, allocations: 39.89 kB / 485 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.443e-05/0.1129, allocations: 35.78 kB / 485.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.1129, allocations: 4 kB / 485.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.374e-05/0.1129, allocations: 4 kB / 485.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.061e-05/0.1129, allocations: 11.94 kB / 485.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.528e-05/0.113, allocations: 61.44 kB / 485.1 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.1131, allocations: 83.94 kB / 485.2 MB, free: 2.016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1131, allocations: 0 / 485.2 MB, free: 2.016 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1131, allocations: 7.938 kB / 485.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.1131, allocations: 3.938 kB / 485.2 MB, free: 2.004 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.0006272/0.1138, allocations: 447.1 kB / 485.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1138, allocations: 8.875 kB / 485.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.541e-05/0.1139, allocations: 42.75 kB / 485.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.439e-05/0.1139, allocations: 8.844 kB / 485.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001797/0.1141, allocations: 198.8 kB / 485.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.1141, allocations: 8.312 kB / 485.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.1141, allocations: 8.375 kB / 485.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003786/0.1145, allocations: 166.5 kB / 486.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1145, allocations: 3.938 kB / 486.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.1146, allocations: 4 kB / 486.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.1146, allocations: 4 kB / 486.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004037/0.115, allocations: 135.8 kB / 486.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006639/0.1157, allocations: 0.5594 MB / 486.8 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004383/0.1161, allocations: 174.4 kB / 487 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.1163, allocations: 68.81 kB / 487 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.1163, allocations: 0 / 487 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/0.1164, allocations: 38.56 kB / 487.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 9.61e-07/0.1164, allocations: 3.938 kB / 487.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=8): time 0.000675/0.1171, allocations: 229.5 kB / 487.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.1171, allocations: 102.8 kB / 487.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.1173, allocations: 152.6 kB / 487.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.1173, allocations: 25.7 kB / 487.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.228e-05/0.1174, allocations: 108.1 kB / 487.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.1174, allocations: 23.64 kB / 487.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.1174, allocations: 17.72 kB / 487.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.341e-05/0.1175, allocations: 322.8 kB / 488 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.1177, allocations: 63.95 kB / 488.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.1179, allocations: 100.2 kB / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003764/0.1183, allocations: 134.5 kB / 488.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1183, allocations: 4 kB / 488.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004382/0.1188, allocations: 181.7 kB / 488.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.1188, allocations: 4 kB / 488.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.1188, allocations: 4 kB / 488.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.1188, allocations: 0 / 488.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.119, allocations: 47.97 kB / 488.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.119, allocations: 192 / 488.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000156/0.1192, allocations: 43.81 kB / 488.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.1192, allocations: 3.938 kB / 488.6 MB, free: 14.32 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 9.64e-05/0.1193, allocations: 129.8 kB / 488.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.218e-05/0.1193, allocations: 7.906 kB / 488.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/0.1194, allocations: 12.72 kB / 488.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1194, allocations: 0 / 488.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1194, allocations: 0 / 488.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1194, allocations: 3.938 kB / 488.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.1196, allocations: 209.5 kB / 489 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1196, allocations: 3.984 kB / 489 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.1198, allocations: 39.91 kB / 489 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.1198, allocations: 0 / 489 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.1198, allocations: 0 / 489 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1198, allocations: 3.938 kB / 489 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1198, allocations: 4 kB / 489 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000455/0.1203, allocations: 263.3 kB / 489.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.964e-05/0.1203, allocations: 85.02 kB / 489.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.1203, allocations: 4 kB / 489.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.1205, allocations: 35.95 kB / 489.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.1206, allocations: 15.92 kB / 489.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.1206, allocations: 8 kB / 489.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.089e-05/0.1207, allocations: 97.33 kB / 489.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1207, allocations: 0 / 489.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.1209, allocations: 20 kB / 489.5 MB, free: 13.31 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.0007035/0.1216, allocations: 0.7981 MB / 490.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004371/0.1221, allocations: 148 kB / 490.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1221, allocations: 0 / 490.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002117/0.1223, allocations: 71.95 kB / 490.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.1226, allocations: 23.92 kB / 490.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.125, allocations: 1.771 MB / 492.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.1252, allocations: 0.6971 MB / 493 MB, free: 9.664 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.088e-05/0.1253, allocations: 9.219 kB / 493.1 MB, free: 9.656 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.389e-05/0.1254, allocations: 27.42 kB / 493.1 MB, free: 9.629 MB / 366.1 MB Notification: Performance of SimCode: time 1.834e-06/0.1254, allocations: 4 kB / 493.1 MB, free: 9.625 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01281/0.1382, allocations: 2.335 MB / 495.4 MB, free: 7.387 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/0.1385, allocations: 191 kB / 495.6 MB, free: 7.125 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/1.836, allocations: 0 / 495.6 MB, free: 7.125 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)