Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",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.004971/0.004971, allocations: 100.2 kB / 15.87 MB, free: 6.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 193.8 kB / 16.79 MB, free: 6.238 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.246/1.246, allocations: 205.1 MB / 222.6 MB, free: 4.734 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.2814/0.2814, allocations: 43.49 MB / 313.5 MB, free: 8.203 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.001565/0.001565, allocations: 68.45 kB / 382.1 MB, free: 8.398 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0928/0.09438, allocations: 57.79 MB / 439.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1884/0.2829, allocations: 28.98 MB / 468.9 MB, free: 34.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01279/0.2957, allocations: 14.28 MB / 483.2 MB, free: 25.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003704/0.2961, allocations: 14.66 kB / 483.2 MB, free: 25.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007134/0.2969, allocations: 207.3 kB / 483.4 MB, free: 25.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007361/0.3042, allocations: 2.916 MB / 486.3 MB, free: 23.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004821/0.3091, allocations: 1.976 MB / 488.3 MB, free: 22.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009692/0.3101, allocations: 1.129 MB / 489.4 MB, free: 22.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002853/0.3104, allocations: 220 kB / 489.6 MB, free: 22.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005496/0.3109, allocations: 394.9 kB / 490 MB, free: 22.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000235/0.3112, allocations: 272 kB / 490.3 MB, free: 22.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.3112, allocations: 16.38 kB / 490.3 MB, free: 22.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01228/0.3235, allocations: 7.12 MB / 497.4 MB, free: 20.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002227/0.3238, allocations: 83.61 kB / 497.5 MB, free: 20.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004051/0.3242, allocations: 204.9 kB / 497.7 MB, free: 20.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01294/0.3371, allocations: 4.399 MB / 0.4903 GB, free: 18.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.3372, allocations: 5.531 kB / 0.4903 GB, free: 18.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3372, allocations: 0 / 0.4903 GB, free: 18.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.597e-05/0.3372, allocations: 3.938 kB / 0.4903 GB, free: 18.81 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005045/0.3423, allocations: 1.221 MB / 0.4915 GB, free: 18.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.3423, allocations: 10.25 kB / 0.4915 GB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.634e-05/0.3424, allocations: 67.47 kB / 0.4916 GB, free: 17.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/0.3443, allocations: 218.1 kB / 0.4918 GB, free: 17.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005078/0.3448, allocations: 368.5 kB / 0.4922 GB, free: 17.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.52e-05/0.3448, allocations: 23.36 kB / 0.4922 GB, free: 17.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.481e-05/0.3449, allocations: 32.09 kB / 0.4922 GB, free: 17.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.3465, allocations: 0.5832 MB / 0.4928 GB, free: 17.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.3465, allocations: 1.125 kB / 0.4928 GB, free: 17.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.32e-05/0.3465, allocations: 12.92 kB / 0.4928 GB, free: 17.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.3466, allocations: 7.594 kB / 0.4928 GB, free: 17.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.348, allocations: 0.526 MB / 0.4933 GB, free: 17.2 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.002574/0.3506, allocations: 2.63 MB / 0.4959 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.3521, allocations: 458.4 kB / 0.4963 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003988/0.3525, allocations: 191.5 kB / 0.4965 GB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04447/0.397, allocations: 24.2 MB / 0.5201 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.732e-05/0.3971, allocations: 36.84 kB / 0.5202 GB, free: 11.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 4.989e-06/0.3971, allocations: 0 / 0.5202 GB, free: 11.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003011/0.4001, allocations: 0.7906 MB / 0.521 GB, free: 11.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.424e-05/0.4002, allocations: 111.2 kB / 0.5211 GB, free: 10.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000495/0.4007, allocations: 313.2 kB / 0.5214 GB, free: 10.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.907e-05/0.4008, allocations: 33.05 kB / 0.5214 GB, free: 10.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/0.401, allocations: 206 kB / 0.5216 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.681e-05/0.4011, allocations: 82.42 kB / 0.5217 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.4012, allocations: 71.31 kB / 0.5217 GB, free: 10.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.4014, allocations: 347.4 kB / 0.5221 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.4018, allocations: 135.4 kB / 0.5222 GB, free: 9.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004475/0.4022, allocations: 227.5 kB / 0.5224 GB, free: 9.777 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008131/0.403, allocations: 361.3 kB / 0.5228 GB, free: 9.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.403, allocations: 7.938 kB / 0.5228 GB, free: 9.387 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001018/0.4041, allocations: 413.7 kB / 0.5232 GB, free: 8.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.4041, allocations: 11.98 kB / 0.5232 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.4041, allocations: 0 / 0.5232 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.4041, allocations: 8.438 kB / 0.5232 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003167/0.4045, allocations: 84.2 kB / 0.5233 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.4045, allocations: 7.938 kB / 0.5233 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004055/0.4049, allocations: 59.58 kB / 0.5233 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.875e-05/0.405, allocations: 16.61 kB / 0.5233 GB, free: 8.793 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.000214/0.4052, allocations: 169.7 kB / 0.5235 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.4053, allocations: 35.53 kB / 0.5235 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002507/0.4078, allocations: 1.893 MB / 0.5254 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/0.4079, allocations: 35.83 kB / 0.5254 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.4079, allocations: 4 kB / 0.5254 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.4079, allocations: 7.109 kB / 0.5254 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.409, allocations: 1.01 MB / 0.5264 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.4091, allocations: 0 / 0.5264 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002948/0.4094, allocations: 71.94 kB / 0.5265 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.4094, allocations: 0 / 0.5265 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.4094, allocations: 8 kB / 0.5265 GB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.4094, allocations: 7.938 kB / 0.5265 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4094, allocations: 0 / 0.5265 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.4108, allocations: 1.086 MB / 0.5276 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.411, allocations: 163.9 kB / 0.5277 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.448e-05/0.4111, allocations: 19.75 kB / 0.5277 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003012/0.4114, allocations: 43.84 kB / 0.5278 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.694e-05/0.4115, allocations: 27.95 kB / 0.5278 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/0.4115, allocations: 12 kB / 0.5278 GB, free: 4.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003259/0.4118, allocations: 331.1 kB / 0.5281 GB, free: 3.785 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4118, allocations: 0 / 0.5281 GB, free: 3.785 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004676/0.4165, allocations: 0.9915 MB / 0.5291 GB, free: 2.793 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: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.0101/0.4266, allocations: 2.708 MB / 0.5317 GB, free: 68 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001319/0.428, allocations: 0.5987 MB / 0.5323 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.428, allocations: 0 / 0.5323 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007132/0.4287, allocations: 0.509 MB / 0.5328 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.43, allocations: 206 kB / 0.533 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.4402, allocations: 5.338 MB / 0.5382 GB, free: 9.285 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.4407, allocations: 0.956 MB / 0.5392 GB, free: 8.301 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005338/0.4412, allocations: 277.7 kB / 0.5394 GB, free: 8.035 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/0.4416, allocations: 255.3 kB / 0.5397 GB, free: 7.785 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4416, allocations: 0 / 0.5397 GB, free: 7.785 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0737/0.5153, allocations: 45.78 MB / 0.5844 GB, free: 9.984 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002509/0.5156, allocations: 259 kB / 0.5846 GB, free: 9.727 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.852/4.368, allocations: 4 kB / 0.5846 GB, free: 9.723 MB / 462.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches