Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001611/0.00161, allocations: 182 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.283/2.283, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001188/0.001188, allocations: 100 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.543/0.543, allocations: 43.55 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005038/0.000504, allocations: 12 kB / 431.5 MB, free: 6.059 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1394, allocations: 58.84 MB / 490.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure): time 0.3789/0.5184, allocations: 31.85 MB / 0.5099 GB, free: 28.25 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02824/0.5467, allocations: 18.38 MB / 0.5279 GB, free: 15.49 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000921/0.5477, allocations: 10.62 kB / 0.5279 GB, free: 15.48 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.5488, allocations: 247.2 kB / 0.5281 GB, free: 15.34 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01461/0.5634, allocations: 3.571 MB / 0.5316 GB, free: 13.64 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006981/0.5704, allocations: 1.613 MB / 0.5332 GB, free: 12.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001518/0.572, allocations: 0.6737 MB / 0.5338 GB, free: 12.4 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000558/0.5726, allocations: 285.2 kB / 0.5341 GB, free: 12.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02476/0.5973, allocations: 9.063 MB / 0.543 GB, free: 11.12 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007987/0.5982, allocations: 248 kB / 0.5432 GB, free: 11.02 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.5983, allocations: 19.69 kB / 0.5432 GB, free: 11.02 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02135/0.6197, allocations: 7.104 MB / 0.5502 GB, free: 9.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002721/0.62, allocations: 88.12 kB / 0.5502 GB, free: 9.387 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002821/0.6203, allocations: 122.3 kB / 0.5504 GB, free: 9.316 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00966/0.63, allocations: 3.046 MB / 0.5533 GB, free: 8.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.6301, allocations: 0 / 0.5533 GB, free: 8.125 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.6301, allocations: 4 kB / 0.5533 GB, free: 8.121 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.178e-06/0.6301, allocations: 0 / 0.5533 GB, free: 8.121 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.005409/0.6355, allocations: 1.231 MB / 0.5545 GB, free: 7.223 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.6356, allocations: 9.438 kB / 0.5546 GB, free: 7.223 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001413/0.6358, allocations: 75.84 kB / 0.5546 GB, free: 7.152 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002457/0.6382, allocations: 238.3 kB / 0.5549 GB, free: 7.055 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008102/0.6391, allocations: 383.8 kB / 0.5552 GB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.259e-05/0.6391, allocations: 35.03 kB / 0.5553 GB, free: 6.688 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.979e-05/0.6392, allocations: 35.94 kB / 0.5553 GB, free: 6.676 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002372/0.6416, allocations: 0.6888 MB / 0.556 GB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.625e-05/0.6417, allocations: 11.86 kB / 0.556 GB, free: 6.188 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-05/0.6418, allocations: 18.06 kB / 0.556 GB, free: 6.176 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.6418, allocations: 14.66 kB / 0.556 GB, free: 6.172 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002462/0.6443, allocations: 0.5895 MB / 0.5566 GB, free: 5.902 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005347/0.6496, allocations: 3.301 MB / 0.5598 GB, free: 2.844 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002232/0.6519, allocations: 468.9 kB / 0.5602 GB, free: 2.602 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.203/0.855, allocations: 56.33 MB / 0.6153 GB, free: 3.652 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.826e-05/0.8551, allocations: 44.84 kB / 0.6153 GB, free: 3.602 MB / 442.7 MB Notification: Performance of pre-optimization done (n=27): time 3.937e-06/0.8551, allocations: 0 / 0.6153 GB, free: 3.602 MB / 442.7 MB Notification: Performance of matching and sorting (n=27): time 0.004965/0.8601, allocations: 0.9343 MB / 0.6162 GB, free: 2.641 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/0.8602, allocations: 110.8 kB / 0.6163 GB, free: 2.508 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006646/0.8609, allocations: 393.8 kB / 0.6167 GB, free: 2.117 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.224e-05/0.861, allocations: 33.64 kB / 0.6167 GB, free: 2.078 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.8612, allocations: 294 kB / 0.617 GB, free: 1.789 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.8613, allocations: 94.73 kB / 0.6171 GB, free: 1.695 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.8614, allocations: 8 kB / 0.6171 GB, free: 1.688 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.8615, allocations: 334.8 kB / 0.6174 GB, free: 1.352 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000654/0.8622, allocations: 144.8 kB / 0.6176 GB, free: 1.211 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007971/0.863, allocations: 313.7 kB / 0.6179 GB, free: 0.8281 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007372/0.8638, allocations: 175.9 kB / 0.618 GB, free: 0.6562 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.8638, allocations: 0 / 0.618 GB, free: 0.6562 MB / 442.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001881/0.8657, allocations: 0.5093 MB / 0.6185 GB, free: 140 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009005/0.8666, allocations: 2.007 MB / 0.6205 GB, free: 13.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.8666, allocations: 8 kB / 0.6205 GB, free: 13.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00647/0.8731, allocations: 372.4 kB / 0.6208 GB, free: 13.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007311/0.8739, allocations: 99.88 kB / 0.6209 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00077/0.8747, allocations: 0.6095 MB / 0.6215 GB, free: 12.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007536/0.8755, allocations: 75.48 kB / 0.6216 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.7e-05/0.8756, allocations: 27.98 kB / 0.6216 GB, free: 12.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.8756, allocations: 7.125 kB / 0.6216 GB, free: 12.76 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001635/0.8772, allocations: 448.2 kB / 0.6221 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.8773, allocations: 4 kB / 0.6221 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.8773, allocations: 8.656 kB / 0.6221 GB, free: 12.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007923/0.8781, allocations: 119.9 kB / 0.6222 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.663e-05/0.8781, allocations: 11.94 kB / 0.6222 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005043/0.8786, allocations: 55.66 kB / 0.6223 GB, free: 12.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.8787, allocations: 36.84 kB / 0.6223 GB, free: 12.09 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003965/0.8791, allocations: 256.9 kB / 0.6225 GB, free: 11.83 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.8793, allocations: 43.47 kB / 0.6226 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004047/0.8833, allocations: 1.934 MB / 0.6245 GB, free: 9.844 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.701e-05/0.8835, allocations: 31.94 kB / 0.6245 GB, free: 9.812 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.8835, allocations: 0 / 0.6245 GB, free: 9.812 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.8835, allocations: 0 / 0.6245 GB, free: 9.812 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001689/0.8852, allocations: 0.9713 MB / 0.6254 GB, free: 8.789 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.8852, allocations: 0 / 0.6254 GB, free: 8.789 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000557/0.8858, allocations: 71.94 kB / 0.6255 GB, free: 8.719 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002514/0.8883, allocations: 0.6423 MB / 0.6261 GB, free: 8.07 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.399e-05/0.8884, allocations: 8 kB / 0.6262 GB, free: 8.062 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.8897, allocations: 1.014 MB / 0.6271 GB, free: 7.023 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.8897, allocations: 0 / 0.6271 GB, free: 7.023 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.8924, allocations: 1.321 MB / 0.6284 GB, free: 5.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00048/0.8929, allocations: 255.4 kB / 0.6287 GB, free: 5.41 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.8931, allocations: 8 kB / 0.6287 GB, free: 5.402 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005365/0.8936, allocations: 35.97 kB / 0.6287 GB, free: 5.367 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.8938, allocations: 31.91 kB / 0.6287 GB, free: 5.336 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.567e-05/0.8938, allocations: 12 kB / 0.6288 GB, free: 5.324 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006916/0.8945, allocations: 386.8 kB / 0.6291 GB, free: 4.945 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8945, allocations: 0 / 0.6291 GB, free: 4.945 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005798/0.9003, allocations: 1.144 MB / 0.6302 GB, free: 3.801 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01268/0.9131, allocations: 2.767 MB / 0.6329 GB, free: 1.004 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003026/0.9162, allocations: 0.8436 MB / 0.6338 GB, free: 168 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.9162, allocations: 0 / 0.6338 GB, free: 168 kB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.9174, allocations: 492.8 kB / 0.6342 GB, free: 15.68 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002223/0.9196, allocations: 230.7 kB / 0.6345 GB, free: 15.46 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/0.9329, allocations: 7.319 MB / 0.6416 GB, free: 7.98 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007466/0.9337, allocations: 0.9797 MB / 0.6426 GB, free: 6.973 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005471/0.9342, allocations: 271.3 kB / 0.6428 GB, free: 6.707 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/0.9342, allocations: 0 / 0.6428 GB, free: 6.707 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.727/4.661, allocations: 33.53 MB / 0.6756 GB, free: 5.152 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat does not exist to compare? outputFormat=mat