Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",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.0008548/0.0008548, allocations: 88.53 kB / 17.35 MB, free: 6.031 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.001039/0.001039, allocations: 174.9 kB / 18.26 MB, free: 5.387 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.248/1.248, allocations: 223.3 MB / 242.3 MB, free: 80 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1823/0.1823, allocations: 44.24 MB / 337.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002841/0.0002841, allocations: 8.234 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.09178, allocations: 61.92 MB / 472.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02686/0.1187, allocations: 28.31 MB / 0.4889 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01525/0.134, allocations: 14.04 MB / 0.5026 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003653/0.1344, allocations: 11.88 kB / 0.5027 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006808/0.135, allocations: 218.8 kB / 0.5029 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2066/0.3417, allocations: 2.919 MB / 0.5057 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005627/0.3473, allocations: 1.978 MB / 0.5076 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00133/0.3486, allocations: 1.138 MB / 0.5088 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003367/0.349, allocations: 214.7 kB / 0.509 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006802/0.3497, allocations: 394.9 kB / 0.5093 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003254/0.35, allocations: 268.4 kB / 0.5096 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.371e-05/0.3501, allocations: 15.56 kB / 0.5096 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01276/0.3628, allocations: 7.128 MB / 0.5166 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.363, allocations: 84.41 kB / 0.5167 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003071/0.3633, allocations: 226 kB / 0.5169 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008418/0.3717, allocations: 4.38 MB / 0.5211 GB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3718, allocations: 0 / 0.5211 GB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3718, allocations: 2.625 kB / 0.5211 GB, free: 12.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.3718, allocations: 2.625 kB / 0.5212 GB, free: 12.66 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.00305/0.3748, allocations: 1.171 MB / 0.5223 GB, free: 11.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.3749, allocations: 16.91 kB / 0.5223 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.349e-05/0.375, allocations: 65.16 kB / 0.5224 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001572/0.3765, allocations: 222.9 kB / 0.5226 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003629/0.3769, allocations: 367.7 kB / 0.5229 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.377, allocations: 24.06 kB / 0.523 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.22e-05/0.377, allocations: 30.84 kB / 0.523 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.3784, allocations: 0.6159 MB / 0.5236 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3785, allocations: 4.156 kB / 0.5236 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.3785, allocations: 17.48 kB / 0.5236 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.3785, allocations: 7.312 kB / 0.5236 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.3801, allocations: 0.5932 MB / 0.5242 GB, free: 11.08 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.002168/0.3823, allocations: 2.64 MB / 0.5268 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.3837, allocations: 0.5007 MB / 0.5273 GB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004302/0.3842, allocations: 217.9 kB / 0.5275 GB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04374/0.4279, allocations: 24.44 MB / 0.5513 GB, free: 3.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.428, allocations: 30.56 kB / 0.5514 GB, free: 3.477 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.305e-06/0.428, allocations: 2.906 kB / 0.5514 GB, free: 3.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002925/0.4309, allocations: 0.8949 MB / 0.5522 GB, free: 2.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.431, allocations: 106.8 kB / 0.5523 GB, free: 2.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003276/0.4313, allocations: 314.2 kB / 0.5526 GB, free: 2.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/0.4314, allocations: 28.52 kB / 0.5527 GB, free: 2.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.4315, allocations: 205 kB / 0.5529 GB, free: 2.164 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.682e-05/0.4316, allocations: 84.88 kB / 0.5529 GB, free: 2.094 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.152e-05/0.4317, allocations: 31.89 kB / 0.553 GB, free: 2.066 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4318, allocations: 348.1 kB / 0.5533 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004421/0.4322, allocations: 175.3 kB / 0.5535 GB, free: 1.602 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000472/0.4327, allocations: 252 kB / 0.5537 GB, free: 1.359 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008688/0.4336, allocations: 420 kB / 0.5541 GB, free: 1.012 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.4336, allocations: 4 kB / 0.5541 GB, free: 1.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001053/0.4347, allocations: 480 kB / 0.5546 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.4347, allocations: 8 kB / 0.5546 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.4347, allocations: 0 / 0.5546 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.4347, allocations: 11.94 kB / 0.5546 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003528/0.4351, allocations: 104.5 kB / 0.5547 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.4351, allocations: 5.969 kB / 0.5547 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.4355, allocations: 67.59 kB / 0.5548 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.4355, allocations: 19.36 kB / 0.5548 GB, free: 460 kB / 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: 4 (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.0001585/0.4357, allocations: 151.7 kB / 0.5549 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/0.4357, allocations: 31.62 kB / 0.555 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002326/0.4381, allocations: 1.985 MB / 0.5569 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.694e-05/0.4381, allocations: 30.89 kB / 0.5569 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4381, allocations: 0 / 0.5569 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4381, allocations: 3.984 kB / 0.5569 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009024/0.439, allocations: 1.009 MB / 0.5579 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.4391, allocations: 2.359 kB / 0.5579 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003395/0.4394, allocations: 94.64 kB / 0.558 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.4394, allocations: 4 kB / 0.558 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.4394, allocations: 7.438 kB / 0.558 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.4395, allocations: 4.688 kB / 0.558 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4395, allocations: 3 kB / 0.558 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.4409, allocations: 1.131 MB / 0.5591 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.4411, allocations: 215.6 kB / 0.5593 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.854e-05/0.4412, allocations: 12 kB / 0.5594 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.4415, allocations: 55.83 kB / 0.5594 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.152e-05/0.4416, allocations: 36.89 kB / 0.5594 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.4416, allocations: 11.98 kB / 0.5595 GB, free: 12.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003358/0.442, allocations: 327 kB / 0.5598 GB, free: 12.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.442, allocations: 1.75 kB / 0.5598 GB, free: 12.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003431/0.4454, allocations: 0.9916 MB / 0.5607 GB, free: 11.46 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: 18 ($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) * 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.006917/0.4523, allocations: 2.753 MB / 0.5634 GB, free: 8.785 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.4535, allocations: 0.6423 MB / 0.5641 GB, free: 8.148 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4536, allocations: 4.062 kB / 0.5641 GB, free: 8.145 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007107/0.4543, allocations: 0.5442 MB / 0.5646 GB, free: 7.609 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.4554, allocations: 210.5 kB / 0.5648 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008136/0.4636, allocations: 5.517 MB / 0.5702 GB, free: 1.789 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/0.4642, allocations: 0.9677 MB / 0.5711 GB, free: 0.793 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004525/0.4647, allocations: 273 kB / 0.5714 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002912/0.465, allocations: 263.3 kB / 0.5716 GB, free: 288 kB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.465, allocations: 4 kB / 0.5716 GB, free: 284 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07206/0.537, allocations: 45.76 MB / 0.6163 GB, free: 2.816 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.5373, allocations: 259.3 kB / 0.6166 GB, free: 2.559 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.089/4.627, allocations: 3.094 kB / 0.6166 GB, free: 2.559 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches