Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001137, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.001251, allocations: 58.31 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.08631, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.00282/0.08917, allocations: 1.633 MB / 359.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009705/0.09017, allocations: 0.557 MB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.842e-05/0.09027, allocations: 0 / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.059e-05/0.09037, allocations: 11.92 kB / 359.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.967e-05/0.09047, allocations: 27.7 kB / 359.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.09071, allocations: 27.97 kB / 359.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001312/0.09085, allocations: 95.53 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.091, allocations: 31.98 kB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.818e-05/0.09107, allocations: 39.86 kB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.767e-05/0.09116, allocations: 43.83 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.09119, allocations: 8 kB / 360 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.219e-05/0.09127, allocations: 12 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.413e-05/0.0913, allocations: 23.92 kB / 360.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.711e-05/0.09135, allocations: 39.86 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.0915, allocations: 99.95 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.09151, allocations: 0 / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.09152, allocations: 0 / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.09153, allocations: 0 / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004531/0.09199, allocations: 383.2 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.09203, allocations: 8.031 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.012e-05/0.09208, allocations: 46.67 kB / 360.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.09221, allocations: 12.84 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.09233, allocations: 176.2 kB / 360.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.09235, allocations: 8.359 kB / 360.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.09238, allocations: 12.38 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001522/0.09254, allocations: 84.2 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.09256, allocations: 0 / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.09258, allocations: 8 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.09259, allocations: 3.938 kB / 360.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.09269, allocations: 55.91 kB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005892/0.09329, allocations: 396.5 kB / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001191/0.09342, allocations: 78.5 kB / 361.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.836e-05/0.09348, allocations: 32.84 kB / 361.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.033e-05/0.0935, allocations: 4 kB / 361.5 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.09352, allocations: 30.56 kB / 361.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.09353, allocations: 0 / 361.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001844/0.09372, allocations: 101.6 kB / 361.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.09375, allocations: 51.41 kB / 361.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.614e-05/0.09383, allocations: 109.8 kB / 361.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.09385, allocations: 25.7 kB / 361.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.109e-05/0.0939, allocations: 103.9 kB / 361.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.09393, allocations: 27.56 kB / 361.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/0.09397, allocations: 29.7 kB / 362 MB, free: 9.371 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.185e-05/0.09406, allocations: 310.8 kB / 362.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.038e-05/0.09411, allocations: 23.98 kB / 362.3 MB, free: 9.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.777e-05/0.09417, allocations: 50.56 kB / 362.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.495e-05/0.09426, allocations: 66.52 kB / 362.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.09427, allocations: 0 / 362.4 MB, free: 8.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001421/0.09442, allocations: 105.5 kB / 362.5 MB, free: 8.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.09444, allocations: 8 kB / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.09445, allocations: 0 / 362.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.09447, allocations: 8 kB / 362.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.09459, allocations: 23.98 kB / 362.6 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.0946, allocations: 4 kB / 362.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.034e-05/0.09465, allocations: 4 kB / 362.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.09466, allocations: 4 kB / 362.6 MB, free: 8.742 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.856e-05/0.09475, allocations: 126.8 kB / 362.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.09478, allocations: 11.91 kB / 362.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.863e-05/0.09481, allocations: 12.31 kB / 362.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.09482, allocations: 4 kB / 362.7 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.09483, allocations: 0 / 362.7 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.09484, allocations: 0 / 362.7 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.09502, allocations: 189.6 kB / 362.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.09503, allocations: 0 / 362.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.09514, allocations: 19.98 kB / 362.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.09515, allocations: 0 / 362.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.09516, allocations: 3.938 kB / 362.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.09517, allocations: 3.938 kB / 362.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.09518, allocations: 0 / 362.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000195/0.09538, allocations: 207.3 kB / 363.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.09542, allocations: 81.14 kB / 363.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.09545, allocations: 4.188 kB / 363.2 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.74e-05/0.09551, allocations: 4 kB / 363.2 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.722e-05/0.09553, allocations: 11.98 kB / 363.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-06/0.09554, allocations: 0 / 363.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.725e-05/0.09558, allocations: 83.28 kB / 363.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09559, allocations: 0 / 363.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000252/0.09585, allocations: 23.91 kB / 363.3 MB, free: 7.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003944/0.09625, allocations: 0.7277 MB / 364.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.09639, allocations: 75.83 kB / 364.1 MB, free: 7.051 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.0964, allocations: 0 / 364.1 MB, free: 7.051 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.177e-05/0.09644, allocations: 20 kB / 364.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000271/0.09672, allocations: 8.188 kB / 364.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.09807, allocations: 1.541 MB / 365.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.09829, allocations: 0.6924 MB / 366.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.278e-05/0.09833, allocations: 3.953 kB / 366.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.09838, allocations: 23.42 kB / 366.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09839, allocations: 4 kB / 366.4 MB, free: 4.645 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.1179, allocations: 1.753 MB / 368.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.139/7.257, allocations: 11.11 kB / 368.2 MB, free: 2.949 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches