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.001521/0.001521, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.044/2.044, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 90.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2883/0.2883, allocations: 43.49 MB / 359.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.624e-05/3.641e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1261, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.196/1.322, allocations: 351.4 MB / 0.8161 GB, free: 73.54 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/1.322, allocations: 88.11 kB / 0.8162 GB, free: 73.5 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.921/3.243, allocations: 305.8 MB / 1.115 GB, free: 68.54 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.344e-06/3.243, allocations: 0 / 1.115 GB, free: 68.54 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002666/3.244, allocations: 49.27 kB / 1.115 GB, free: 68.53 MB / 0.4948 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.009471/3.253, allocations: 2.058 MB / 1.117 GB, free: 67.65 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/3.253, allocations: 10.84 kB / 1.117 GB, free: 67.65 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000838/3.254, allocations: 180.1 kB / 1.117 GB, free: 67.61 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001254/3.255, allocations: 202.6 kB / 1.117 GB, free: 67.51 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005144/3.261, allocations: 1.269 MB / 1.118 GB, free: 67.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002792/3.261, allocations: 182.1 kB / 1.119 GB, free: 67.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007075/3.262, allocations: 121.8 kB / 1.119 GB, free: 67.09 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005634/3.267, allocations: 1.927 MB / 1.121 GB, free: 66.86 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.248e-05/3.267, allocations: 0 / 1.121 GB, free: 66.86 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003033/3.268, allocations: 47.73 kB / 1.121 GB, free: 66.86 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002857/3.268, allocations: 114.6 kB / 1.121 GB, free: 66.85 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005638/3.274, allocations: 1.893 MB / 1.123 GB, free: 66.84 MB / 0.4948 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.02107/3.295, allocations: 7 MB / 1.129 GB, free: 64.58 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003288/3.298, allocations: 1.314 MB / 1.131 GB, free: 64.55 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001977/3.3, allocations: 0.7857 MB / 1.132 GB, free: 64.54 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01055/3.311, allocations: 4.495 MB / 1.136 GB, free: 62.18 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/3.311, allocations: 49.94 kB / 1.136 GB, free: 62.14 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00178/3.312, allocations: 219 kB / 1.136 GB, free: 62.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=117): time 6.742e-06/3.313, allocations: 0 / 1.136 GB, free: 62.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=132): time 0.01612/3.329, allocations: 4.373 MB / 1.14 GB, free: 61.46 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/3.329, allocations: 225.2 kB / 1.141 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002546/3.331, allocations: 1.186 MB / 1.142 GB, free: 61.04 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005605/3.332, allocations: 49.98 kB / 1.142 GB, free: 61.01 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005286/3.332, allocations: 0.6174 MB / 1.142 GB, free: 60.7 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000719/3.333, allocations: 457.1 kB / 1.143 GB, free: 60.41 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/3.333, allocations: 31.28 kB / 1.143 GB, free: 60.41 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001413/3.334, allocations: 371.6 kB / 1.143 GB, free: 60.1 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/3.336, allocations: 0.7364 MB / 1.144 GB, free: 60.1 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002358/3.338, allocations: 1.056 MB / 1.145 GB, free: 59.77 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/3.34, allocations: 0.8639 MB / 1.146 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.609e-05/3.341, allocations: 11.36 kB / 1.146 GB, free: 59.74 MB / 0.4948 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.006693/3.347, allocations: 2.283 MB / 1.148 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007209/3.348, allocations: 2.974 MB / 1.151 GB, free: 56.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.903e-05/3.348, allocations: 7.75 kB / 1.151 GB, free: 56.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0138/3.362, allocations: 1.469 MB / 1.152 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0028/3.365, allocations: 330.9 kB / 1.153 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004392/3.369, allocations: 1.699 MB / 1.154 GB, free: 55.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003059/3.372, allocations: 103.5 kB / 1.155 GB, free: 55.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004572/3.373, allocations: 78.62 kB / 1.155 GB, free: 55.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/3.373, allocations: 3.312 kB / 1.155 GB, free: 55.98 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005895/3.379, allocations: 2.073 MB / 1.157 GB, free: 55.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.393e-05/3.379, allocations: 11.53 kB / 1.157 GB, free: 55.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009829/3.389, allocations: 1.008 MB / 1.158 GB, free: 55.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002833/3.391, allocations: 352.1 kB / 1.158 GB, free: 55.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003143/3.395, allocations: 1.386 MB / 1.159 GB, free: 55.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002243/3.397, allocations: 105 kB / 1.159 GB, free: 55.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002768/3.397, allocations: 80.19 kB / 1.16 GB, free: 55.38 MB / 0.4948 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.0006084/3.398, allocations: 189 kB / 1.16 GB, free: 55.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005853/3.398, allocations: 172.1 kB / 1.16 GB, free: 55.19 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007497/3.406, allocations: 2.462 MB / 1.162 GB, free: 55.07 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/3.406, allocations: 17.41 kB / 1.162 GB, free: 55.07 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/3.406, allocations: 2.625 kB / 1.162 GB, free: 55.07 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.32e-05/3.406, allocations: 13.38 kB / 1.162 GB, free: 55.07 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/3.417, allocations: 4.014 MB / 1.166 GB, free: 54.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/3.417, allocations: 0 / 1.166 GB, free: 54.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00216/3.419, allocations: 231.4 kB / 1.166 GB, free: 54.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008264/3.427, allocations: 1.234 MB / 1.168 GB, free: 54.66 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000441/3.428, allocations: 43.23 kB / 1.168 GB, free: 54.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003623/3.431, allocations: 1.745 MB / 1.169 GB, free: 54.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/3.431, allocations: 0 / 1.169 GB, free: 54.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008113/3.44, allocations: 3.267 MB / 1.173 GB, free: 53.82 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001664/3.441, allocations: 464.4 kB / 1.173 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005602/3.442, allocations: 26.78 kB / 1.173 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/3.444, allocations: 115.8 kB / 1.173 GB, free: 53.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004404/3.445, allocations: 112.9 kB / 1.173 GB, free: 53.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002294/3.445, allocations: 60.47 kB / 1.173 GB, free: 53.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00188/3.447, allocations: 0.9018 MB / 1.174 GB, free: 53.51 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.61e-07/3.447, allocations: 0 / 1.174 GB, free: 53.51 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006207/3.453, allocations: 1.434 MB / 1.176 GB, free: 53.27 MB / 0.4948 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.01239/3.466, allocations: 4.96 MB / 1.18 GB, free: 51.69 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01228/3.478, allocations: 3.031 MB / 1.183 GB, free: 50.69 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/3.478, allocations: 5.703 kB / 1.183 GB, free: 50.69 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003483/3.481, allocations: 0.9858 MB / 1.184 GB, free: 50.38 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005871/3.487, allocations: 0.697 MB / 1.185 GB, free: 50.23 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/3.5, allocations: 3.626 MB / 1.189 GB, free: 48.84 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/3.501, allocations: 1.41 MB / 1.19 GB, free: 48.08 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001605/3.502, allocations: 0.6523 MB / 1.191 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of SimCode: time 1.313e-06/3.502, allocations: 3.25 kB / 1.191 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.079/7.582, allocations: 48.58 MB / 1.238 GB, free: 26.71 MB / 0.4948 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