Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_0_0_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.001664/0.001664, allocations: 105.7 kB / 17.32 MB, free: 5.984 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.001897/0.001897, allocations: 193.3 kB / 18.25 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2083/0.2083, allocations: 44.17 MB / 336.2 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 64.44 kB / 408 MB, free: 27.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.103, allocations: 60.84 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03444/0.1375, allocations: 28.22 MB / 497.1 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01679/0.1543, allocations: 13.39 MB / 0.4985 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005176/0.1549, allocations: 11.88 kB / 0.4985 GB, free: 4.852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008319/0.1557, allocations: 226.8 kB / 0.4987 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00972/0.1655, allocations: 3.229 MB / 0.5019 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2208/0.3863, allocations: 2.113 MB / 0.5039 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001242/0.3876, allocations: 0.8961 MB / 0.5048 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003873/0.388, allocations: 244.9 kB / 0.505 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007562/0.3888, allocations: 441.5 kB / 0.5055 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003377/0.3891, allocations: 273.4 kB / 0.5057 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.475e-05/0.3892, allocations: 35.38 kB / 0.5058 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01522/0.4044, allocations: 7.123 MB / 0.5127 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002591/0.4047, allocations: 101.2 kB / 0.5128 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005565/0.4053, allocations: 218.7 kB / 0.513 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01148/0.4168, allocations: 4.428 MB / 0.5173 GB, free: 13.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4168, allocations: 1.312 kB / 0.5173 GB, free: 13.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4168, allocations: 0 / 0.5173 GB, free: 13.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.4168, allocations: 0.7188 kB / 0.5173 GB, free: 13.69 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.00415/0.421, allocations: 1.227 MB / 0.5185 GB, free: 12.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.4211, allocations: 10.69 kB / 0.5185 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.082e-05/0.4211, allocations: 66.34 kB / 0.5186 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001756/0.4229, allocations: 215 kB / 0.5188 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004831/0.4234, allocations: 360.5 kB / 0.5192 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.4234, allocations: 28.84 kB / 0.5192 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.332e-05/0.4235, allocations: 27.16 kB / 0.5192 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.425, allocations: 0.5826 MB / 0.5198 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.425, allocations: 2.281 kB / 0.5198 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.149e-05/0.4251, allocations: 13.56 kB / 0.5198 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.4251, allocations: 8.25 kB / 0.5198 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.4266, allocations: 0.5277 MB / 0.5203 GB, free: 12.55 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.002686/0.4293, allocations: 2.632 MB / 0.5229 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/0.4308, allocations: 457.5 kB / 0.5233 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000403/0.4312, allocations: 188.7 kB / 0.5235 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0448/0.476, allocations: 24.21 MB / 0.5471 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.4761, allocations: 35.81 kB / 0.5472 GB, free: 6.168 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.695e-06/0.4761, allocations: 4 kB / 0.5472 GB, free: 6.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002829/0.479, allocations: 0.7871 MB / 0.548 GB, free: 5.523 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.479, allocations: 106.8 kB / 0.5481 GB, free: 5.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003353/0.4794, allocations: 315.2 kB / 0.5484 GB, free: 5.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.673e-05/0.4794, allocations: 32.64 kB / 0.5484 GB, free: 5.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.4796, allocations: 206.2 kB / 0.5486 GB, free: 4.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.825e-05/0.4797, allocations: 85.94 kB / 0.5487 GB, free: 4.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.4798, allocations: 73.41 kB / 0.5487 GB, free: 4.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4799, allocations: 347.1 kB / 0.5491 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/0.4803, allocations: 138.6 kB / 0.5492 GB, free: 4.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.4807, allocations: 229.9 kB / 0.5494 GB, free: 4.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007508/0.4815, allocations: 359.4 kB / 0.5498 GB, free: 3.891 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4815, allocations: 4 kB / 0.5498 GB, free: 3.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009355/0.4824, allocations: 415.3 kB / 0.5502 GB, free: 3.578 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.4824, allocations: 10.97 kB / 0.5502 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4825, allocations: 4 kB / 0.5502 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.4825, allocations: 8.25 kB / 0.5502 GB, free: 3.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/0.4828, allocations: 86.78 kB / 0.5503 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.4829, allocations: 4 kB / 0.5503 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003679/0.4832, allocations: 58.25 kB / 0.5503 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.4833, allocations: 20.42 kB / 0.5503 GB, free: 3.414 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.0001979/0.4835, allocations: 157.5 kB / 0.5505 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.186e-05/0.4836, allocations: 35.09 kB / 0.5505 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002431/0.486, allocations: 1.907 MB / 0.5524 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-05/0.486, allocations: 34.66 kB / 0.5524 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.4861, allocations: 3.938 kB / 0.5524 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4861, allocations: 3.984 kB / 0.5524 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.4871, allocations: 1.012 MB / 0.5534 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.4871, allocations: 0 / 0.5534 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003024/0.4874, allocations: 70.94 kB / 0.5535 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.4875, allocations: 4 kB / 0.5535 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.4875, allocations: 4 kB / 0.5535 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.4875, allocations: 7.938 kB / 0.5535 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4875, allocations: 0 / 0.5535 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.489, allocations: 1.083 MB / 0.5546 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.4891, allocations: 163.9 kB / 0.5547 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.616e-05/0.4892, allocations: 19.75 kB / 0.5547 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003202/0.4896, allocations: 43.89 kB / 0.5548 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.522e-05/0.4897, allocations: 31.95 kB / 0.5548 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.4897, allocations: 12 kB / 0.5548 GB, free: 15.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003445/0.4901, allocations: 323.1 kB / 0.5551 GB, free: 14.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4901, allocations: 0 / 0.5551 GB, free: 14.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003753/0.4938, allocations: 0.9954 MB / 0.5561 GB, free: 14 MB / 414.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.008565/0.5024, allocations: 2.7 MB / 0.5587 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.504, allocations: 0.6135 MB / 0.5593 GB, free: 10.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.504, allocations: 0 / 0.5593 GB, free: 10.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006419/0.5046, allocations: 0.5127 MB / 0.5598 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.5058, allocations: 212.6 kB / 0.56 GB, free: 10.08 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008908/0.5148, allocations: 5.335 MB / 0.5653 GB, free: 4.637 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/0.5152, allocations: 0.956 MB / 0.5662 GB, free: 3.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004697/0.5157, allocations: 283 kB / 0.5665 GB, free: 3.387 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/0.516, allocations: 259.3 kB / 0.5667 GB, free: 3.133 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.516, allocations: 0 / 0.5667 GB, free: 3.133 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07211/0.5882, allocations: 46.24 MB / 0.6119 GB, free: 5.199 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002203/0.5884, allocations: 262.6 kB / 0.6121 GB, free: 4.875 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.14/4.729, allocations: 3.375 kB / 0.6121 GB, free: 4.875 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches