Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.305/2.305, allocations: 209.2 MB / 224.8 MB, free: 0.5469 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006213/0.0006214, allocations: 8 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3568, allocations: 48.71 MB / 331.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.7532/1.11, allocations: 242.3 MB / 0.5602 GB, free: 8.605 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.04834/1.158, allocations: 23.39 MB / 0.583 GB, free: 2.621 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003018/1.161, allocations: 68 kB / 0.5831 GB, free: 2.59 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004042/1.166, allocations: 0.8032 MB / 0.5839 GB, free: 1.941 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02287/1.189, allocations: 5.207 MB / 0.5889 GB, free: 12.89 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02737/1.216, allocations: 6.535 MB / 0.5953 GB, free: 6.344 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.008161/1.224, allocations: 3.437 MB / 0.5987 GB, free: 2.898 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003918/1.228, allocations: 1.575 MB / 0.6002 GB, free: 1.305 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01758/1.246, allocations: 4.782 MB / 0.6049 GB, free: 12.51 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005355/1.251, allocations: 1.835 MB / 0.6067 GB, free: 10.67 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00109/1.252, allocations: 135.9 kB / 0.6068 GB, free: 10.54 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0417/1.294, allocations: 14.37 MB / 0.6208 GB, free: 12.15 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002281/1.296, allocations: 0.8884 MB / 0.6217 GB, free: 11.26 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001404/1.298, allocations: 0.5004 MB / 0.6222 GB, free: 10.75 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02324/1.321, allocations: 7.559 MB / 0.6296 GB, free: 3.176 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/1.321, allocations: 0 / 0.6296 GB, free: 3.176 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.446e-06/1.321, allocations: 0 / 0.6296 GB, free: 3.176 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001221/1.321, allocations: 0 / 0.6296 GB, free: 3.176 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.01623/1.337, allocations: 4.123 MB / 0.6336 GB, free: 14.96 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/1.338, allocations: 8.031 kB / 0.6336 GB, free: 14.96 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009784/1.339, allocations: 286.1 kB / 0.6339 GB, free: 14.67 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001371/1.34, allocations: 273.1 kB / 0.6341 GB, free: 14.4 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003967/1.344, allocations: 1.377 MB / 0.6355 GB, free: 12.96 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/1.344, allocations: 147.4 kB / 0.6356 GB, free: 12.82 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005651/1.345, allocations: 180 kB / 0.6358 GB, free: 12.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008531/1.353, allocations: 2.986 MB / 0.6387 GB, free: 9.59 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.349e-05/1.353, allocations: 0 / 0.6387 GB, free: 9.59 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004221/1.354, allocations: 79.97 kB / 0.6388 GB, free: 9.512 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000343/1.354, allocations: 167.6 kB / 0.639 GB, free: 9.348 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009845/1.364, allocations: 3.282 MB / 0.6422 GB, free: 6.062 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3065/1.671, allocations: 11.1 MB / 0.653 GB, free: 202.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007039/1.678, allocations: 1.929 MB / 0.6549 GB, free: 201.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003761/1.682, allocations: 3.493 MB / 0.6583 GB, free: 198.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.75e-05/1.682, allocations: 55.31 kB / 0.6583 GB, free: 198.1 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001665/1.683, allocations: 199.2 kB / 0.6585 GB, free: 198.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=150): time 6.622e-06/1.683, allocations: 0.7812 kB / 0.6585 GB, free: 198.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=150): time 0.0113/1.695, allocations: 2.937 MB / 0.6614 GB, free: 197 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.067e-05/1.695, allocations: 196.5 kB / 0.6616 GB, free: 196.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003136/1.698, allocations: 1.498 MB / 0.6631 GB, free: 196.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005368/1.699, allocations: 60.55 kB / 0.6631 GB, free: 196.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007838/1.699, allocations: 0.9652 MB / 0.6641 GB, free: 195.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008445/1.7, allocations: 0.5152 MB / 0.6646 GB, free: 194.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00026/1.7, allocations: 47.91 kB / 0.6646 GB, free: 194.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/1.701, allocations: 402.2 kB / 0.665 GB, free: 194.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003004/1.704, allocations: 0.8838 MB / 0.6659 GB, free: 194.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003648/1.707, allocations: 1.603 MB / 0.6674 GB, free: 193 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003875/1.711, allocations: 1.283 MB / 0.6687 GB, free: 192.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.826e-05/1.711, allocations: 7.031 kB / 0.6687 GB, free: 192.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.009651/1.721, allocations: 2.996 MB / 0.6716 GB, free: 191.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005812/1.722, allocations: 0.8552 MB / 0.6724 GB, free: 190 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-05/1.722, allocations: 19.72 kB / 0.6725 GB, free: 190 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005004/1.727, allocations: 0.6589 MB / 0.6731 GB, free: 189.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003864/1.731, allocations: 0.5003 MB / 0.6736 GB, free: 189.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/1.733, allocations: 1.522 MB / 0.6751 GB, free: 188.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003632/1.736, allocations: 157.9 kB / 0.6752 GB, free: 188.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007286/1.737, allocations: 166.7 kB / 0.6754 GB, free: 188.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/1.737, allocations: 3.125 kB / 0.6754 GB, free: 188.2 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008357/1.746, allocations: 2.794 MB / 0.6781 GB, free: 186.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.999e-05/1.746, allocations: 19.81 kB / 0.6781 GB, free: 186.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001928/1.748, allocations: 342 kB / 0.6785 GB, free: 186.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004232/1.752, allocations: 0.5452 MB / 0.679 GB, free: 186.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/1.753, allocations: 1.265 MB / 0.6802 GB, free: 185.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002763/1.756, allocations: 141 kB / 0.6804 GB, free: 185.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006377/1.757, allocations: 168.5 kB / 0.6805 GB, free: 185.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (266): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001894/1.759, allocations: 0.6369 MB / 0.6811 GB, free: 184.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006128/1.759, allocations: 185.5 kB / 0.6813 GB, free: 184.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009789/1.769, allocations: 3.272 MB / 0.6845 GB, free: 182.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.81e-05/1.769, allocations: 19.81 kB / 0.6845 GB, free: 182.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/1.769, allocations: 3.938 kB / 0.6845 GB, free: 182.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.617e-05/1.769, allocations: 7.969 kB / 0.6845 GB, free: 182.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01307/1.782, allocations: 4.749 MB / 0.6892 GB, free: 179.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/1.782, allocations: 11.42 kB / 0.6892 GB, free: 179.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002511/1.785, allocations: 306 kB / 0.6895 GB, free: 179.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00429/1.789, allocations: 0.5904 MB / 0.6901 GB, free: 179.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004407/1.79, allocations: 56.94 kB / 0.6901 GB, free: 179.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001681/1.791, allocations: 1.527 MB / 0.6916 GB, free: 178.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/1.791, allocations: 3.438 kB / 0.6916 GB, free: 178.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006353/1.798, allocations: 2.367 MB / 0.6939 GB, free: 176.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008295/1.799, allocations: 305 kB / 0.6942 GB, free: 176.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007489/1.799, allocations: 30.25 kB / 0.6942 GB, free: 176.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002455/1.802, allocations: 103.1 kB / 0.6943 GB, free: 176.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004657/1.802, allocations: 137.9 kB / 0.6945 GB, free: 176.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003311/1.803, allocations: 114.5 kB / 0.6946 GB, free: 176.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00208/1.805, allocations: 1.039 MB / 0.6956 GB, free: 175.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.805, allocations: 0.7656 kB / 0.6956 GB, free: 175.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009797/1.815, allocations: 2.673 MB / 0.6982 GB, free: 173.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01587/1.831, allocations: 5.276 MB / 0.7034 GB, free: 169 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01075/1.841, allocations: 4.086 MB / 0.7074 GB, free: 164.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/1.841, allocations: 448 / 0.7074 GB, free: 164.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002891/1.844, allocations: 0.9986 MB / 0.7083 GB, free: 163.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007269/1.852, allocations: 0.8576 MB / 0.7092 GB, free: 162.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/1.868, allocations: 7.148 MB / 0.7161 GB, free: 155.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001459/1.87, allocations: 1.654 MB / 0.7178 GB, free: 153.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002709/1.873, allocations: 0.9131 MB / 0.7187 GB, free: 152.8 MB / 490.7 MB Notification: Performance of SimCode: time 2.224e-06/1.873, allocations: 0 / 0.7187 GB, free: 152.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.597/6.47, allocations: 84.34 MB / 0.801 GB, free: 68.3 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat