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.Pipes.StaticPipe.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.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.489/2.489, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.626e-05/1.647e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3697, allocations: 54.85 MB / 358.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.227/1.597, allocations: 310.6 MB / 0.653 GB, free: 120.9 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/1.597, allocations: 89.53 kB / 0.6531 GB, free: 120.9 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3555/1.953, allocations: 95.67 MB / 0.7465 GB, free: 63.62 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.904e-06/1.953, allocations: 0 / 0.7465 GB, free: 63.62 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.635e-05/1.953, allocations: 12 kB / 0.7465 GB, free: 63.61 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001949/1.955, allocations: 0.8201 MB / 0.7473 GB, free: 62.73 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/1.955, allocations: 8.031 kB / 0.7474 GB, free: 62.73 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003241/1.955, allocations: 59.42 kB / 0.7474 GB, free: 62.67 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/1.957, allocations: 487.6 kB / 0.7479 GB, free: 62.15 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/1.957, allocations: 8 kB / 0.7479 GB, free: 62.14 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/1.957, allocations: 20 kB / 0.7479 GB, free: 62.12 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008609/1.958, allocations: 385.2 kB / 0.7483 GB, free: 61.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008812/1.958, allocations: 475.6 kB / 0.7487 GB, free: 61.24 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/1.959, allocations: 3.938 kB / 0.7487 GB, free: 61.24 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.079e-05/1.959, allocations: 0 / 0.7487 GB, free: 61.24 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.814e-05/1.959, allocations: 28.55 kB / 0.7488 GB, free: 61.21 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004151/1.963, allocations: 2.198 MB / 0.7509 GB, free: 58.88 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/1.963, allocations: 188.2 kB / 0.7511 GB, free: 58.68 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/1.964, allocations: 117 kB / 0.7512 GB, free: 58.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00158/1.965, allocations: 1.045 MB / 0.7522 GB, free: 57.4 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/1.965, allocations: 141.1 kB / 0.7523 GB, free: 57.25 MB / 474.7 MB Notification: Performance of pre-optimization done (n=15): time 2.645e-06/1.965, allocations: 0 / 0.7523 GB, free: 57.25 MB / 474.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007717/1.966, allocations: 213 kB / 0.7526 GB, free: 57.03 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/1.966, allocations: 166.2 kB / 0.7527 GB, free: 56.83 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005557/1.967, allocations: 381 kB / 0.7531 GB, free: 56.45 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/1.967, allocations: 29.7 kB / 0.7531 GB, free: 56.42 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/1.967, allocations: 353.6 kB / 0.7534 GB, free: 56.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.83e-05/1.967, allocations: 43.45 kB / 0.7535 GB, free: 56.02 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.468e-05/1.967, allocations: 0 / 0.7535 GB, free: 56.02 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.206e-05/1.967, allocations: 330.8 kB / 0.7538 GB, free: 55.69 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/1.968, allocations: 100.8 kB / 0.7539 GB, free: 55.59 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003331/1.968, allocations: 321.4 kB / 0.7542 GB, free: 55.18 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005035/1.973, allocations: 0.6158 MB / 0.7548 GB, free: 54.56 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/1.973, allocations: 0 / 0.7548 GB, free: 54.56 MB / 474.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.005834/1.979, allocations: 0.8426 MB / 0.7556 GB, free: 53.71 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007105/1.98, allocations: 2.833 MB / 0.7584 GB, free: 50.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/1.98, allocations: 8 kB / 0.7584 GB, free: 50.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.624e-05/1.98, allocations: 12 kB / 0.7584 GB, free: 50.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000692/1.98, allocations: 83.83 kB / 0.7585 GB, free: 50.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/1.98, allocations: 8 kB / 0.7585 GB, free: 50.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007011/1.981, allocations: 59.42 kB / 0.7586 GB, free: 50.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.248e-05/1.981, allocations: 27.98 kB / 0.7586 GB, free: 50.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/1.981, allocations: 4 kB / 0.7586 GB, free: 50.46 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005616/1.987, allocations: 0.7951 MB / 0.7594 GB, free: 49.67 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/1.987, allocations: 8 kB / 0.7594 GB, free: 49.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/1.987, allocations: 12 kB / 0.7594 GB, free: 49.65 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005128/1.988, allocations: 83.89 kB / 0.7595 GB, free: 49.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/1.988, allocations: 11.94 kB / 0.7595 GB, free: 49.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000442/1.988, allocations: 44.3 kB / 0.7595 GB, free: 49.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.54e-05/1.988, allocations: 35.98 kB / 0.7595 GB, free: 49.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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.0001986/1.988, allocations: 164.5 kB / 0.7597 GB, free: 49.3 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007435/1.989, allocations: 222.3 kB / 0.7599 GB, free: 49.08 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.812e-05/1.989, allocations: 47.39 kB / 0.76 GB, free: 49.04 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007998/1.99, allocations: 251.7 kB / 0.7602 GB, free: 48.79 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/1.99, allocations: 4 kB / 0.7602 GB, free: 48.79 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/1.99, allocations: 0 / 0.7602 GB, free: 48.79 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/1.99, allocations: 0 / 0.7602 GB, free: 48.79 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004638/1.99, allocations: 334 kB / 0.7605 GB, free: 48.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.99, allocations: 3.953 kB / 0.7605 GB, free: 48.42 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/1.991, allocations: 19.94 kB / 0.7605 GB, free: 48.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/1.991, allocations: 4 kB / 0.7605 GB, free: 48.39 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/1.991, allocations: 4 kB / 0.7606 GB, free: 48.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/1.991, allocations: 3.984 kB / 0.7606 GB, free: 48.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.991, allocations: 0 / 0.7606 GB, free: 48.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006203/1.991, allocations: 268.8 kB / 0.7608 GB, free: 48.11 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/1.991, allocations: 116.6 kB / 0.7609 GB, free: 47.97 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/1.992, allocations: 7.938 kB / 0.7609 GB, free: 47.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003191/1.992, allocations: 12 kB / 0.7609 GB, free: 47.95 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/1.992, allocations: 11.98 kB / 0.761 GB, free: 47.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/1.992, allocations: 11.98 kB / 0.761 GB, free: 47.93 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003823/1.992, allocations: 287 kB / 0.7612 GB, free: 47.65 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.992, allocations: 0 / 0.7612 GB, free: 47.65 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001724/1.994, allocations: 447.2 kB / 0.7617 GB, free: 47.21 MB / 474.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.002203/1.996, allocations: 1.181 MB / 0.7628 GB, free: 46.01 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001072/1.998, allocations: 0.5904 MB / 0.7634 GB, free: 45.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/1.998, allocations: 0 / 0.7634 GB, free: 45.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001872/1.998, allocations: 160.7 kB / 0.7635 GB, free: 45.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/1.999, allocations: 127.3 kB / 0.7637 GB, free: 45.11 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/2.001, allocations: 0.802 MB / 0.7645 GB, free: 44.25 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/2.002, allocations: 0.8425 MB / 0.7653 GB, free: 43.38 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002669/2.002, allocations: 151.4 kB / 0.7654 GB, free: 43.23 MB / 474.7 MB Notification: Performance of SimCode: time 8.92e-07/2.002, allocations: 0 / 0.7654 GB, free: 43.23 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.862/4.864, allocations: 11.46 MB / 0.7766 GB, free: 31.79 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat does not exist to compare? outputFormat=mat