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.001301/0.001301, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2276, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002964/0.2306, allocations: 1.639 MB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009638/0.2316, allocations: 0.5533 MB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.95e-05/0.2317, allocations: 3.938 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.053e-05/0.2317, allocations: 7.922 kB / 410.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.519e-05/0.2318, allocations: 27.72 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002139/0.232, allocations: 31.95 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.2322, allocations: 95.53 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.2323, allocations: 39.97 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.342e-05/0.2324, allocations: 35.86 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.911e-05/0.2325, allocations: 39.84 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.849e-05/0.2325, allocations: 8 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.166e-05/0.2326, allocations: 16 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.2326, allocations: 15.92 kB / 411.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.882e-05/0.2327, allocations: 43.86 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.2329, allocations: 97.38 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2329, allocations: 0 / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2329, allocations: 4 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.2329, allocations: 3.984 kB / 411.4 MB, free: 14.88 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.0004844/0.2334, allocations: 375.3 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.2334, allocations: 11.97 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.693e-05/0.2335, allocations: 42.73 kB / 411.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.2336, allocations: 16.78 kB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.2338, allocations: 168.3 kB / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.2338, allocations: 8.359 kB / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.2338, allocations: 16.28 kB / 412 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.234, allocations: 92.02 kB / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.234, allocations: 0 / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.234, allocations: 0 / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.234, allocations: 7.938 kB / 412.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.2341, allocations: 51.97 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006953/0.2349, allocations: 400.4 kB / 412.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.235, allocations: 74.53 kB / 412.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.177e-05/0.2351, allocations: 28.86 kB / 412.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.488e-06/0.2351, allocations: 0 / 412.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.2351, allocations: 38.55 kB / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.2351, allocations: 0 / 412.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002111/0.2353, allocations: 89.56 kB / 412.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.2354, allocations: 55.41 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.545e-05/0.2355, allocations: 109.8 kB / 412.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.2355, allocations: 29.7 kB / 413 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.151e-05/0.2356, allocations: 103.8 kB / 413.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.2356, allocations: 23.66 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.413e-05/0.2356, allocations: 29.7 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.2357, allocations: 318.8 kB / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.197e-05/0.2358, allocations: 23.98 kB / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.008e-05/0.2359, allocations: 46.56 kB / 413.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.766e-05/0.236, allocations: 66.67 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.236, allocations: 0 / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001538/0.2361, allocations: 109.5 kB / 413.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.2361, allocations: 4 kB / 413.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2362, allocations: 8.062 kB / 413.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2362, allocations: 3.938 kB / 413.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.2363, allocations: 20 kB / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2363, allocations: 3.938 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.437e-05/0.2364, allocations: 11.91 kB / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.2364, allocations: 8.234 kB / 413.7 MB, free: 12.29 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 7.414e-05/0.2364, allocations: 121.8 kB / 413.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.2365, allocations: 0 / 413.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.035e-05/0.2365, allocations: 20.31 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2365, allocations: 0 / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2365, allocations: 4 kB / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.2365, allocations: 0 / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001797/0.2367, allocations: 189.5 kB / 414.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2367, allocations: 0 / 414.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.2368, allocations: 19.98 kB / 414.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.2369, allocations: 4 kB / 414.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.2369, allocations: 7.875 kB / 414.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2369, allocations: 3.938 kB / 414.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2369, allocations: 0 / 414.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.2371, allocations: 191.5 kB / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.389e-05/0.2371, allocations: 84.95 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.2372, allocations: 7.969 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.697e-05/0.2372, allocations: 4 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.577e-05/0.2372, allocations: 7.984 kB / 414.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.317e-06/0.2372, allocations: 0 / 414.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.82e-05/0.2373, allocations: 87.27 kB / 414.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2373, allocations: 4.062 kB / 414.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.2375, allocations: 20 kB / 414.5 MB, free: 11.43 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.0004224/0.238, allocations: 0.7241 MB / 415.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001297/0.2381, allocations: 63.8 kB / 415.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2381, allocations: 192 / 415.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.439e-05/0.2382, allocations: 28.45 kB / 415.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.2384, allocations: 11.94 kB / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.2399, allocations: 1.546 MB / 416.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.2401, allocations: 0.7 MB / 417.6 MB, free: 8.215 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.167e-05/0.2401, allocations: 3.953 kB / 417.6 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.2402, allocations: 27.42 kB / 417.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2402, allocations: 0 / 417.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01855/0.2588, allocations: 1.813 MB / 419.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.199/7.457, allocations: 14.69 kB / 419.4 MB, free: 6.445 MB / 334.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 & /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 --timeout=50 --tolerance=1e-06 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.mat","/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