Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001582/0.001582, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001845/0.001845, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2306/0.2306, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002335/0.002335, allocations: 82.86 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1068, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003207/0.1101, allocations: 1.711 MB / 481.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003829/0.1105, allocations: 151.6 kB / 482.1 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.76e-05/0.1106, allocations: 15.88 kB / 482.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.227e-05/0.1106, allocations: 7.875 kB / 482.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.407e-05/0.1107, allocations: 11.86 kB / 482.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003251/0.111, allocations: 106.7 kB / 482.2 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.1112, allocations: 103.8 kB / 482.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.1113, allocations: 29.39 kB / 482.3 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.231e-05/0.1114, allocations: 43.84 kB / 482.4 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.914e-05/0.1115, allocations: 35.83 kB / 482.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.1115, allocations: 16 kB / 482.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.238e-05/0.1116, allocations: 8 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.785e-05/0.1116, allocations: 23.92 kB / 482.5 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.505e-05/0.1117, allocations: 39.73 kB / 482.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.1118, allocations: 91.95 kB / 482.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.1118, allocations: 4 kB / 482.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1119, allocations: 0 / 482.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1119, allocations: 0 / 482.6 MB, free: 2.762 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.0007722/0.1126, allocations: 443.1 kB / 483 MB, free: 2.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1127, allocations: 8.031 kB / 483 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.54e-05/0.1127, allocations: 38.75 kB / 483.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.214e-05/0.1128, allocations: 12.75 kB / 483.1 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.113, allocations: 200.1 kB / 483.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.113, allocations: 4.375 kB / 483.3 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.1131, allocations: 8.375 kB / 483.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003735/0.1134, allocations: 158.3 kB / 483.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1135, allocations: 3.938 kB / 483.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.1135, allocations: 4 kB / 483.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.1135, allocations: 7.984 kB / 483.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000393/0.1139, allocations: 111.8 kB / 483.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007126/0.1146, allocations: 0.5399 MB / 484.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004326/0.1151, allocations: 142.4 kB / 484.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.1153, allocations: 56.84 kB / 484.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.1153, allocations: 0 / 484.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.1153, allocations: 34.56 kB / 484.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.1153, allocations: 0 / 484.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006552/0.116, allocations: 189.5 kB / 484.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.283e-05/0.1161, allocations: 110.8 kB / 484.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.1162, allocations: 140.1 kB / 484.8 MB, free: 356 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.1162, allocations: 33.7 kB / 484.8 MB, free: 316 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/0.1163, allocations: 112 kB / 484.9 MB, free: 200 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.1164, allocations: 27.64 kB / 484.9 MB, free: 172 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.025e-05/0.1164, allocations: 21.72 kB / 485 MB, free: 144 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1166, allocations: 322.8 kB / 485.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.1168, allocations: 47.95 kB / 485.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.117, allocations: 88.23 kB / 485.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.1173, allocations: 114.5 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1173, allocations: 4 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004173/0.1178, allocations: 145.4 kB / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.1178, allocations: 8 kB / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.1178, allocations: 0 / 485.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.1178, allocations: 4.062 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.118, allocations: 27.97 kB / 485.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.118, allocations: 4 kB / 485.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.1182, allocations: 31.91 kB / 485.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.1182, allocations: 4 kB / 485.7 MB, free: 15.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 0.0001045/0.1183, allocations: 117.8 kB / 485.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.565e-05/0.1183, allocations: 11.91 kB / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.1184, allocations: 20.7 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1184, allocations: 0 / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1184, allocations: 0 / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1184, allocations: 3.938 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002295/0.1186, allocations: 213.4 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1186, allocations: 0 / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.1188, allocations: 23.97 kB / 486.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1188, allocations: 3.938 kB / 486.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.1188, allocations: 4 kB / 486.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1188, allocations: 4 kB / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1188, allocations: 400 / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004599/0.1193, allocations: 243.2 kB / 486.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.049e-05/0.1193, allocations: 81.02 kB / 486.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/0.1194, allocations: 8 kB / 486.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.1195, allocations: 24.16 kB / 486.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.572e-05/0.1196, allocations: 11.92 kB / 486.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.1196, allocations: 7.938 kB / 486.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.1197, allocations: 101.5 kB / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1197, allocations: 0 / 486.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002446/0.12, allocations: 20 kB / 486.6 MB, free: 14.34 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.0007893/0.1208, allocations: 0.7708 MB / 487.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004414/0.1212, allocations: 119.8 kB / 487.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1213, allocations: 0 / 487.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.1215, allocations: 59.94 kB / 487.6 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.1218, allocations: 26.31 kB / 487.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.1241, allocations: 1.665 MB / 489.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.1245, allocations: 0.6963 MB / 490 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.424e-05/0.1246, allocations: 12.66 kB / 490 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.21e-05/0.1246, allocations: 27.42 kB / 490 MB, free: 10.83 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1246, allocations: 0 / 490 MB, free: 10.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02297/0.1476, allocations: 2.707 MB / 492.7 MB, free: 8.184 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/7.778, allocations: 15.67 kB / 492.7 MB, free: 8.172 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1)