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.001492/0.001492, allocations: 121.2 kB / 17.79 MB, free: 5.141 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001637/0.001637, allocations: 204.6 kB / 18.74 MB, free: 4.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2536, allocations: 50.54 MB / 408.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.002814/0.2565, allocations: 1.638 MB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009009/0.2574, allocations: 0.5493 MB / 410.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.86e-05/0.2575, allocations: 0 / 410.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.65e-05/0.2575, allocations: 11.92 kB / 410.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.45e-05/0.2576, allocations: 31.7 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.2578, allocations: 27.97 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001416/0.258, allocations: 99.52 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.2581, allocations: 35.98 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.295e-05/0.2582, allocations: 31.88 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.412e-05/0.2583, allocations: 43.83 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.834e-05/0.2583, allocations: 8 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.698e-05/0.2584, allocations: 12 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.597e-05/0.2584, allocations: 23.92 kB / 411.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.947e-05/0.2584, allocations: 39.86 kB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.2586, allocations: 98.62 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2586, allocations: 0 / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2586, allocations: 0 / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.2587, allocations: 11.94 kB / 411.4 MB, free: 14.87 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.00055/0.2592, allocations: 383.1 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.2593, allocations: 8.031 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.339e-05/0.2593, allocations: 38.75 kB / 411.8 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.2594, allocations: 16.89 kB / 411.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.2596, allocations: 176.2 kB / 412 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.2596, allocations: 4.375 kB / 412 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.957e-05/0.2597, allocations: 12.38 kB / 412 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001687/0.2598, allocations: 88.2 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2598, allocations: 3.984 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.2599, allocations: 4 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.2599, allocations: 0 / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.26, allocations: 63.89 kB / 412.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006929/0.2607, allocations: 392.5 kB / 412.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/0.2609, allocations: 74.56 kB / 412.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.814e-05/0.2609, allocations: 32.84 kB / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.2609, allocations: 4 kB / 412.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.261, allocations: 30.56 kB / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.261, allocations: 0 / 412.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002385/0.2612, allocations: 97.69 kB / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.2613, allocations: 59.39 kB / 412.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.985e-05/0.2614, allocations: 113.9 kB / 413 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.2614, allocations: 25.7 kB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.016e-05/0.2615, allocations: 104 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.266e-05/0.2615, allocations: 31.73 kB / 413.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.815e-05/0.2616, allocations: 25.72 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2617, allocations: 314.8 kB / 413.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.231e-05/0.2618, allocations: 20 kB / 413.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.459e-05/0.2619, allocations: 50.56 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.262, allocations: 66.5 kB / 413.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.262, allocations: 3.938 kB / 413.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001635/0.2622, allocations: 101.6 kB / 413.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.2622, allocations: 8 kB / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.2622, allocations: 0 / 413.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.2622, allocations: 8 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.2623, allocations: 23.98 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.2624, allocations: 7.938 kB / 413.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.141e-05/0.2624, allocations: 4 kB / 413.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.2624, allocations: 4 kB / 413.7 MB, free: 12.27 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 0.0001024/0.2625, allocations: 113.8 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.008e-05/0.2626, allocations: 11.95 kB / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.181e-05/0.2626, allocations: 12.31 kB / 413.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2626, allocations: 11.92 kB / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2626, allocations: 0 / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2626, allocations: 0 / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.2629, allocations: 185.6 kB / 414.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2629, allocations: 3.984 kB / 414.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.263, allocations: 16 kB / 414.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.263, allocations: 3.938 kB / 414.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.263, allocations: 3.938 kB / 414.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.263, allocations: 256 / 414.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.263, allocations: 7.938 kB / 414.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.2633, allocations: 195.5 kB / 414.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.267e-05/0.2633, allocations: 89.03 kB / 414.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.2633, allocations: 3.938 kB / 414.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.788e-05/0.2634, allocations: 4 kB / 414.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.831e-05/0.2634, allocations: 7.984 kB / 414.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.2634, allocations: 0 / 414.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.378e-05/0.2635, allocations: 79.28 kB / 414.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2635, allocations: 0 / 414.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002312/0.2637, allocations: 24.06 kB / 414.5 MB, free: 11.41 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.0005308/0.2643, allocations: 0.7319 MB / 415.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000137/0.2644, allocations: 59.86 kB / 415.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2644, allocations: 0 / 415.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.316e-05/0.2645, allocations: 20.19 kB / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000293/0.2648, allocations: 15.98 kB / 415.3 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.2664, allocations: 1.534 MB / 416.9 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.2668, allocations: 0.7039 MB / 417.6 MB, free: 8.203 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.387e-05/0.2668, allocations: 7.938 kB / 417.6 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.555e-05/0.2669, allocations: 19.44 kB / 417.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2669, allocations: 0 / 417.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02459/0.2915, allocations: 1.807 MB / 419.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.737/8.028, allocations: 4.562 kB / 419.4 MB, free: 6.457 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 & 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.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) Reference file matches