Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01043/0.01044, allocations: 102.6 kB / 15.05 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001148/0.001148, allocations: 171.2 kB / 15.93 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.719/1.719, allocations: 170.9 MB / 187.6 MB, free: 1.004 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2578/0.2578, allocations: 38.08 MB / 265.1 MB, free: 3.977 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000474/0.0004742, allocations: 8 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09363/0.09415, allocations: 48.72 MB / 372.3 MB, free: 12.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.04129/0.1355, allocations: 23.47 MB / 395.8 MB, free: 5.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02232/0.1579, allocations: 11.26 MB / 407 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005601/0.1585, allocations: 15.88 kB / 407 MB, free: 10.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001031/0.1595, allocations: 203.1 kB / 407.2 MB, free: 9.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01231/0.1719, allocations: 2.797 MB / 410 MB, free: 7.016 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008389/0.1803, allocations: 1.866 MB / 411.9 MB, free: 5.145 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001495/0.1818, allocations: 0.5275 MB / 412.4 MB, free: 4.613 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006436/0.1825, allocations: 204.9 kB / 412.6 MB, free: 4.406 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00142/0.184, allocations: 394.6 kB / 413 MB, free: 4.02 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004621/0.1845, allocations: 203.2 kB / 413.2 MB, free: 3.82 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.852e-05/0.1846, allocations: 16 kB / 413.2 MB, free: 3.805 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0201/0.2047, allocations: 6.902 MB / 420.1 MB, free: 12.89 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002132/0.2049, allocations: 71.73 kB / 420.2 MB, free: 12.82 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.2051, allocations: 101.5 kB / 420.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008183/0.2133, allocations: 2.904 MB / 423.2 MB, free: 9.812 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2134, allocations: 4 kB / 423.2 MB, free: 9.809 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.2134, allocations: 0 / 423.2 MB, free: 9.809 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.2134, allocations: 0 / 423.2 MB, free: 9.809 MB / 330.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.0044/0.2178, allocations: 1.146 MB / 424.4 MB, free: 8.613 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.2179, allocations: 8.031 kB / 424.4 MB, free: 8.605 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001633/0.2181, allocations: 70.53 kB / 424.4 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002491/0.2206, allocations: 203.3 kB / 424.6 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009194/0.2216, allocations: 370 kB / 425 MB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.591e-05/0.2217, allocations: 32.61 kB / 425 MB, free: 7.898 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.328e-05/0.2218, allocations: 27.94 kB / 425.1 MB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002577/0.2244, allocations: 0.5979 MB / 425.7 MB, free: 7.234 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.2244, allocations: 3.938 kB / 425.7 MB, free: 7.23 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.04e-05/0.2245, allocations: 16 kB / 425.7 MB, free: 7.215 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.2245, allocations: 8 kB / 425.7 MB, free: 7.207 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002811/0.2274, allocations: 0.5602 MB / 426.2 MB, free: 6.645 MB / 330.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.00453/0.2319, allocations: 2.566 MB / 428.8 MB, free: 3.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00254/0.2345, allocations: 478.1 kB / 429.3 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4506/0.6852, allocations: 51.95 MB / 481.2 MB, free: 19.43 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.36e-05/0.6853, allocations: 42.56 kB / 481.3 MB, free: 19.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.315e-06/0.6853, allocations: 0 / 481.3 MB, free: 19.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.004082/0.6894, allocations: 0.8233 MB / 482.1 MB, free: 18.57 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.6895, allocations: 106.8 kB / 482.2 MB, free: 18.44 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003895/0.6899, allocations: 280 kB / 482.5 MB, free: 18.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.6899, allocations: 33.7 kB / 482.5 MB, free: 18.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.6901, allocations: 215 kB / 482.7 MB, free: 17.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.347e-05/0.6902, allocations: 84.77 kB / 482.8 MB, free: 17.85 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.6902, allocations: 8 kB / 482.8 MB, free: 17.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.124e-05/0.6903, allocations: 342.8 kB / 483.1 MB, free: 17.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006269/0.6909, allocations: 152.5 kB / 483.3 MB, free: 17.35 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006714/0.6916, allocations: 278.4 kB / 483.6 MB, free: 17.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006608/0.6923, allocations: 171.4 kB / 483.7 MB, free: 16.86 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.6923, allocations: 0 / 483.7 MB, free: 16.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00163/0.694, allocations: 484.1 kB / 484.2 MB, free: 16.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.694, allocations: 4 kB / 484.2 MB, free: 16.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.694, allocations: 4 kB / 484.2 MB, free: 16.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.6941, allocations: 8 kB / 484.2 MB, free: 16.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/0.6947, allocations: 96.34 kB / 484.3 MB, free: 16.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.578e-05/0.6947, allocations: 11.94 kB / 484.3 MB, free: 16.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005446/0.6953, allocations: 63.66 kB / 484.4 MB, free: 16.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-05/0.6954, allocations: 20 kB / 484.4 MB, free: 16.19 MB / 330.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.0002715/0.6956, allocations: 162.7 kB / 484.6 MB, free: 16.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.6958, allocations: 33.34 kB / 484.6 MB, free: 15.99 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003405/0.6992, allocations: 1.928 MB / 486.5 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.845e-05/0.6993, allocations: 31.94 kB / 486.6 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.6993, allocations: 4 kB / 486.6 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.6993, allocations: 0 / 486.6 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/0.7006, allocations: 0.9889 MB / 487.5 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.7006, allocations: 0 / 487.5 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005559/0.7012, allocations: 79.88 kB / 487.6 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.285e-06/0.7012, allocations: 8 kB / 487.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.7012, allocations: 11.98 kB / 487.6 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.7013, allocations: 0.5625 kB / 487.6 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.7013, allocations: 0 / 487.6 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.7033, allocations: 1.092 MB / 488.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.7036, allocations: 211.5 kB / 488.9 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.307e-05/0.7037, allocations: 11.94 kB / 489 MB, free: 11.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004943/0.7042, allocations: 42.03 kB / 489 MB, free: 11.51 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.7043, allocations: 31.95 kB / 489 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.574e-05/0.7044, allocations: 12 kB / 489 MB, free: 11.47 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003657/0.7048, allocations: 259.1 kB / 489.3 MB, free: 11.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7048, allocations: 0 / 489.3 MB, free: 11.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003345/0.7081, allocations: 0.9839 MB / 490.3 MB, free: 10.3 MB / 330.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,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.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.009103/0.7173, allocations: 2.7 MB / 493 MB, free: 7.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.7192, allocations: 0.6264 MB / 493.6 MB, free: 7.121 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.7192, allocations: 4 kB / 493.6 MB, free: 7.117 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009888/0.7202, allocations: 0.5097 MB / 494.1 MB, free: 6.609 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/0.7219, allocations: 186.4 kB / 494.3 MB, free: 6.438 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008957/0.7309, allocations: 5.942 MB / 0.4885 GB, free: 436 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006203/0.7315, allocations: 0.9758 MB / 0.4895 GB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008577/0.7324, allocations: 260.8 kB / 0.4897 GB, free: 15.17 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005021/0.733, allocations: 255.3 kB / 0.49 GB, free: 14.92 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.733, allocations: 0 / 0.49 GB, free: 14.92 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1165/0.8495, allocations: 45.11 MB / 0.534 GB, free: 1.898 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000325/0.8499, allocations: 243.5 kB / 0.5342 GB, free: 1.652 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.922/6.772, allocations: 4 kB / 0.5343 GB, free: 1.648 MB / 378.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