Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.496/2.496, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.052e-05/3.052e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3613, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.825/8.186, allocations: 2.607 GB / 2.957 GB, free: 122.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003219/8.187, allocations: 84.62 kB / 2.957 GB, free: 122.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.309/11.5, allocations: 0.5678 GB / 3.525 GB, free: 45.18 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.114e-06/11.5, allocations: 3.75 kB / 3.525 GB, free: 45.18 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001256/11.5, allocations: 36.81 kB / 3.525 GB, free: 45.18 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: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01431/11.51, allocations: 2.561 MB / 3.527 GB, free: 44.15 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/11.51, allocations: 11.48 kB / 3.527 GB, free: 44.15 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009903/11.52, allocations: 0.8672 MB / 3.528 GB, free: 44.07 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003602/11.52, allocations: 1.069 MB / 3.529 GB, free: 43.74 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/11.52, allocations: 48.95 kB / 3.529 GB, free: 43.74 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003547/11.52, allocations: 68 kB / 3.529 GB, free: 43.74 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003732/11.53, allocations: 1.372 MB / 3.53 GB, free: 43.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003195/11.53, allocations: 1.356 MB / 3.532 GB, free: 43.37 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.969e-05/11.53, allocations: 5.297 kB / 3.532 GB, free: 43.37 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001966/11.53, allocations: 3.812 kB / 3.532 GB, free: 43.37 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.771e-05/11.53, allocations: 31.12 kB / 3.532 GB, free: 43.37 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.357/12.89, allocations: 231.2 MB / 3.758 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003194/12.89, allocations: 0.8944 MB / 3.758 GB, free: 50.05 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008553/12.89, allocations: 385.6 kB / 3.759 GB, free: 50.04 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.164/13.06, allocations: 48.04 MB / 3.806 GB, free: 21.29 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.022e-05/13.06, allocations: 42.53 kB / 3.806 GB, free: 21.25 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001395/13.06, allocations: 122.6 kB / 3.806 GB, free: 21.25 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=82): time 5.08e-06/13.06, allocations: 4 kB / 3.806 GB, free: 21.24 MB / 0.5417 GB Notification: Performance of matching and sorting (n=82): time 0.0102/13.07, allocations: 1.988 MB / 3.808 GB, free: 21.14 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.836e-05/13.07, allocations: 192.8 kB / 3.808 GB, free: 20.93 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/13.07, allocations: 0.8196 MB / 3.809 GB, free: 20.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002318/13.07, allocations: 25.7 kB / 3.809 GB, free: 20.74 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005479/13.07, allocations: 0.6828 MB / 3.81 GB, free: 20.4 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003291/13.07, allocations: 282.4 kB / 3.81 GB, free: 20.26 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/13.07, allocations: 1.688 kB / 3.81 GB, free: 20.26 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001144/13.07, allocations: 365.5 kB / 3.81 GB, free: 19.95 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/13.07, allocations: 418 kB / 3.811 GB, free: 19.95 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/13.07, allocations: 0.8378 MB / 3.811 GB, free: 19.44 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006519/13.08, allocations: 0.9628 MB / 3.812 GB, free: 19.41 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.789e-05/13.08, allocations: 7.172 kB / 3.812 GB, free: 19.41 MB / 0.5417 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.009376/13.09, allocations: 1.886 MB / 3.814 GB, free: 19.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002384/13.09, allocations: 4.969 MB / 3.819 GB, free: 30.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.785e-05/13.09, allocations: 14.59 kB / 3.819 GB, free: 30.09 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006629/13.1, allocations: 0.6504 MB / 3.82 GB, free: 30.06 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003345/13.1, allocations: 440.8 kB / 3.82 GB, free: 30.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002922/13.11, allocations: 1.083 MB / 3.821 GB, free: 29.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003618/13.11, allocations: 227.6 kB / 3.821 GB, free: 29.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004109/13.11, allocations: 89.95 kB / 3.821 GB, free: 29.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/13.11, allocations: 3.938 kB / 3.821 GB, free: 29.5 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007643/13.12, allocations: 1.542 MB / 3.823 GB, free: 29.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-05/13.12, allocations: 15.12 kB / 3.823 GB, free: 29.44 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000446/13.12, allocations: 86.67 kB / 3.823 GB, free: 29.43 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003415/13.12, allocations: 478.9 kB / 3.824 GB, free: 29.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00308/13.12, allocations: 1.692 MB / 3.825 GB, free: 28.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002659/13.13, allocations: 178.3 kB / 3.825 GB, free: 28.09 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002657/13.13, allocations: 89.94 kB / 3.825 GB, free: 28.09 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 162 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0005734/13.13, allocations: 155.9 kB / 3.826 GB, free: 27.98 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007035/13.14, allocations: 1.252 MB / 3.827 GB, free: 27.86 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003816/13.14, allocations: 126 kB / 3.827 GB, free: 27.79 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009439/13.15, allocations: 3.693 MB / 3.831 GB, free: 27.47 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.902e-05/13.15, allocations: 39.77 kB / 3.831 GB, free: 27.47 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/13.15, allocations: 0 / 3.831 GB, free: 27.47 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.443e-05/13.15, allocations: 15.91 kB / 3.831 GB, free: 27.46 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003447/13.15, allocations: 1.747 MB / 3.832 GB, free: 27.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/13.15, allocations: 0 / 3.832 GB, free: 27.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/13.15, allocations: 178.3 kB / 3.832 GB, free: 27.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005523/13.16, allocations: 1.817 MB / 3.834 GB, free: 27.13 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002834/13.16, allocations: 15.39 kB / 3.834 GB, free: 27.13 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003438/13.16, allocations: 1.825 MB / 3.836 GB, free: 26.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/13.16, allocations: 0 / 3.836 GB, free: 26.57 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007264/13.17, allocations: 2.456 MB / 3.838 GB, free: 26.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/13.17, allocations: 0.5486 MB / 3.839 GB, free: 25.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004069/13.17, allocations: 7.891 kB / 3.839 GB, free: 25.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001778/13.17, allocations: 97.78 kB / 3.839 GB, free: 25.93 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/13.17, allocations: 75.7 kB / 3.839 GB, free: 25.93 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/13.17, allocations: 38.06 kB / 3.839 GB, free: 25.93 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002005/13.17, allocations: 1.038 MB / 3.84 GB, free: 25.82 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.41e-07/13.17, allocations: 0 / 3.84 GB, free: 25.82 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01043/13.18, allocations: 1.738 MB / 3.842 GB, free: 24.34 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse32.phase,$cse32.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse47.phase,$cse47.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.01972/13.2, allocations: 4.658 MB / 3.846 GB, free: 21.12 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006065/13.21, allocations: 2.108 MB / 3.848 GB, free: 19.85 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/13.21, allocations: 0 / 3.848 GB, free: 19.85 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001842/13.21, allocations: 0.7766 MB / 3.849 GB, free: 19.45 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00519/13.22, allocations: 497 kB / 3.85 GB, free: 19.18 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/13.23, allocations: 3.103 MB / 3.853 GB, free: 16.82 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/13.23, allocations: 1.469 MB / 3.854 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/13.23, allocations: 0.7651 MB / 3.855 GB, free: 15.51 MB / 0.5573 GB Notification: Performance of SimCode: time 1.563e-06/13.23, allocations: 1.875 kB / 3.855 GB, free: 15.51 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.491/17.72, allocations: 59.23 MB / 3.913 GB, free: 102.5 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat