Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009069/0.0009069, allocations: 194.6 kB / 16.1 MB, free: 5.523 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.5 MB / 243.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007365/0.0007365, allocations: 96.06 kB / 295.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2977/0.2977, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002459/0.0002459, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3011, allocations: 62.96 MB / 0.516 GB, free: 37.33 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve): time 0.02229/0.3234, allocations: 31.6 MB / 0.5468 GB, free: 14.65 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02207/0.3455, allocations: 18.11 MB / 0.5645 GB, free: 2.117 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002501/0.3481, allocations: 68.25 kB / 0.5646 GB, free: 2.078 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002268/0.3504, allocations: 0.5841 MB / 0.5651 GB, free: 1.766 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007434/0.3578, allocations: 2.493 MB / 0.5676 GB, free: 428 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01252/0.3704, allocations: 4.083 MB / 0.5716 GB, free: 13.88 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008377/0.3788, allocations: 5.456 MB / 0.5769 GB, free: 10.65 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002607/0.3814, allocations: 1.128 MB / 0.578 GB, free: 9.801 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003786/0.3852, allocations: 1.475 MB / 0.5794 GB, free: 8.32 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003063/0.3883, allocations: 1.721 MB / 0.5811 GB, free: 6.594 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000364/0.3887, allocations: 96 kB / 0.5812 GB, free: 6.5 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005576/0.3943, allocations: 2.605 MB / 0.5837 GB, free: 3.891 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008181/0.3952, allocations: 0.5802 MB / 0.5843 GB, free: 3.309 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001295/0.3965, allocations: 0.8806 MB / 0.5852 GB, free: 2.418 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00459/0.4011, allocations: 3.005 MB / 0.5881 GB, free: 15.41 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.4011, allocations: 0 / 0.5881 GB, free: 15.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4011, allocations: 0 / 0.5881 GB, free: 15.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.224e-05/0.4011, allocations: 0 / 0.5881 GB, free: 15.41 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.005008/0.4061, allocations: 2.139 MB / 0.5902 GB, free: 13.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.4062, allocations: 8.031 kB / 0.5902 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002778/0.4065, allocations: 181.2 kB / 0.5904 GB, free: 13.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000478/0.407, allocations: 205.8 kB / 0.5906 GB, free: 12.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001741/0.4087, allocations: 1.122 MB / 0.5917 GB, free: 11.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/0.4089, allocations: 179.2 kB / 0.5918 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002017/0.4091, allocations: 119.9 kB / 0.592 GB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002996/0.4121, allocations: 1.923 MB / 0.5938 GB, free: 9.324 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.4121, allocations: 0 / 0.5938 GB, free: 9.324 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.4123, allocations: 51.95 kB / 0.5939 GB, free: 9.273 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001469/0.4124, allocations: 122.1 kB / 0.594 GB, free: 9.152 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003018/0.4155, allocations: 1.945 MB / 0.5959 GB, free: 7.199 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.01186/0.4273, allocations: 7.319 MB / 0.603 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002041/0.4294, allocations: 1.391 MB / 0.6044 GB, free: 14.12 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.4307, allocations: 0.8502 MB / 0.6052 GB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006079/0.4367, allocations: 4.541 MB / 0.6097 GB, free: 8.309 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.172e-05/0.4368, allocations: 51.56 kB / 0.6097 GB, free: 8.25 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000835/0.4377, allocations: 214.6 kB / 0.6099 GB, free: 8.039 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 2.926e-06/0.4377, allocations: 0 / 0.6099 GB, free: 8.039 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.01859/0.4563, allocations: 6.671 MB / 0.6164 GB, free: 1.305 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.4564, allocations: 218.9 kB / 0.6166 GB, free: 1.039 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/0.4581, allocations: 1.363 MB / 0.618 GB, free: 15.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001401/0.4583, allocations: 53.7 kB / 0.618 GB, free: 15.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000482/0.4588, allocations: 0.6612 MB / 0.6187 GB, free: 14.94 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003543/0.4591, allocations: 469.3 kB / 0.6191 GB, free: 14.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.4593, allocations: 32 kB / 0.6192 GB, free: 14.44 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4594, allocations: 373.8 kB / 0.6195 GB, free: 14.07 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.4607, allocations: 0.8081 MB / 0.6203 GB, free: 13.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001531/0.4623, allocations: 1.158 MB / 0.6214 GB, free: 11.97 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002779/0.4651, allocations: 1.925 MB / 0.6233 GB, free: 9.938 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.4651, allocations: 0 / 0.6233 GB, free: 9.938 MB / 442.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004374/0.4695, allocations: 2.57 MB / 0.6258 GB, free: 7.355 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002441/0.4697, allocations: 344.4 kB / 0.6261 GB, free: 6.906 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/0.4698, allocations: 19.94 kB / 0.6262 GB, free: 6.887 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008828/0.4786, allocations: 1.693 MB / 0.6278 GB, free: 5.191 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.4802, allocations: 335.5 kB / 0.6281 GB, free: 4.863 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002899/0.4831, allocations: 1.77 MB / 0.6299 GB, free: 3.066 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.4848, allocations: 99.78 kB / 0.63 GB, free: 2.969 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/0.485, allocations: 79.95 kB / 0.63 GB, free: 2.891 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.337e-06/0.485, allocations: 4 kB / 0.63 GB, free: 2.887 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003855/0.4889, allocations: 2.261 MB / 0.6322 GB, free: 0.6211 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.4889, allocations: 15.88 kB / 0.6323 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005129/0.494, allocations: 1.067 MB / 0.6333 GB, free: 15.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.4956, allocations: 351.5 kB / 0.6336 GB, free: 15.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/0.4978, allocations: 1.47 MB / 0.6351 GB, free: 13.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.4995, allocations: 103.8 kB / 0.6352 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/0.4997, allocations: 71.97 kB / 0.6352 GB, free: 13.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 24} Notification: Performance of prepare postOptimizeDAE: time 0.0009838/0.5007, allocations: 493.1 kB / 0.6357 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003369/0.5011, allocations: 165.9 kB / 0.6359 GB, free: 12.87 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004519/0.5056, allocations: 2.561 MB / 0.6384 GB, free: 10.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.793e-05/0.5056, allocations: 16 kB / 0.6384 GB, free: 10.29 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.5057, allocations: 3.938 kB / 0.6384 GB, free: 10.28 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/0.5057, allocations: 7.969 kB / 0.6384 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006568/0.5123, allocations: 4.203 MB / 0.6425 GB, free: 6.008 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/0.5123, allocations: 0 / 0.6425 GB, free: 6.008 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.5133, allocations: 231.7 kB / 0.6427 GB, free: 5.781 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004996/0.5184, allocations: 1.314 MB / 0.644 GB, free: 4.461 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001696/0.5185, allocations: 47.97 kB / 0.6441 GB, free: 4.414 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002497/0.521, allocations: 1.792 MB / 0.6458 GB, free: 2.594 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.5211, allocations: 7.938 kB / 0.6458 GB, free: 2.586 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005408/0.5265, allocations: 3.466 MB / 0.6492 GB, free: 15.09 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009254/0.5274, allocations: 466.6 kB / 0.6496 GB, free: 14.62 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.5276, allocations: 31.98 kB / 0.6497 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.5287, allocations: 99.81 kB / 0.6498 GB, free: 14.49 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003099/0.5291, allocations: 125.1 kB / 0.6499 GB, free: 14.37 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/0.5292, allocations: 56.06 kB / 0.6499 GB, free: 14.31 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001324/0.5305, allocations: 0.9147 MB / 0.6508 GB, free: 13.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5305, allocations: 4 kB / 0.6508 GB, free: 13.39 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003117/0.5337, allocations: 1.324 MB / 0.6521 GB, free: 12.07 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T,valveDelayed.filter.x[1],valveDelayed.filter.x[2]) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.007235/0.5409, allocations: 4.905 MB / 0.6569 GB, free: 7.133 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00619/0.5471, allocations: 3.251 MB / 0.6601 GB, free: 3.875 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.5472, allocations: 192 / 0.6601 GB, free: 3.875 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.549, allocations: 1.047 MB / 0.6611 GB, free: 2.828 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003378/0.5524, allocations: 0.7142 MB / 0.6618 GB, free: 2.125 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01867/0.5711, allocations: 12.41 MB / 0.6739 GB, free: 5.105 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009205/0.5721, allocations: 1.379 MB / 0.6753 GB, free: 3.695 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/0.5731, allocations: 0.6477 MB / 0.6759 GB, free: 3.047 MB / 490.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5731, allocations: 0 / 0.6759 GB, free: 3.047 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.417/6.99, allocations: 43.84 MB / 0.7187 GB, free: 119.7 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestDelayedValve/TestDelayedValve.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches