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.Machines.TestControlledPump.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.Machines.TestControlledPump,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestControlledPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.324/2.324, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.911e-05/1.905e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3423, allocations: 54.86 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.101/8.443, allocations: 2.613 GB / 2.963 GB, free: 127 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/8.443, allocations: 85.61 kB / 2.963 GB, free: 127 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.053/12.5, allocations: 0.751 GB / 3.714 GB, free: 39.04 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.164e-06/12.5, allocations: 0 / 3.714 GB, free: 39.04 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000188/12.5, allocations: 34.39 kB / 3.714 GB, free: 39.03 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: 289 * Number of variables: 289 Notification: Performance of Generate backend data structure: time 0.0136/12.51, allocations: 2.713 MB / 3.717 GB, free: 37.79 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.091e-05/12.51, allocations: 10.41 kB / 3.717 GB, free: 37.79 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008022/12.52, allocations: 0.6481 MB / 3.717 GB, free: 37.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004118/12.52, allocations: 1.009 MB / 3.718 GB, free: 37.36 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/12.52, allocations: 47.38 kB / 3.718 GB, free: 37.36 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003339/12.52, allocations: 63.19 kB / 3.718 GB, free: 37.36 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003593/12.53, allocations: 1.075 MB / 3.72 GB, free: 37.36 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003368/12.53, allocations: 1.298 MB / 3.721 GB, free: 36.96 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.453e-05/12.53, allocations: 7.312 kB / 3.721 GB, free: 36.96 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002031/12.53, allocations: 3.75 kB / 3.721 GB, free: 36.96 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.7e-05/12.53, allocations: 42.11 kB / 3.721 GB, free: 36.96 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.261/12.79, allocations: 73.12 MB / 3.792 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002278/12.79, allocations: 0.7968 MB / 3.793 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00085/12.8, allocations: 413.2 kB / 3.793 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06041/12.86, allocations: 20.2 MB / 3.813 GB, free: 16.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.794e-05/12.86, allocations: 48.66 kB / 3.813 GB, free: 16.59 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=86): time 4.138e-06/12.86, allocations: 0.5625 kB / 3.813 GB, free: 16.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=120): time 0.05135/12.91, allocations: 5.082 MB / 3.818 GB, free: 16.05 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/12.91, allocations: 173.7 kB / 3.818 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/12.91, allocations: 0.7014 MB / 3.819 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003733/12.91, allocations: 25.7 kB / 3.819 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005005/12.91, allocations: 0.6287 MB / 3.82 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005354/12.91, allocations: 403 kB / 3.82 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/12.91, allocations: 0 / 3.82 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001993/12.91, allocations: 369.9 kB / 3.82 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/12.91, allocations: 0.5266 MB / 3.821 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/12.91, allocations: 0.9224 MB / 3.822 GB, free: 14.22 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005961/12.92, allocations: 0.9566 MB / 3.823 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.069e-05/12.92, allocations: 1.656 kB / 3.823 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.009784/12.93, allocations: 2.146 MB / 3.825 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002343/12.93, allocations: 4.62 MB / 3.829 GB, free: 25.22 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-05/12.93, allocations: 10.94 kB / 3.829 GB, free: 25.22 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004568/12.94, allocations: 0.8339 MB / 3.83 GB, free: 25.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/12.94, allocations: 365.4 kB / 3.831 GB, free: 25.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008439/12.95, allocations: 3.404 MB / 3.834 GB, free: 23.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003646/12.95, allocations: 225.7 kB / 3.834 GB, free: 23.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003808/12.95, allocations: 89.09 kB / 3.834 GB, free: 23.02 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/12.95, allocations: 4.75 kB / 3.834 GB, free: 23.02 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006546/12.96, allocations: 1.457 MB / 3.836 GB, free: 22.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.656e-05/12.96, allocations: 15 kB / 3.836 GB, free: 22.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.195e-05/12.96, allocations: 19.53 kB / 3.836 GB, free: 22.98 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006104/12.96, allocations: 0.6227 MB / 3.836 GB, free: 22.97 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.971e-05/12.96, allocations: 27.56 kB / 3.836 GB, free: 22.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002727/12.97, allocations: 193.1 kB / 3.836 GB, free: 22.95 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002399/12.97, allocations: 85.8 kB / 3.837 GB, free: 22.95 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pump1.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pump.medium.p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (sink.medium.phase,pump.heatTransfer.states[1].phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase,source.medium.phase,source1.medium.phase,valve1.state_b.phase,valve1.state_a.phase,pump1.monitoring.state_in.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 138 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,3 11,1 7,2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007426/12.97, allocations: 152.3 kB / 3.837 GB, free: 22.83 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008954/12.98, allocations: 1.827 MB / 3.838 GB, free: 22.66 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005548/12.98, allocations: 134.5 kB / 3.839 GB, free: 22.6 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01361/12.99, allocations: 5.904 MB / 3.844 GB, free: 20.31 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/12.99, allocations: 67.89 kB / 3.844 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/12.99, allocations: 0 / 3.844 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.209e-05/12.99, allocations: 9.641 kB / 3.844 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/13.01, allocations: 7.905 MB / 3.852 GB, free: 16.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.484e-05/13.01, allocations: 0 / 3.852 GB, free: 16.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/13.01, allocations: 239.1 kB / 3.852 GB, free: 16.24 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005858/13.02, allocations: 2.281 MB / 3.855 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003201/13.02, allocations: 21.45 kB / 3.855 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008797/13.03, allocations: 4.874 MB / 3.859 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/13.03, allocations: 0 / 3.859 GB, free: 11.34 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/13.04, allocations: 4.114 MB / 3.863 GB, free: 9.027 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/13.04, allocations: 498.8 kB / 3.864 GB, free: 8.676 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004591/13.04, allocations: 0 / 3.864 GB, free: 8.676 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002914/13.04, allocations: 202.3 kB / 3.864 GB, free: 8.531 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004332/13.04, allocations: 117 kB / 3.864 GB, free: 8.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002069/13.04, allocations: 57.44 kB / 3.864 GB, free: 8.445 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001403/13.04, allocations: 0.6161 MB / 3.865 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.72e-07/13.04, allocations: 0 / 3.865 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01109/13.05, allocations: 1.836 MB / 3.867 GB, free: 6.344 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,sink.medium.phase,pump.heatTransfer.states[1].phase,sink1.medium.phase,pump1.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 7,3 16,1 7,2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.02437/13.08, allocations: 6.578 MB / 3.873 GB, free: 1.871 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009874/13.09, allocations: 2.875 MB / 3.876 GB, free: 252 kB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/13.09, allocations: 0 / 3.876 GB, free: 252 kB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.4453/13.53, allocations: 1.912 MB / 3.878 GB, free: 84.09 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005595/13.54, allocations: 0.4991 MB / 3.878 GB, free: 84.09 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/13.56, allocations: 4.089 MB / 3.882 GB, free: 83.33 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/13.56, allocations: 1.543 MB / 3.884 GB, free: 82.59 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00153/13.56, allocations: 0.7773 MB / 3.884 GB, free: 82.59 MB / 0.5417 GB Notification: Performance of SimCode: time 1.653e-06/13.56, allocations: 0 / 3.884 GB, free: 82.59 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.635/18.19, allocations: 88.03 MB / 3.97 GB, free: 78.51 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestControlledPump_res.mat does not exist to compare? outputFormat=mat