Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 221.5 MB / 230.7 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001117, allocations: 108.2 kB / 281.6 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2573/0.2573, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.665e-05/1.667e-05, allocations: 4.219 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1585, allocations: 61.92 MB / 0.4948 GB, free: 1.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.232/1.391, allocations: 351.5 MB / 0.838 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003569/1.391, allocations: 83.23 kB / 0.8381 GB, free: 37.63 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.543/2.934, allocations: 309.4 MB / 1.14 GB, free: 76.26 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.613e-06/2.934, allocations: 0 / 1.14 GB, free: 76.26 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000158/2.934, allocations: 48.75 kB / 1.14 GB, free: 76.25 MB / 0.5105 GB 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.00789/2.942, allocations: 2.069 MB / 1.142 GB, free: 75.31 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/2.942, allocations: 16.67 kB / 1.142 GB, free: 75.31 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001427/2.943, allocations: 197.3 kB / 1.143 GB, free: 75.21 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003266/2.947, allocations: 1.282 MB / 1.144 GB, free: 74.84 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/2.947, allocations: 139.3 kB / 1.144 GB, free: 74.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002394/2.947, allocations: 65.62 kB / 1.144 GB, free: 74.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002849/2.95, allocations: 1.745 MB / 1.146 GB, free: 74.73 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002716/2.953, allocations: 1.756 MB / 1.147 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.538e-05/2.953, allocations: 2.969 kB / 1.147 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001734/2.953, allocations: 0.5156 kB / 1.147 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000178/2.953, allocations: 119 kB / 1.147 GB, free: 74.5 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.01227/2.965, allocations: 6.727 MB / 1.154 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/2.967, allocations: 1.272 MB / 1.155 GB, free: 72.25 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009121/2.968, allocations: 0.7579 MB / 1.156 GB, free: 72.24 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005871/2.974, allocations: 4.395 MB / 1.16 GB, free: 69.89 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.505e-05/2.974, allocations: 49.72 kB / 1.16 GB, free: 69.86 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009963/2.975, allocations: 183.9 kB / 1.161 GB, free: 69.8 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=117): time 4.308e-06/2.975, allocations: 6.625 kB / 1.161 GB, free: 69.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=132): time 0.01578/2.991, allocations: 4.995 MB / 1.165 GB, free: 69.19 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.284e-05/2.991, allocations: 225.5 kB / 1.166 GB, free: 68.94 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/2.992, allocations: 0.8994 MB / 1.167 GB, free: 68.78 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001968/2.992, allocations: 32.55 kB / 1.167 GB, free: 68.75 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000415/2.993, allocations: 0.6754 MB / 1.167 GB, free: 68.46 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003884/2.993, allocations: 436.4 kB / 1.168 GB, free: 68.18 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.926e-05/2.993, allocations: 0 / 1.168 GB, free: 68.18 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001194/2.993, allocations: 369.4 kB / 1.168 GB, free: 67.87 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009661/2.994, allocations: 0.7166 MB / 1.169 GB, free: 67.87 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/2.996, allocations: 1.033 MB / 1.17 GB, free: 67.54 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005235/3.001, allocations: 1.581 MB / 1.171 GB, free: 67.52 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.489e-05/3.001, allocations: 0 / 1.171 GB, free: 67.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.009114/3.01, allocations: 3.002 MB / 1.174 GB, free: 67.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008457/3.011, allocations: 2.979 MB / 1.177 GB, free: 64.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.203e-05/3.011, allocations: 10.98 kB / 1.177 GB, free: 64.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005229/3.016, allocations: 1.126 MB / 1.178 GB, free: 64.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/3.018, allocations: 333.5 kB / 1.179 GB, free: 64.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004822/3.023, allocations: 2.103 MB / 1.181 GB, free: 63.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/3.025, allocations: 71.95 kB / 1.181 GB, free: 63.73 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004022/3.025, allocations: 74.16 kB / 1.181 GB, free: 63.73 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/3.025, allocations: 5.031 kB / 1.181 GB, free: 63.73 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007973/3.033, allocations: 2.589 MB / 1.183 GB, free: 63.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-05/3.033, allocations: 7.75 kB / 1.183 GB, free: 63.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004959/3.038, allocations: 0.9855 MB / 1.184 GB, free: 63.67 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/3.04, allocations: 346.7 kB / 1.185 GB, free: 63.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003364/3.043, allocations: 1.687 MB / 1.186 GB, free: 63.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/3.046, allocations: 86.02 kB / 1.186 GB, free: 63.12 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000456/3.046, allocations: 68.38 kB / 1.186 GB, free: 63.12 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.0008399/3.047, allocations: 142.6 kB / 1.186 GB, free: 63.01 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007041/3.054, allocations: 2.207 MB / 1.189 GB, free: 62.87 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007447/3.055, allocations: 151.8 kB / 1.189 GB, free: 62.79 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007327/3.062, allocations: 2.641 MB / 1.191 GB, free: 62.67 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/3.062, allocations: 21.94 kB / 1.191 GB, free: 62.67 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.72e-05/3.062, allocations: 3.703 kB / 1.191 GB, free: 62.67 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.257e-05/3.062, allocations: 9.094 kB / 1.191 GB, free: 62.67 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/3.073, allocations: 4.071 MB / 1.195 GB, free: 61.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/3.073, allocations: 0 / 1.195 GB, free: 61.37 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/3.074, allocations: 231.7 kB / 1.196 GB, free: 61.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003061/3.077, allocations: 0.9192 MB / 1.196 GB, free: 61.18 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002653/3.078, allocations: 24.11 kB / 1.197 GB, free: 61.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00493/3.083, allocations: 2.099 MB / 1.199 GB, free: 60.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.461e-05/3.083, allocations: 0 / 1.199 GB, free: 60.13 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/3.094, allocations: 3.453 MB / 1.202 GB, free: 58.83 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002101/3.096, allocations: 429 kB / 1.202 GB, free: 58.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008891/3.097, allocations: 9.578 kB / 1.202 GB, free: 58.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00233/3.099, allocations: 80.09 kB / 1.202 GB, free: 58.55 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003791/3.1, allocations: 116.7 kB / 1.203 GB, free: 58.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/3.1, allocations: 61.5 kB / 1.203 GB, free: 58.53 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001535/3.102, allocations: 0.663 MB / 1.203 GB, free: 58.22 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.32e-07/3.102, allocations: 0 / 1.203 GB, free: 58.22 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005577/3.107, allocations: 1.335 MB / 1.205 GB, free: 57.94 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level,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 () * 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 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.01014/3.117, allocations: 5.104 MB / 1.21 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005982/3.123, allocations: 2.965 MB / 1.212 GB, free: 54.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/3.123, allocations: 0 / 1.212 GB, free: 54.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0018/3.125, allocations: 0.9594 MB / 1.213 GB, free: 54.49 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003629/3.129, allocations: 0.617 MB / 1.214 GB, free: 54.21 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008983/3.138, allocations: 3.412 MB / 1.217 GB, free: 51.45 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000869/3.139, allocations: 1.415 MB / 1.219 GB, free: 50.27 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002523/3.141, allocations: 0.6485 MB / 1.219 GB, free: 49.86 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007308/3.142, allocations: 0.6039 MB / 1.22 GB, free: 49.31 MB / 0.5105 GB Notification: Performance of SimCode: time 1.402e-06/3.142, allocations: 0 / 1.22 GB, free: 49.31 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/3.248, allocations: 58.62 MB / 1.277 GB, free: 128 kB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/3.248, allocations: 151.8 kB / 1.277 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.144/7.391, allocations: 4 kB / 1.277 GB, free: 15.93 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat does not exist to compare? outputFormat=mat