Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01255/0.01255, allocations: 368.3 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.844/3.844, allocations: 388.9 MB / 405.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00348/0.00348, allocations: 233.8 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5239/0.5239, allocations: 80.02 MB / 0.5627 GB, free: 19.83 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004443/0.0004445, allocations: 16 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09157/0.09203, allocations: 54.88 MB / 0.6801 GB, free: 41.65 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03169/0.1238, allocations: 26 MB / 0.7055 GB, free: 15.57 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01817/0.142, allocations: 12.39 MB / 0.7176 GB, free: 3.156 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005925/0.1426, allocations: 15.88 kB / 0.7176 GB, free: 3.141 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008169/0.1435, allocations: 186.9 kB / 0.7178 GB, free: 2.957 MB / 346.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.3093/0.4528, allocations: 2.841 MB / 0.7206 GB, free: 14.85 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007219/0.46, allocations: 1.824 MB / 0.7223 GB, free: 14.84 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001722/0.4618, allocations: 0.9853 MB / 0.7233 GB, free: 14.84 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005413/0.4623, allocations: 194.1 kB / 0.7235 GB, free: 14.83 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.4634, allocations: 374.1 kB / 0.7239 GB, free: 14.83 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005232/0.4639, allocations: 250.5 kB / 0.7241 GB, free: 14.83 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.955e-05/0.464, allocations: 15.62 kB / 0.7241 GB, free: 14.83 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01944/0.4835, allocations: 6.819 MB / 0.7308 GB, free: 14.81 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000242/0.4838, allocations: 76.7 kB / 0.7308 GB, free: 14.81 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.484, allocations: 105.6 kB / 0.7309 GB, free: 14.78 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007818/0.4919, allocations: 2.955 MB / 0.7338 GB, free: 14.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.4919, allocations: 3.844 kB / 0.7338 GB, free: 14.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4919, allocations: 0 / 0.7338 GB, free: 14.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.492, allocations: 0 / 0.7338 GB, free: 14.67 MB / 346.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.005114/0.4971, allocations: 1.165 MB / 0.735 GB, free: 13.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.4972, allocations: 7.188 kB / 0.735 GB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002388/0.4996, allocations: 222.5 kB / 0.7352 GB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000675/0.5003, allocations: 366.8 kB / 0.7355 GB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.74e-05/0.5003, allocations: 24.44 kB / 0.7356 GB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-05/0.5004, allocations: 27.97 kB / 0.7356 GB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/0.5026, allocations: 0.601 MB / 0.7362 GB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.5027, allocations: 0 / 0.7362 GB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.13e-05/0.5028, allocations: 18.38 kB / 0.7362 GB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.5028, allocations: 12.86 kB / 0.7362 GB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002497/0.5053, allocations: 0.5639 MB / 0.7368 GB, free: 13.23 MB / 346.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.003529/0.5089, allocations: 2.561 MB / 0.7393 GB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002359/0.5112, allocations: 476.9 kB / 0.7397 GB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006882/0.512, allocations: 202.9 kB / 0.7399 GB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2247/0.7366, allocations: 52.03 MB / 0.7907 GB, free: 8.637 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.7367, allocations: 41.56 kB / 0.7908 GB, free: 8.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.475e-06/0.7367, allocations: 0 / 0.7908 GB, free: 8.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.004342/0.7411, allocations: 0.823 MB / 0.7916 GB, free: 7.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.985e-05/0.7412, allocations: 106.8 kB / 0.7917 GB, free: 7.781 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004472/0.7417, allocations: 283 kB / 0.7919 GB, free: 7.551 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.763e-05/0.7417, allocations: 32.7 kB / 0.792 GB, free: 7.516 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000198/0.7419, allocations: 218.1 kB / 0.7922 GB, free: 7.344 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.7421, allocations: 84.33 kB / 0.7922 GB, free: 7.277 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/0.7421, allocations: 7.25 kB / 0.7923 GB, free: 7.273 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.7423, allocations: 343.7 kB / 0.7926 GB, free: 6.941 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006755/0.743, allocations: 150.9 kB / 0.7927 GB, free: 6.828 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007748/0.7438, allocations: 279.3 kB / 0.793 GB, free: 6.551 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007093/0.7445, allocations: 173 kB / 0.7932 GB, free: 6.434 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.7445, allocations: 0 / 0.7932 GB, free: 6.434 MB / 394.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001731/0.7462, allocations: 476.8 kB / 0.7936 GB, free: 6.074 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.7463, allocations: 8 kB / 0.7936 GB, free: 6.066 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.7463, allocations: 0 / 0.7936 GB, free: 6.066 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/0.7463, allocations: 10.53 kB / 0.7936 GB, free: 6.059 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006779/0.747, allocations: 104.5 kB / 0.7937 GB, free: 5.969 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-05/0.7471, allocations: 7.984 kB / 0.7937 GB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005554/0.7476, allocations: 60.16 kB / 0.7938 GB, free: 5.906 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.642e-05/0.7477, allocations: 25.98 kB / 0.7938 GB, free: 5.887 MB / 394.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.0002754/0.748, allocations: 155.3 kB / 0.794 GB, free: 5.754 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.383e-05/0.7481, allocations: 38.52 kB / 0.794 GB, free: 5.719 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003998/0.7521, allocations: 1.919 MB / 0.7959 GB, free: 4.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.7521, allocations: 2.734 kB / 0.7959 GB, free: 4.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.842e-06/0.7522, allocations: 0 / 0.7959 GB, free: 4.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002853/0.7525, allocations: 214.3 kB / 0.7961 GB, free: 4.215 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.7526, allocations: 10.5 kB / 0.7961 GB, free: 4.211 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006013/0.7532, allocations: 62.98 kB / 0.7962 GB, free: 4.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.7533, allocations: 34.62 kB / 0.7962 GB, free: 4.129 MB / 394.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002465/0.7558, allocations: 1.096 MB / 0.7973 GB, free: 3.328 MB / 394.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002357/0.7582, allocations: 1.163 MB / 0.7984 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001041/0.7593, allocations: 0.5033 MB / 0.7989 GB, free: 2.172 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004458/0.7597, allocations: 259.5 kB / 0.7991 GB, free: 1.965 MB / 394.7 MB Notification: Performance of Backend: time 5.01e-07/0.7597, allocations: 0 / 0.7991 GB, free: 1.965 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0165/0.7762, allocations: 1.675 MB / 0.8008 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of SimCode: time 0.003788/0.7801, allocations: 1.751 MB / 0.8025 GB, free: 14.83 MB / 410.7 MB Notification: Performance of Templates: time 0.09493/0.875, allocations: 42.99 MB / 0.8445 GB, free: 4.027 MB / 442.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[5006]=3.000000 File[5675]=3.400200 " Variables in the reference:time,SourceP1.ports[1].m_flow,SourceP1.ports[1].p,SourceP1.ports[1].h_outflow,V1.port_b.m_flow,V1.port_b.p,V1.port_b.h_outflow,SinkP1.ports[1].m_flow,SinkP1.ports[1].p,SinkP1.ports[1].h_outflow,Opening.y,downstreamPressure.y Variables in the result:Opening.startTime,Opening.startValue,Opening.y,SinkP1.T,SinkP1.X[1],SinkP1.flowDirection,SinkP1.medium.preferredMediumStates,SinkP1.medium.standardOrderComponents,SinkP1.nPorts,SinkP1.p,SinkP1.ports[1].h_outflow,SinkP1.ports[1].m_flow,SinkP1.ports[1].p,SourceP1.T,SourceP1.X[1],SourceP1.flowDirection,SourceP1.medium.preferredMediumStates,SourceP1.medium.standardOrderComponents,SourceP1.nPorts,SourceP1.p,SourceP1.p_in_internal,SourceP1.ports[1].h_outflow,SourceP1.ports[1].m_flow,SourceP1.ports[1].p,V1.allowFlowReversal,V1.dp_nominal,V1.dp_start,V1.k,V1.m_flow,V1.m_flow_nominal,V1.m_flow_small,V1.m_flow_start,V1.opening_min,V1.port_a_exposesState,V1.port_b.h_outflow,V1.port_b.m_flow,V1.port_b.p,V1.port_b_exposesState,V1.showDesignFlowDirection,V1.show_T,V1.show_V_flow,downstreamPressure.duration,downstreamPressure.height,downstreamPressure.offset,downstreamPressure.startTime,downstreamPressure.y,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,time