Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009622/0.0009622, allocations: 96.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 178.7 kB / 16.57 MB, free: 6.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.4 MB / 222.7 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3785/0.3785, allocations: 43.55 MB / 314.5 MB, free: 8.723 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000868/0.0008682, allocations: 16 kB / 384 MB, free: 7.938 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1813, allocations: 58.86 MB / 442.9 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.2495/0.4308, allocations: 24.14 MB / 467 MB, free: 36.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01558/0.4465, allocations: 14.77 MB / 481.8 MB, free: 27.97 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007074/0.4472, allocations: 14.34 kB / 481.8 MB, free: 27.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009195/0.4481, allocations: 256.5 kB / 482 MB, free: 27.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01067/0.4588, allocations: 3.526 MB / 485.6 MB, free: 26.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007017/0.4658, allocations: 2.489 MB / 488 MB, free: 24.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001178/0.467, allocations: 0.5889 MB / 488.6 MB, free: 24.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000392/0.4674, allocations: 230.4 kB / 488.9 MB, free: 24.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008297/0.4683, allocations: 441.4 kB / 489.3 MB, free: 24.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004139/0.4724, allocations: 2.944 MB / 492.2 MB, free: 23.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.672e-05/0.4725, allocations: 18.03 kB / 492.2 MB, free: 23.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01694/0.4895, allocations: 7.272 MB / 499.5 MB, free: 22.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003323/0.4899, allocations: 83.12 kB / 499.6 MB, free: 22.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003566/0.4902, allocations: 110 kB / 499.7 MB, free: 22.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009065/0.4993, allocations: 3.109 MB / 0.491 GB, free: 21.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.4993, allocations: 4 kB / 0.491 GB, free: 21.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4993, allocations: 0 / 0.491 GB, free: 21.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.4994, allocations: 0 / 0.491 GB, free: 21.64 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.005315/0.5047, allocations: 1.258 MB / 0.4923 GB, free: 20.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.5047, allocations: 12.7 kB / 0.4923 GB, free: 20.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.896e-05/0.5048, allocations: 69.58 kB / 0.4923 GB, free: 20.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001929/0.5068, allocations: 247.6 kB / 0.4926 GB, free: 20.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005579/0.5073, allocations: 386.7 kB / 0.4929 GB, free: 20.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.5074, allocations: 26.38 kB / 0.493 GB, free: 20.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.636e-05/0.5074, allocations: 27.53 kB / 0.493 GB, free: 20.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001653/0.5091, allocations: 0.6226 MB / 0.4936 GB, free: 20.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.5091, allocations: 1.156 kB / 0.4936 GB, free: 20.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.5092, allocations: 12.34 kB / 0.4936 GB, free: 20.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.5092, allocations: 7.781 kB / 0.4936 GB, free: 20.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/0.5109, allocations: 0.6029 MB / 0.4942 GB, free: 19.98 MB / 382.1 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.002912/0.5138, allocations: 2.658 MB / 0.4968 GB, free: 17.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.5153, allocations: 494.7 kB / 0.4973 GB, free: 17.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04573/0.5611, allocations: 24.43 MB / 0.5211 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.5611, allocations: 46.45 kB / 0.5212 GB, free: 12.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.963e-06/0.5612, allocations: 0 / 0.5212 GB, free: 12.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002975/0.5641, allocations: 0.868 MB / 0.522 GB, free: 11.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.775e-05/0.5642, allocations: 102.8 kB / 0.5221 GB, free: 11.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005127/0.5647, allocations: 381.5 kB / 0.5225 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.75e-05/0.5648, allocations: 33.7 kB / 0.5225 GB, free: 11.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.565, allocations: 216.1 kB / 0.5227 GB, free: 11.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.869e-05/0.5651, allocations: 90.73 kB / 0.5228 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.093e-05/0.5651, allocations: 4 kB / 0.5228 GB, free: 11.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.5653, allocations: 346.8 kB / 0.5232 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004294/0.5657, allocations: 179.8 kB / 0.5233 GB, free: 10.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000508/0.5662, allocations: 271.6 kB / 0.5236 GB, free: 10.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004548/0.5667, allocations: 187.9 kB / 0.5238 GB, free: 10.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.5667, allocations: 0 / 0.5238 GB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001157/0.5679, allocations: 0.4971 MB / 0.5242 GB, free: 9.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004489/0.5683, allocations: 1.062 MB / 0.5253 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.5684, allocations: 4 kB / 0.5253 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.5684, allocations: 4 kB / 0.5253 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004357/0.5688, allocations: 107.9 kB / 0.5254 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.755e-05/0.5689, allocations: 7.938 kB / 0.5254 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004562/0.5693, allocations: 75.58 kB / 0.5255 GB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.5694, allocations: 23.81 kB / 0.5255 GB, free: 8.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.714e-06/0.5694, allocations: 3.984 kB / 0.5255 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009914/0.5704, allocations: 444.8 kB / 0.5259 GB, free: 7.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.5704, allocations: 3.984 kB / 0.5259 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.324e-06/0.5704, allocations: 8 kB / 0.5259 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003859/0.5708, allocations: 104.1 kB / 0.526 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.5708, allocations: 11.92 kB / 0.5261 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003564/0.5712, allocations: 67.56 kB / 0.5261 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.385e-05/0.5712, allocations: 19.98 kB / 0.5261 GB, free: 7.535 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002642/0.5715, allocations: 245 kB / 0.5264 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.39e-05/0.5716, allocations: 39.61 kB / 0.5264 GB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002582/0.5742, allocations: 1.991 MB / 0.5283 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.172e-05/0.5742, allocations: 35.94 kB / 0.5284 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.5742, allocations: 3.938 kB / 0.5284 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.5743, allocations: 0 / 0.5284 GB, free: 5.211 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001151/0.5754, allocations: 1.063 MB / 0.5294 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.5754, allocations: 0 / 0.5294 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003449/0.5758, allocations: 91.92 kB / 0.5295 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.5758, allocations: 0 / 0.5295 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.5758, allocations: 8 kB / 0.5295 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5758, allocations: 0 / 0.5295 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5758, allocations: 3.125 kB / 0.5295 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.5774, allocations: 1.153 MB / 0.5306 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003165/0.5777, allocations: 271.2 kB / 0.5309 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.281e-05/0.5778, allocations: 8 kB / 0.5309 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003421/0.5781, allocations: 43.97 kB / 0.531 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.79e-05/0.5782, allocations: 35.94 kB / 0.531 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.667e-05/0.5782, allocations: 8 kB / 0.531 GB, free: 2.449 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004496/0.5787, allocations: 374.8 kB / 0.5314 GB, free: 2.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5787, allocations: 0 / 0.5314 GB, free: 2.082 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005925/0.5846, allocations: 1.163 MB / 0.5325 GB, free: 0.918 MB / 398.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: 18 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01218/0.5968, allocations: 2.837 MB / 0.5353 GB, free: 14.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.599, allocations: 0.8968 MB / 0.5361 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.599, allocations: 0 / 0.5361 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007763/0.5998, allocations: 0.537 MB / 0.5367 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/0.6012, allocations: 218 kB / 0.5369 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008062/0.6092, allocations: 4.416 MB / 0.5412 GB, free: 7.898 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005492/0.6098, allocations: 0.9953 MB / 0.5422 GB, free: 6.883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009328/0.6108, allocations: 0.5987 MB / 0.5427 GB, free: 6.289 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00032/0.6111, allocations: 279.3 kB / 0.543 GB, free: 6.016 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.6111, allocations: 0 / 0.543 GB, free: 6.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07618/0.6873, allocations: 48.44 MB / 0.5903 GB, free: 5.574 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001789/0.6875, allocations: 227.9 kB / 0.5905 GB, free: 5.332 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.143/4.83, allocations: 0 / 0.5905 GB, free: 5.332 MB / 462.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat