Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001819/0.001819, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 215.3 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.402/1.402, allocations: 230.6 MB / 257.5 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 47.92 kB / 377.7 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2595, allocations: 53.37 MB / 431.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002796/0.2623, allocations: 1.656 MB / 432.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008965/0.2632, allocations: 0.5571 MB / 433.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.502e-05/0.2632, allocations: 0 / 433.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.21e-05/0.2633, allocations: 11.92 kB / 433.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.838e-05/0.2634, allocations: 31.7 kB / 433.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001905/0.2636, allocations: 31.91 kB / 433.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.2637, allocations: 99.52 kB / 433.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.2638, allocations: 35.91 kB / 433.5 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.761e-05/0.2639, allocations: 31.94 kB / 433.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.939e-05/0.264, allocations: 35.84 kB / 433.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.264, allocations: 12 kB / 433.6 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.77e-05/0.264, allocations: 16 kB / 433.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.452e-05/0.2641, allocations: 19.92 kB / 433.7 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.005e-05/0.2641, allocations: 43.84 kB / 433.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.2643, allocations: 100 kB / 433.8 MB, free: 4.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2643, allocations: 0 / 433.8 MB, free: 4.203 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2643, allocations: 3.938 kB / 433.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.2643, allocations: 0 / 433.8 MB, free: 4.199 MB / 334.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.0004498/0.2648, allocations: 306.1 kB / 434.1 MB, free: 3.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2648, allocations: 12.02 kB / 434.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.185e-05/0.2648, allocations: 42.75 kB / 434.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.265, allocations: 12.89 kB / 434.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.2651, allocations: 114.4 kB / 434.3 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.2651, allocations: 8.375 kB / 434.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.2651, allocations: 8.375 kB / 434.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001727/0.2653, allocations: 81.8 kB / 434.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.2653, allocations: 4 kB / 434.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.2653, allocations: 4 kB / 434.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.2653, allocations: 4 kB / 434.4 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.2654, allocations: 51.91 kB / 434.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006554/0.2661, allocations: 371.5 kB / 434.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.2662, allocations: 70.5 kB / 434.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.529e-05/0.2663, allocations: 32.84 kB / 434.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.2663, allocations: 7.984 kB / 434.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.2663, allocations: 34.56 kB / 434.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.2663, allocations: 0 / 434.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002073/0.2665, allocations: 89.55 kB / 435 MB, free: 2.832 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.2666, allocations: 55.41 kB / 435.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.548e-05/0.2666, allocations: 102 kB / 435.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.2667, allocations: 25.7 kB / 435.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.914e-05/0.2667, allocations: 111.9 kB / 435.3 MB, free: 2.512 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.168e-05/0.2668, allocations: 35.88 kB / 435.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.353e-05/0.2668, allocations: 25.72 kB / 435.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.267, allocations: 318.8 kB / 435.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.019e-05/0.267, allocations: 16 kB / 435.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.246e-05/0.2671, allocations: 46.56 kB / 435.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000102/0.2672, allocations: 74.44 kB / 435.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2672, allocations: 4.188 kB / 435.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001581/0.2673, allocations: 101.6 kB / 435.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.2673, allocations: 8 kB / 435.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2673, allocations: 4 kB / 435.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2674, allocations: 3.938 kB / 435.9 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.2675, allocations: 27.98 kB / 436 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.2675, allocations: 4 kB / 436 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.828e-05/0.2675, allocations: 4.062 kB / 436 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.2675, allocations: 4 kB / 436 MB, free: 1.809 MB / 334.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 9.019e-05/0.2676, allocations: 121.8 kB / 436.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.733e-05/0.2677, allocations: 7.953 kB / 436.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.184e-05/0.2677, allocations: 16.3 kB / 436.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.2677, allocations: 0 / 436.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2677, allocations: 0 / 436.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2677, allocations: 0 / 436.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.2679, allocations: 164.6 kB / 436.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2679, allocations: 4 kB / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.763e-05/0.268, allocations: 16 kB / 436.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.268, allocations: 0 / 436.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.268, allocations: 7.938 kB / 436.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.268, allocations: 0 / 436.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.268, allocations: 0 / 436.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002136/0.2682, allocations: 195.4 kB / 436.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.159e-05/0.2682, allocations: 7.984 kB / 436.5 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.2682, allocations: 8 kB / 436.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.017e-05/0.2683, allocations: 4 kB / 436.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.519e-05/0.2683, allocations: 7.984 kB / 436.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.2683, allocations: 0 / 436.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.846e-05/0.2684, allocations: 91.27 kB / 436.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2684, allocations: 0 / 436.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002323/0.2686, allocations: 16 kB / 436.6 MB, free: 1.082 MB / 334.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.0004708/0.2691, allocations: 0.7284 MB / 437.4 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001417/0.2692, allocations: 59.86 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2692, allocations: 0 / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.328e-05/0.2693, allocations: 19.98 kB / 437.4 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.2695, allocations: 11.94 kB / 437.4 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.2711, allocations: 1.559 MB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.2714, allocations: 0.6962 MB / 439.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.989e-05/0.2715, allocations: 11.95 kB / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.794e-05/0.2715, allocations: 23.42 kB / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2715, allocations: 0 / 439.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.3004, allocations: 1.958 MB / 441.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.93, allocations: 8.75 kB / 441.7 MB, free: 12 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 13.212266773916781]