Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00124/0.00124, allocations: 118.1 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 64.12 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2545, allocations: 50.54 MB / 408.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.003926/0.2585, allocations: 3.079 MB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.2602, allocations: 1.022 MB / 412.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.2604, allocations: 11.94 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.2607, allocations: 98.98 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.2609, allocations: 106.9 kB / 413 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004959/0.2614, allocations: 231.6 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004996/0.2619, allocations: 0.541 MB / 413.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003213/0.2622, allocations: 226.6 kB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002456/0.2625, allocations: 183.2 kB / 414.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.2626, allocations: 182.9 kB / 414.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.861e-05/0.2627, allocations: 36 kB / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000106/0.2628, allocations: 55.98 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.174e-05/0.2629, allocations: 87.66 kB / 414.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.2631, allocations: 226.7 kB / 414.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005635/0.2636, allocations: 0.5901 MB / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2636, allocations: 0 / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2636, allocations: 0 / 415.4 MB, free: 11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.2637, allocations: 0 / 415.4 MB, free: 11 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0008751/0.2645, allocations: 0.7556 MB / 416.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2646, allocations: 8.031 kB / 416.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.147e-05/0.2647, allocations: 82.7 kB / 416.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.2649, allocations: 76.11 kB / 416.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006255/0.2655, allocations: 414.7 kB / 416.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.2655, allocations: 33 kB / 416.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.833e-05/0.2656, allocations: 47.89 kB / 416.8 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.2663, allocations: 499.2 kB / 417.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.2664, allocations: 0 / 417.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.724e-05/0.2664, allocations: 20 kB / 417.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.2664, allocations: 8 kB / 417.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004596/0.2669, allocations: 246.1 kB / 417.5 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.2691, allocations: 2.827 MB / 420.4 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004221/0.2696, allocations: 162.7 kB / 420.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.2697, allocations: 72.83 kB / 420.6 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001252/0.2698, allocations: 81.11 kB / 420.7 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.2699, allocations: 38.5 kB / 420.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.2699, allocations: 0 / 420.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001265/0.2712, allocations: 0.6348 MB / 421.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.2712, allocations: 55.41 kB / 421.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.2715, allocations: 345.6 kB / 421.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.2716, allocations: 33.64 kB / 421.8 MB, free: 4.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/0.2718, allocations: 307.7 kB / 422.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.324e-05/0.2718, allocations: 67.47 kB / 422.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.366e-05/0.2719, allocations: 73.61 kB / 422.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2721, allocations: 350.7 kB / 422.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.2723, allocations: 63.97 kB / 422.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.2725, allocations: 219.4 kB / 422.8 MB, free: 3.016 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacity.mass.T = $START.inverseCapacity.mass.T ($START.directCapacity.heatFlowToTemperature.y = $START.inverseCapacity.mass.T) Notification: Performance of analyzeInitialSystem (initialization): time 0.000911/0.2734, allocations: 0.5214 MB / 423.4 MB, free: 2.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2734, allocations: 4 kB / 423.4 MB, free: 2.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005288/0.274, allocations: 360.8 kB / 423.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.274, allocations: 8 kB / 423.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.274, allocations: 4 kB / 423.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001286/0.2741, allocations: 36.84 kB / 423.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.2744, allocations: 71.91 kB / 423.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001293/0.2757, allocations: 1.639 MB / 425.5 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.2758, allocations: 12 kB / 425.5 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.147e-05/0.2759, allocations: 20 kB / 425.5 MB, free: 116 kB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: inverseCapacity.mass.T = $START.inverseCapacity.mass.T. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002094/0.2761, allocations: 177.7 kB / 425.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.315e-05/0.2761, allocations: 39.7 kB / 425.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.712e-05/0.2762, allocations: 43.53 kB / 425.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2762, allocations: 0 / 425.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2762, allocations: 4 kB / 425.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2762, allocations: 0 / 425.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008923/0.2771, allocations: 0.7096 MB / 426.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.2772, allocations: 0 / 426.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.2773, allocations: 39.92 kB / 426.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.737e-05/0.2774, allocations: 24.84 kB / 426.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.2774, allocations: 4 kB / 426.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008976/0.2783, allocations: 1.431 MB / 428 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.2784, allocations: 3.984 kB / 428 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004777/0.2788, allocations: 369.2 kB / 428.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.781e-05/0.2789, allocations: 108.8 kB / 428.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.279, allocations: 8 kB / 428.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.2791, allocations: 4 kB / 428.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.773e-05/0.2791, allocations: 19.95 kB / 428.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.2792, allocations: 8 kB / 428.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002167/0.2794, allocations: 235.2 kB / 428.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2794, allocations: 4 kB / 428.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004215/0.2798, allocations: 68 kB / 428.8 MB, free: 12.56 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inverseCapacity.mass.T,capacitor3a.T,capacitor3b.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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007476/0.2806, allocations: 0.9037 MB / 429.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005561/0.2811, allocations: 307.7 kB / 430 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2811, allocations: 0 / 430 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.2814, allocations: 186.6 kB / 430.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.2817, allocations: 37.55 kB / 430.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003812/0.2855, allocations: 3.339 MB / 433.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.2859, allocations: 0.8146 MB / 434.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001114/0.2861, allocations: 43.25 kB / 434.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.2863, allocations: 159.4 kB / 434.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2863, allocations: 0 / 434.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02759/0.3139, allocations: 6.286 MB / 440.8 MB, free: 340 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.312/9.626, allocations: 15.86 kB / 440.8 MB, free: 328 kB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_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_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches