Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007734/0.0007734, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009395/0.0009395, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8823/0.8823, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2536/0.2536, allocations: 34.25 MB / 294.9 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 442.2 MB, free: 1.668 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.612e-05/1.761e-05, allocations: 2.281 kB / 442.2 MB, free: 1.664 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.188/0.188, allocations: 25.75 MB / 467.9 MB, free: 28.36 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.008881/0.1969, allocations: 11.77 MB / 479.7 MB, free: 20.66 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002562/0.1971, allocations: 17.69 kB / 479.7 MB, free: 20.65 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005772/0.1977, allocations: 229.5 kB / 479.9 MB, free: 20.52 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006038/0.2038, allocations: 3.702 MB / 483.6 MB, free: 19.04 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003862/0.2076, allocations: 2.385 MB / 486 MB, free: 17.86 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005682/0.2082, allocations: 0.9123 MB / 486.9 MB, free: 17.4 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000272/0.2085, allocations: 215.3 kB / 487.1 MB, free: 17.3 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005624/0.209, allocations: 0.5407 MB / 487.7 MB, free: 17.07 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.2092, allocations: 234.3 kB / 487.9 MB, free: 17 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.898e-05/0.2093, allocations: 33 kB / 487.9 MB, free: 17 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008366/0.2176, allocations: 6.906 MB / 494.9 MB, free: 15.4 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.2178, allocations: 108.5 kB / 495 MB, free: 15.34 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2179, allocations: 156.8 kB / 495.1 MB, free: 15.28 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007598/0.2255, allocations: 5.546 MB / 0.4889 GB, free: 13.53 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2255, allocations: 4 kB / 0.4889 GB, free: 13.53 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.2255, allocations: 0 / 0.4889 GB, free: 13.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.2256, allocations: 1.156 kB / 0.4889 GB, free: 13.53 MB / 410.7 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.002859/0.2284, allocations: 1.179 MB / 0.4901 GB, free: 12.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2285, allocations: 13.03 kB / 0.4901 GB, free: 12.78 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.045e-05/0.2285, allocations: 69.78 kB / 0.4902 GB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008941/0.2294, allocations: 219.9 kB / 0.4904 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.2298, allocations: 308.4 kB / 0.4907 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.2298, allocations: 26.41 kB / 0.4907 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.276e-05/0.2299, allocations: 30.44 kB / 0.4907 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000986/0.2308, allocations: 0.7292 MB / 0.4914 GB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.2309, allocations: 7.875 kB / 0.4914 GB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.2309, allocations: 17.38 kB / 0.4915 GB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.2309, allocations: 9.5 kB / 0.4915 GB, free: 11.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008413/0.2317, allocations: 0.5244 MB / 0.492 GB, free: 11.69 MB / 410.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.001516/0.2333, allocations: 1.9 MB / 0.4938 GB, free: 10.08 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008772/0.2341, allocations: 445.3 kB / 0.4943 GB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.2344, allocations: 174.6 kB / 0.4944 GB, free: 9.766 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02345/0.2578, allocations: 13.2 MB / 0.5073 GB, free: 3.453 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.2578, allocations: 34.56 kB / 0.5073 GB, free: 3.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.2578, allocations: 3.938 kB / 0.5073 GB, free: 3.406 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001436/0.2593, allocations: 0.7919 MB / 0.5081 GB, free: 2.609 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/0.2593, allocations: 110.8 kB / 0.5082 GB, free: 2.477 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.2595, allocations: 316.4 kB / 0.5085 GB, free: 2.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.2595, allocations: 33.7 kB / 0.5086 GB, free: 2.121 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.2596, allocations: 208.5 kB / 0.5088 GB, free: 1.914 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.253e-05/0.2596, allocations: 87.27 kB / 0.5088 GB, free: 1.828 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-05/0.2597, allocations: 69.64 kB / 0.5089 GB, free: 1.754 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.891e-05/0.2597, allocations: 342.8 kB / 0.5092 GB, free: 1.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.2599, allocations: 140.5 kB / 0.5094 GB, free: 1.273 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002141/0.2601, allocations: 287.7 kB / 0.5096 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003614/0.2605, allocations: 353.4 kB / 0.51 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2605, allocations: 4 kB / 0.51 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004519/0.2609, allocations: 425.2 kB / 0.5104 GB, free: 140 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.261, allocations: 12.06 kB / 0.5104 GB, free: 128 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.261, allocations: 5.125 kB / 0.5104 GB, free: 124 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.261, allocations: 4 kB / 0.5104 GB, free: 120 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.2611, allocations: 79.88 kB / 0.5105 GB, free: 40 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.2611, allocations: 7.938 kB / 0.5105 GB, free: 32 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.2613, allocations: 47.83 kB / 0.5105 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.2613, allocations: 11.94 kB / 0.5106 GB, free: 15.97 MB / 426.7 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.0001307/0.2615, allocations: 169.7 kB / 0.5107 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.323e-05/0.2615, allocations: 31.81 kB / 0.5107 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.263, allocations: 1.99 MB / 0.5127 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/0.263, allocations: 31.89 kB / 0.5127 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.263, allocations: 0 / 0.5127 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.263, allocations: 7.922 kB / 0.5127 GB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006448/0.2637, allocations: 0.9643 MB / 0.5137 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2637, allocations: 0 / 0.5137 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.2638, allocations: 75.88 kB / 0.5137 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.2638, allocations: 0 / 0.5137 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.2638, allocations: 8 kB / 0.5137 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2638, allocations: 3.984 kB / 0.5138 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2638, allocations: 0 / 0.5138 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009101/0.2648, allocations: 1.119 MB / 0.5148 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.118e-05/0.2648, allocations: 91.14 kB / 0.5149 GB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.2649, allocations: 23.84 kB / 0.515 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.265, allocations: 27.95 kB / 0.515 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.089e-05/0.2651, allocations: 47.75 kB / 0.515 GB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.2651, allocations: 8 kB / 0.515 GB, free: 11.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002246/0.2653, allocations: 323.1 kB / 0.5153 GB, free: 10.99 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2653, allocations: 0 / 0.5153 GB, free: 10.99 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003465/0.2688, allocations: 1.014 MB / 0.5163 GB, free: 9.973 MB / 426.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: 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.004219/0.273, allocations: 2.868 MB / 0.5191 GB, free: 7.074 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006419/0.2736, allocations: 0.5988 MB / 0.5197 GB, free: 6.477 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.2736, allocations: 0 / 0.5197 GB, free: 6.477 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003545/0.274, allocations: 417 kB / 0.5201 GB, free: 6.066 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006211/0.2746, allocations: 214.1 kB / 0.5203 GB, free: 5.871 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004861/0.2795, allocations: 4.986 MB / 0.5252 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002046/0.2797, allocations: 370.2 kB / 0.5255 GB, free: 348 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000298/0.28, allocations: 283.3 kB / 0.5258 GB, free: 72 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.2802, allocations: 260.5 kB / 0.5261 GB, free: 15.81 MB / 442.7 MB Notification: Performance of SimCode: time 7.01e-07/0.2802, allocations: 0 / 0.5261 GB, free: 15.81 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05957/0.3397, allocations: 48.06 MB / 0.573 GB, free: 32 kB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.33/8.669, allocations: 8 kB / 0.573 GB, free: 24 kB / 474.7 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --stepSize=0.000599281 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.01242556143552]