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.Sources.TestSources.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.322/2.322, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004341/0.0004343, allocations: 16 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3444, allocations: 54.87 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sources.TestSources): time 0.7307/1.075, allocations: 242.7 MB / 0.5976 GB, free: 3.938 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0467/1.122, allocations: 23.51 MB / 0.6206 GB, free: 12.39 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002718/1.125, allocations: 67.44 kB / 0.6206 GB, free: 12.32 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004129/1.129, allocations: 0.8319 MB / 0.6214 GB, free: 11.48 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02187/1.151, allocations: 5.216 MB / 0.6265 GB, free: 6.254 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0256/1.176, allocations: 6.531 MB / 0.6329 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.008003/1.184, allocations: 3.449 MB / 0.6363 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003754/1.188, allocations: 1.579 MB / 0.6378 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01696/1.205, allocations: 4.805 MB / 0.6425 GB, free: 5.828 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005182/1.211, allocations: 1.839 MB / 0.6443 GB, free: 3.984 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0008855/1.211, allocations: 131.9 kB / 0.6444 GB, free: 3.855 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0396/1.251, allocations: 14.51 MB / 0.6586 GB, free: 5.324 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.002392/1.254, allocations: 0.9079 MB / 0.6595 GB, free: 4.414 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001319/1.255, allocations: 0.4888 MB / 0.66 GB, free: 3.918 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.4534/1.708, allocations: 7.552 MB / 0.6673 GB, free: 18.65 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/1.708, allocations: 2.344 kB / 0.6674 GB, free: 18.65 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.705e-06/1.708, allocations: 1.203 kB / 0.6674 GB, free: 18.65 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001305/1.709, allocations: 0 / 0.6674 GB, free: 18.65 MB / 0.5105 GB 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.01695/1.725, allocations: 4.127 MB / 0.6714 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/1.726, allocations: 8.844 kB / 0.6714 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00149/1.727, allocations: 278 kB / 0.6717 GB, free: 16.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002189/1.729, allocations: 287.1 kB / 0.6719 GB, free: 16.38 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004869/1.734, allocations: 1.371 MB / 0.6733 GB, free: 15.99 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/1.735, allocations: 144.2 kB / 0.6734 GB, free: 15.99 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/1.736, allocations: 180.1 kB / 0.6736 GB, free: 15.99 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01158/1.747, allocations: 2.988 MB / 0.6765 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.136e-05/1.747, allocations: 0 / 0.6765 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005964/1.748, allocations: 82.67 kB / 0.6766 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003466/1.748, allocations: 166.4 kB / 0.6767 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/1.759, allocations: 3.281 MB / 0.6799 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0329/1.792, allocations: 11.47 MB / 0.6911 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006402/1.799, allocations: 1.93 MB / 0.693 GB, free: 10.78 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003687/1.802, allocations: 3.494 MB / 0.6964 GB, free: 7.203 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.787e-05/1.803, allocations: 52.25 kB / 0.6965 GB, free: 7.164 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001828/1.804, allocations: 205.3 kB / 0.6967 GB, free: 7.062 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=150): time 8.005e-06/1.804, allocations: 0 / 0.6967 GB, free: 7.062 MB / 0.5105 GB Notification: Performance of matching and sorting (n=150): time 0.01014/1.815, allocations: 2.934 MB / 0.6996 GB, free: 6.684 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/1.815, allocations: 205 kB / 0.6997 GB, free: 6.461 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002962/1.818, allocations: 1.501 MB / 0.7012 GB, free: 6.266 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005755/1.818, allocations: 59.52 kB / 0.7013 GB, free: 6.234 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009769/1.819, allocations: 0.9604 MB / 0.7022 GB, free: 21.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008338/1.82, allocations: 0.5186 MB / 0.7027 GB, free: 21.37 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/1.82, allocations: 50.75 kB / 0.7028 GB, free: 21.36 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002333/1.821, allocations: 394.9 kB / 0.7031 GB, free: 21.05 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002671/1.823, allocations: 0.8803 MB / 0.704 GB, free: 21.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003184/1.827, allocations: 1.604 MB / 0.7056 GB, free: 20.18 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003525/1.83, allocations: 1.282 MB / 0.7068 GB, free: 19.99 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.532e-05/1.83, allocations: 6.344 kB / 0.7068 GB, free: 19.99 MB / 0.5261 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.008824/1.839, allocations: 2.988 MB / 0.7097 GB, free: 19.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006248/1.84, allocations: 0.8665 MB / 0.7106 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/1.84, allocations: 20.03 kB / 0.7106 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004799/1.845, allocations: 0.6701 MB / 0.7113 GB, free: 18.63 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003905/1.849, allocations: 0.5022 MB / 0.7118 GB, free: 18.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/1.851, allocations: 1.513 MB / 0.7132 GB, free: 17.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00372/1.855, allocations: 157.1 kB / 0.7134 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005315/1.855, allocations: 174.1 kB / 0.7135 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/1.855, allocations: 3.094 kB / 0.7135 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008183/1.863, allocations: 2.789 MB / 0.7163 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-05/1.863, allocations: 21.72 kB / 0.7163 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00194/1.865, allocations: 352 kB / 0.7166 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004201/1.87, allocations: 0.5393 MB / 0.7172 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/1.871, allocations: 1.271 MB / 0.7184 GB, free: 16.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002938/1.874, allocations: 136 kB / 0.7185 GB, free: 16.28 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006021/1.875, allocations: 163.1 kB / 0.7187 GB, free: 16.28 MB / 0.5261 GB 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.002131/1.877, allocations: 0.6317 MB / 0.7193 GB, free: 16.07 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006582/1.877, allocations: 185.5 kB / 0.7195 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/1.889, allocations: 3.275 MB / 0.7227 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-05/1.889, allocations: 18.11 kB / 0.7227 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/1.889, allocations: 3.953 kB / 0.7227 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.612e-05/1.89, allocations: 9.719 kB / 0.7227 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02182/1.911, allocations: 4.744 MB / 0.7273 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/1.911, allocations: 4.844 kB / 0.7273 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01187/1.923, allocations: 311.5 kB / 0.7276 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01384/1.937, allocations: 0.5925 MB / 0.7282 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005405/1.938, allocations: 64.98 kB / 0.7283 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006107/1.944, allocations: 1.516 MB / 0.7298 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.029e-05/1.944, allocations: 10.3 kB / 0.7298 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01725/1.961, allocations: 2.363 MB / 0.7321 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001262/1.963, allocations: 301.4 kB / 0.7324 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009475/1.964, allocations: 32.28 kB / 0.7324 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/1.966, allocations: 100.1 kB / 0.7325 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004675/1.967, allocations: 143.8 kB / 0.7326 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003505/1.967, allocations: 112.8 kB / 0.7327 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002476/1.97, allocations: 1.041 MB / 0.7338 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.292e-06/1.97, allocations: 0 / 0.7338 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01115/1.981, allocations: 2.684 MB / 0.7364 GB, free: 12.6 MB / 0.5261 GB 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.01714/1.998, allocations: 5.274 MB / 0.7415 GB, free: 9.816 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01252/2.011, allocations: 4.085 MB / 0.7455 GB, free: 7.195 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.772e-05/2.011, allocations: 4.438 kB / 0.7455 GB, free: 7.191 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003381/2.014, allocations: 1.008 MB / 0.7465 GB, free: 6.637 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007677/2.022, allocations: 0.8597 MB / 0.7473 GB, free: 6.145 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01915/2.041, allocations: 7.141 MB / 0.7543 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001857/2.043, allocations: 1.647 MB / 0.7559 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002914/2.046, allocations: 0.9133 MB / 0.7568 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of SimCode: time 2.224e-06/2.046, allocations: 0 / 0.7568 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.365/6.41, allocations: 84.34 MB / 0.8392 GB, free: 9.867 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat