Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001212, allocations: 97.98 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.299/1.299, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 51.92 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0827/0.08386, allocations: 46.64 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.00264/0.08653, allocations: 1.616 MB / 329 MB, free: 2.734 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007903/0.08734, allocations: 0.5199 MB / 329.5 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.908e-05/0.08741, allocations: 0 / 329.5 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 4.597e-05/0.08747, allocations: 7.922 kB / 329.5 MB, free: 2.199 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.249e-05/0.08755, allocations: 35.64 kB / 329.6 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.08774, allocations: 27.97 kB / 329.6 MB, free: 2.137 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.08787, allocations: 103.5 kB / 329.7 MB, free: 2.035 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.08799, allocations: 39.95 kB / 329.7 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.046e-05/0.08804, allocations: 27.94 kB / 329.8 MB, free: 1.969 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.739e-05/0.08812, allocations: 39.84 kB / 329.8 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.08815, allocations: 8 kB / 329.8 MB, free: 1.922 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.624e-05/0.08822, allocations: 12 kB / 329.8 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.368e-05/0.08825, allocations: 27.91 kB / 329.8 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.368e-05/0.08831, allocations: 43.8 kB / 329.9 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.08844, allocations: 104 kB / 330 MB, free: 1.738 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.08845, allocations: 0 / 330 MB, free: 1.738 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08846, allocations: 0 / 330 MB, free: 1.738 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.08847, allocations: 0 / 330 MB, free: 1.738 MB / 270.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.0004378/0.08891, allocations: 383.3 kB / 330.4 MB, free: 1.316 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.08895, allocations: 8.031 kB / 330.4 MB, free: 1.309 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.48e-05/0.08899, allocations: 38.75 kB / 330.4 MB, free: 1.262 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.0891, allocations: 8.844 kB / 330.4 MB, free: 1.254 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.08924, allocations: 188.2 kB / 330.6 MB, free: 1.031 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.08925, allocations: 4.375 kB / 330.6 MB, free: 1.027 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.069e-05/0.0893, allocations: 12.38 kB / 330.6 MB, free: 1.016 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/0.08946, allocations: 85.8 kB / 330.7 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.08948, allocations: 0 / 330.7 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.0895, allocations: 0 / 330.7 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.08951, allocations: 4 kB / 330.7 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.997e-05/0.08961, allocations: 55.91 kB / 330.8 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006045/0.09022, allocations: 404.4 kB / 331.1 MB, free: 432 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.09034, allocations: 70.56 kB / 331.2 MB, free: 352 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.856e-05/0.0904, allocations: 32.84 kB / 331.3 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.948e-06/0.09041, allocations: 0 / 331.3 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.09044, allocations: 38.56 kB / 331.3 MB, free: 268 kB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.09045, allocations: 0 / 331.3 MB, free: 268 kB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0001889/0.09064, allocations: 93.47 kB / 331.4 MB, free: 168 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.09068, allocations: 55.41 kB / 331.4 MB, free: 100 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.589e-05/0.09077, allocations: 105.8 kB / 331.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.09079, allocations: 29.64 kB / 331.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/0.09085, allocations: 112 kB / 331.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.09088, allocations: 31.55 kB / 331.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.09093, allocations: 29.72 kB / 331.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.463e-05/0.09103, allocations: 314.8 kB / 332 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.774e-05/0.09107, allocations: 20 kB / 332.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.139e-05/0.09113, allocations: 46.56 kB / 332.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.536e-05/0.09122, allocations: 70.44 kB / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.09123, allocations: 4 kB / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001464/0.09138, allocations: 97.62 kB / 332.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.0914, allocations: 8 kB / 332.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.09141, allocations: 3.938 kB / 332.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.09143, allocations: 3.938 kB / 332.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.09155, allocations: 23.98 kB / 332.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.09156, allocations: 3.938 kB / 332.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.142e-05/0.09161, allocations: 15.84 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.09162, allocations: 4 kB / 332.3 MB, free: 15.13 MB / 286.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.447e-05/0.0917, allocations: 117.9 kB / 332.5 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.09173, allocations: 7.906 kB / 332.5 MB, free: 15 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.968e-05/0.09177, allocations: 16.31 kB / 332.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.09177, allocations: 0 / 332.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.09178, allocations: 0 / 332.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.09179, allocations: 7.969 kB / 332.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.09197, allocations: 177.7 kB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.09197, allocations: 4 kB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.09208, allocations: 20.23 kB / 332.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.09209, allocations: 4 kB / 332.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.09211, allocations: 7.938 kB / 332.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.09211, allocations: 0 / 332.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.09212, allocations: 3.938 kB / 332.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001869/0.09231, allocations: 195.4 kB / 332.9 MB, free: 14.51 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.09235, allocations: 81.14 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.09238, allocations: 3.938 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.494e-05/0.09244, allocations: 0 / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.126e-05/0.09246, allocations: 16.05 kB / 333 MB, free: 14.39 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.09247, allocations: 0 / 333 MB, free: 14.39 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.198e-05/0.09252, allocations: 79.28 kB / 333.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09252, allocations: 0 / 333.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.09276, allocations: 31.84 kB / 333.1 MB, free: 14.28 MB / 286.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.000379/0.09314, allocations: 0.7168 MB / 333.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001417/0.09329, allocations: 67.84 kB / 333.9 MB, free: 13.47 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.0933, allocations: 0 / 333.9 MB, free: 13.47 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.209e-05/0.09334, allocations: 28 kB / 333.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.09361, allocations: 20.23 kB / 333.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.09496, allocations: 1.524 MB / 335.4 MB, free: 11.8 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.09521, allocations: 0.6963 MB / 336.1 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.366e-05/0.09525, allocations: 7.953 kB / 336.2 MB, free: 11.07 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.135e-05/0.0953, allocations: 23.42 kB / 336.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.0953, allocations: 3.938 kB / 336.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1254/0.2207, allocations: 1.745 MB / 337.9 MB, free: 9.254 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.236/7.457, allocations: 20.41 kB / 337.9 MB, free: 9.234 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/TwoMasses/TwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches