Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001414/0.001414, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2/2, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 100 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3008/0.3008, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.278e-05/2.252e-05, allocations: 224 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4132, allocations: 58.85 MB / 477.2 MB, free: 5.156 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8583/1.272, allocations: 350.8 MB / 0.8086 GB, free: 4.52 MB / 491.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/1.272, allocations: 83.58 kB / 0.8086 GB, free: 4.477 MB / 491.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.796/3.068, allocations: 303.8 MB / 1.105 GB, free: 82.41 MB / 0.4952 GB Notification: Performance of FrontEnd: time 2.244e-06/3.068, allocations: 0 / 1.105 GB, free: 82.41 MB / 0.4952 GB Notification: Performance of Transformations before backend: time 0.0002136/3.068, allocations: 48.14 kB / 1.105 GB, free: 82.4 MB / 0.4952 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.009434/3.077, allocations: 2.062 MB / 1.107 GB, free: 81.31 MB / 0.4952 GB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/3.077, allocations: 13.03 kB / 1.107 GB, free: 81.31 MB / 0.4952 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001524/3.079, allocations: 207.1 kB / 1.108 GB, free: 81.22 MB / 0.4952 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005002/3.084, allocations: 1.265 MB / 1.109 GB, free: 80.85 MB / 0.4952 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002679/3.084, allocations: 148.9 kB / 1.109 GB, free: 80.75 MB / 0.4952 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007963/3.085, allocations: 72.23 kB / 1.109 GB, free: 80.75 MB / 0.4952 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004651/3.09, allocations: 1.745 MB / 1.111 GB, free: 80.73 MB / 0.4952 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003976/3.094, allocations: 1.758 MB / 1.112 GB, free: 80.51 MB / 0.4952 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.341e-05/3.094, allocations: 0 / 1.112 GB, free: 80.51 MB / 0.4952 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002246/3.094, allocations: 3.844 kB / 1.112 GB, free: 80.51 MB / 0.4952 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002299/3.094, allocations: 111.7 kB / 1.113 GB, free: 80.5 MB / 0.4952 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.01744/3.112, allocations: 6.722 MB / 1.119 GB, free: 78.3 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002576/3.114, allocations: 1.267 MB / 1.12 GB, free: 78.26 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/3.116, allocations: 0.7591 MB / 1.121 GB, free: 78.25 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00882/3.125, allocations: 4.41 MB / 1.125 GB, free: 75.89 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.217e-05/3.125, allocations: 54.84 kB / 1.125 GB, free: 75.86 MB / 0.4952 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001365/3.126, allocations: 171.7 kB / 1.126 GB, free: 75.8 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=117): time 4.879e-06/3.126, allocations: 0 / 1.126 GB, free: 75.8 MB / 0.4952 GB Notification: Performance of matching and sorting (n=132): time 0.02374/3.15, allocations: 5.001 MB / 1.131 GB, free: 74.52 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/3.15, allocations: 222.4 kB / 1.131 GB, free: 74.27 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/3.152, allocations: 0.9023 MB / 1.132 GB, free: 73.87 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0002372/3.152, allocations: 28.92 kB / 1.132 GB, free: 73.84 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004591/3.153, allocations: 0.6567 MB / 1.132 GB, free: 73.27 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004659/3.153, allocations: 439.7 kB / 1.133 GB, free: 72.93 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/3.153, allocations: 0 / 1.133 GB, free: 72.93 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0001216/3.153, allocations: 372.5 kB / 1.133 GB, free: 72.59 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001674/3.155, allocations: 0.7211 MB / 1.134 GB, free: 72.3 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001843/3.157, allocations: 1.028 MB / 1.135 GB, free: 71.67 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01962/3.177, allocations: 2.549 MB / 1.137 GB, free: 71.2 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.226e-05/3.177, allocations: 3.938 kB / 1.137 GB, free: 71.2 MB / 0.4952 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.02396/3.201, allocations: 3.887 MB / 1.141 GB, free: 70.27 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006473/3.201, allocations: 2.968 MB / 1.144 GB, free: 67.13 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-05/3.201, allocations: 11.47 kB / 1.144 GB, free: 67.13 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009907/3.211, allocations: 1.135 MB / 1.145 GB, free: 66.96 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00275/3.214, allocations: 330.8 kB / 1.145 GB, free: 66.95 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007109/3.221, allocations: 2.087 MB / 1.147 GB, free: 65.91 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002697/3.224, allocations: 82.27 kB / 1.147 GB, free: 65.89 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002621/3.224, allocations: 82.02 kB / 1.148 GB, free: 65.88 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/3.224, allocations: 3.594 kB / 1.148 GB, free: 65.88 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02251/3.247, allocations: 3.539 MB / 1.151 GB, free: 65.08 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.112e-05/3.247, allocations: 11.62 kB / 1.151 GB, free: 65.08 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009421/3.256, allocations: 0.9833 MB / 1.152 GB, free: 64.96 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002874/3.259, allocations: 344.8 kB / 1.152 GB, free: 64.93 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005079/3.264, allocations: 1.66 MB / 1.154 GB, free: 64.05 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00237/3.267, allocations: 77.3 kB / 1.154 GB, free: 64.04 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005757/3.268, allocations: 72.08 kB / 1.154 GB, free: 64.02 MB / 0.4952 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.0006805/3.268, allocations: 141 kB / 1.154 GB, free: 63.89 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01039/3.279, allocations: 2.213 MB / 1.156 GB, free: 62.5 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006712/3.279, allocations: 154.2 kB / 1.157 GB, free: 62.34 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01122/3.291, allocations: 2.634 MB / 1.159 GB, free: 60.25 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.129e-05/3.291, allocations: 21.83 kB / 1.159 GB, free: 60.23 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/3.291, allocations: 0 / 1.159 GB, free: 60.23 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-05/3.291, allocations: 6.469 kB / 1.159 GB, free: 60.23 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/3.305, allocations: 4.075 MB / 1.163 GB, free: 57 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/3.305, allocations: 0 / 1.163 GB, free: 57 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002056/3.307, allocations: 228.4 kB / 1.163 GB, free: 56.8 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005047/3.312, allocations: 0.9214 MB / 1.164 GB, free: 56.1 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003856/3.312, allocations: 27.5 kB / 1.164 GB, free: 56.08 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006359/3.319, allocations: 2.091 MB / 1.166 GB, free: 54.24 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/3.319, allocations: 6.375 kB / 1.166 GB, free: 54.24 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/3.33, allocations: 3.453 MB / 1.17 GB, free: 51.23 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/3.331, allocations: 433.2 kB / 1.17 GB, free: 50.86 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003735/3.332, allocations: 10.62 kB / 1.17 GB, free: 50.85 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002111/3.334, allocations: 75.47 kB / 1.17 GB, free: 50.8 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003344/3.334, allocations: 118.9 kB / 1.17 GB, free: 50.73 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/3.334, allocations: 58.83 kB / 1.17 GB, free: 50.68 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.001285/3.336, allocations: 0.6657 MB / 1.171 GB, free: 50.07 MB / 0.4952 GB Notification: Performance of sort global known variables: time 5.21e-07/3.336, allocations: 0 / 1.171 GB, free: 50.07 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.005705/3.341, allocations: 1.335 MB / 1.172 GB, free: 48.77 MB / 0.4952 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.01521/3.357, allocations: 5.104 MB / 1.177 GB, free: 44.2 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.009801/3.367, allocations: 2.93 MB / 1.18 GB, free: 41.27 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/3.367, allocations: 5.625 kB / 1.18 GB, free: 41.26 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.003505/3.37, allocations: 0.9404 MB / 1.181 GB, free: 40.32 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005817/3.376, allocations: 0.6129 MB / 1.182 GB, free: 39.72 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/3.389, allocations: 3.473 MB / 1.185 GB, free: 36.23 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/3.39, allocations: 1.402 MB / 1.186 GB, free: 34.8 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001664/3.392, allocations: 0.6437 MB / 1.187 GB, free: 34.16 MB / 0.4952 GB Notification: Performance of SimCode: time 1.503e-06/3.392, allocations: 0 / 1.187 GB, free: 34.16 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.223/7.615, allocations: 47.31 MB / 1.233 GB, free: 74.26 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat does not exist to compare? outputFormat=mat