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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001275/0.001275, allocations: 116.9 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001305, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 230.4 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 55.91 kB / 373.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1124, allocations: 53.38 MB / 427 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002994/0.1154, allocations: 1.647 MB / 428.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009047/0.1163, allocations: 0.5417 MB / 429.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.635e-05/0.1164, allocations: 0 / 429.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.882e-05/0.1164, allocations: 11.88 kB / 429.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.868e-05/0.1165, allocations: 27.77 kB / 429.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.1167, allocations: 31.91 kB / 429.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.1169, allocations: 107.5 kB / 429.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.117, allocations: 23.98 kB / 429.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.911e-05/0.1171, allocations: 35.94 kB / 429.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.405e-05/0.1172, allocations: 47.77 kB / 429.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.856e-05/0.1172, allocations: 8 kB / 429.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.672e-05/0.1172, allocations: 12 kB / 429.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.089e-05/0.1173, allocations: 15.98 kB / 429.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.506e-05/0.1173, allocations: 43.8 kB / 429.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.1175, allocations: 103.5 kB / 429.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1175, allocations: 0 / 429.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1175, allocations: 3.938 kB / 429.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1175, allocations: 0 / 429.7 MB, free: 1.93 MB / 350.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.0005237/0.118, allocations: 391.2 kB / 430.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1181, allocations: 8.031 kB / 430.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.891e-05/0.1181, allocations: 4.188 kB / 430.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.588e-05/0.1181, allocations: 34.75 kB / 430.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.1182, allocations: 16.88 kB / 430.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.1184, allocations: 176.3 kB / 430.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.1184, allocations: 8.375 kB / 430.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/0.1184, allocations: 8.375 kB / 430.3 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.1186, allocations: 89.55 kB / 430.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.1186, allocations: 0 / 430.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.1187, allocations: 7.984 kB / 430.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1187, allocations: 7.938 kB / 430.4 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.1188, allocations: 51.97 kB / 430.5 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006856/0.1195, allocations: 400.5 kB / 430.9 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.1196, allocations: 62.56 kB / 430.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.448e-05/0.1197, allocations: 32.84 kB / 431 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.1197, allocations: 0 / 431 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.1197, allocations: 38.5 kB / 431 MB, free: 460 kB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 9.11e-07/0.1197, allocations: 0 / 431 MB, free: 460 kB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002136/0.1199, allocations: 89.77 kB / 431.1 MB, free: 364 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.12, allocations: 55.41 kB / 431.1 MB, free: 296 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.81e-05/0.12, allocations: 110 kB / 431.3 MB, free: 176 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.1201, allocations: 25.7 kB / 431.3 MB, free: 144 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.407e-05/0.1201, allocations: 104 kB / 431.4 MB, free: 36 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.1202, allocations: 31.73 kB / 431.4 MB, free: 4 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.118e-05/0.1202, allocations: 25.8 kB / 431.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1204, allocations: 318.8 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.954e-05/0.1204, allocations: 20 kB / 431.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.295e-05/0.1205, allocations: 53.39 kB / 431.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.858e-05/0.1206, allocations: 66.81 kB / 431.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1206, allocations: 0 / 431.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001584/0.1207, allocations: 113.5 kB / 432 MB, free: 15.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.1208, allocations: 4 kB / 432 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1208, allocations: 8 kB / 432 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1208, allocations: 4 kB / 432 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.1209, allocations: 27.92 kB / 432 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1209, allocations: 0 / 432 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.86e-05/0.1209, allocations: 4 kB / 432 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.121, allocations: 0 / 432 MB, free: 15.33 MB / 366.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 8.286e-05/0.121, allocations: 117.8 kB / 432.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.1211, allocations: 11.89 kB / 432.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.916e-05/0.1211, allocations: 12.31 kB / 432.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1211, allocations: 8 kB / 432.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.1211, allocations: 3.984 kB / 432.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1211, allocations: 0 / 432.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.1213, allocations: 185.5 kB / 432.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1213, allocations: 3.938 kB / 432.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.84e-05/0.1214, allocations: 19.98 kB / 432.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1214, allocations: 0 / 432.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.1214, allocations: 11.94 kB / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1214, allocations: 0 / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1214, allocations: 0 / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002148/0.1216, allocations: 199.5 kB / 432.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.186e-05/0.1217, allocations: 81.06 kB / 432.7 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.1217, allocations: 11.97 kB / 432.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-05/0.1218, allocations: 0 / 432.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.706e-05/0.1218, allocations: 7.922 kB / 432.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.1218, allocations: 4 kB / 432.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.569e-05/0.1218, allocations: 87.22 kB / 432.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1218, allocations: 0 / 432.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002288/0.1221, allocations: 24.06 kB / 432.8 MB, free: 14.47 MB / 366.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.000486/0.1225, allocations: 0.7241 MB / 433.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001536/0.1227, allocations: 55.92 kB / 433.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1227, allocations: 0 / 433.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.742e-05/0.1227, allocations: 28.59 kB / 433.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.123, allocations: 11.98 kB / 433.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.1246, allocations: 1.548 MB / 435.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.1249, allocations: 0.6961 MB / 435.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.186e-05/0.125, allocations: 7.984 kB / 435.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.275e-05/0.125, allocations: 19.44 kB / 435.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.125, allocations: 0 / 435.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.1443, allocations: 1.838 MB / 437.7 MB, free: 9.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.543/7.687, allocations: 23.91 kB / 437.8 MB, free: 9.469 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.143434691010043]