Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01013/0.01013, allocations: 166.5 kB / 15.11 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.6/1.6, allocations: 170.8 MB / 186.6 MB, free: 1.117 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001913/0.001913, allocations: 102.5 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4395/0.4395, allocations: 38.05 MB / 303.7 MB, free: 42.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000527/0.0005269, allocations: 8 kB / 363 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1063, allocations: 48.71 MB / 411.7 MB, free: 4.715 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.814/7.92, allocations: 2.477 GB / 2.879 GB, free: 61.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/7.92, allocations: 81.52 kB / 2.879 GB, free: 61.66 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.109/9.03, allocations: 212.2 MB / 3.086 GB, free: 21.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.625e-06/9.03, allocations: 3.938 kB / 3.086 GB, free: 21.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.162e-05/9.03, allocations: 8 kB / 3.086 GB, free: 21.22 MB / 426.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.005742/9.036, allocations: 1.193 MB / 3.088 GB, free: 19.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/9.036, allocations: 8.031 kB / 3.088 GB, free: 19.97 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/9.036, allocations: 70.53 kB / 3.088 GB, free: 19.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002547/9.038, allocations: 211.3 kB / 3.088 GB, free: 19.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009288/9.039, allocations: 374.8 kB / 3.088 GB, free: 19.28 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.115e-05/9.039, allocations: 28.66 kB / 3.088 GB, free: 19.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.465e-05/9.04, allocations: 29.03 kB / 3.088 GB, free: 19.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/9.042, allocations: 0.5987 MB / 3.089 GB, free: 18.58 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/9.042, allocations: 3.984 kB / 3.089 GB, free: 18.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.345e-05/9.042, allocations: 20.69 kB / 3.089 GB, free: 18.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/9.042, allocations: 8 kB / 3.089 GB, free: 18.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002513/9.045, allocations: 0.5488 MB / 3.089 GB, free: 18 MB / 426.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.003625/9.048, allocations: 2.535 MB / 3.092 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002329/9.051, allocations: 454.2 kB / 3.092 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5258/9.576, allocations: 51.3 MB / 3.142 GB, free: 28.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/9.577, allocations: 41.78 kB / 3.142 GB, free: 28.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 3.907e-06/9.577, allocations: 0 / 3.142 GB, free: 28.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.004173/9.581, allocations: 0.784 MB / 3.143 GB, free: 28.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/9.581, allocations: 106.7 kB / 3.143 GB, free: 28.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003833/9.581, allocations: 259.4 kB / 3.144 GB, free: 28.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/9.581, allocations: 28.02 kB / 3.144 GB, free: 28.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/9.581, allocations: 214.9 kB / 3.144 GB, free: 28.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.115e-05/9.582, allocations: 82.77 kB / 3.144 GB, free: 28.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.13e-05/9.582, allocations: 14.31 kB / 3.144 GB, free: 28.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.288e-05/9.582, allocations: 340.7 kB / 3.144 GB, free: 27.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006086/9.582, allocations: 138.2 kB / 3.144 GB, free: 27.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007071/9.583, allocations: 273.6 kB / 3.145 GB, free: 27.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006597/9.584, allocations: 168.2 kB / 3.145 GB, free: 27.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/9.584, allocations: 2.75 kB / 3.145 GB, free: 27.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001595/9.585, allocations: 451.9 kB / 3.145 GB, free: 27.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/9.585, allocations: 6.062 kB / 3.145 GB, free: 27.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/9.585, allocations: 4.969 kB / 3.145 GB, free: 27.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.345e-05/9.585, allocations: 10.98 kB / 3.145 GB, free: 27.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006144/9.586, allocations: 95.17 kB / 3.145 GB, free: 27.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/9.586, allocations: 10.5 kB / 3.145 GB, free: 27.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000549/9.587, allocations: 67.44 kB / 3.145 GB, free: 27.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-05/9.587, allocations: 18.41 kB / 3.145 GB, free: 27.58 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002962/9.587, allocations: 167.7 kB / 3.146 GB, free: 27.47 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.479e-05/9.587, allocations: 30.72 kB / 3.146 GB, free: 27.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003296/9.59, allocations: 1.903 MB / 3.147 GB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.653e-05/9.59, allocations: 33.19 kB / 3.147 GB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/9.59, allocations: 0 / 3.147 GB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/9.59, allocations: 2.766 kB / 3.147 GB, free: 27.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/9.592, allocations: 0.9774 MB / 3.148 GB, free: 27.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/9.592, allocations: 0 / 3.148 GB, free: 27.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005695/9.593, allocations: 78.8 kB / 3.148 GB, free: 27.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/9.593, allocations: 4.469 kB / 3.148 GB, free: 27.01 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.874e-05/9.593, allocations: 10.69 kB / 3.149 GB, free: 27.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/9.593, allocations: 1.125 kB / 3.149 GB, free: 27.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/9.593, allocations: 5.078 kB / 3.149 GB, free: 27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00223/9.595, allocations: 1.07 MB / 3.15 GB, free: 26.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002905/9.595, allocations: 213.2 kB / 3.15 GB, free: 26.64 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.214e-05/9.595, allocations: 5.688 kB / 3.15 GB, free: 26.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005078/9.596, allocations: 41.2 kB / 3.15 GB, free: 26.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/9.596, allocations: 29.27 kB / 3.15 GB, free: 26.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/9.596, allocations: 20.77 kB / 3.15 GB, free: 26.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000412/9.596, allocations: 265.4 kB / 3.15 GB, free: 26.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/9.596, allocations: 0 / 3.15 GB, free: 26.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005159/9.602, allocations: 0.9991 MB / 3.151 GB, free: 26.55 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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01189/9.614, allocations: 2.894 MB / 3.154 GB, free: 25.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001967/9.616, allocations: 0.5933 MB / 3.154 GB, free: 25.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/9.616, allocations: 5.188 kB / 3.154 GB, free: 25.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/9.617, allocations: 0.51 MB / 3.155 GB, free: 25.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/9.618, allocations: 171.4 kB / 3.155 GB, free: 25.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2546/9.873, allocations: 79.79 MB / 3.233 GB, free: 11.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000977/9.874, allocations: 0.9815 MB / 3.234 GB, free: 26.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007264/9.875, allocations: 241.3 kB / 3.234 GB, free: 26.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004099/9.875, allocations: 244.6 kB / 3.234 GB, free: 26.73 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/9.875, allocations: 1.859 kB / 3.234 GB, free: 26.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4122/10.29, allocations: 38.03 MB / 3.272 GB, free: 62.54 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002907/10.29, allocations: 235.3 kB / 3.272 GB, free: 62.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.278/14.57, allocations: 0 / 3.272 GB, free: 62.3 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat