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.001388/0.001388, allocations: 121.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001286, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2417, allocations: 50.54 MB / 408.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.004047/0.2457, allocations: 3.083 MB / 411.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.2474, allocations: 1.022 MB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/0.2476, allocations: 11.94 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002641/0.2479, allocations: 99.05 kB / 412.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.2481, allocations: 98.94 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.2486, allocations: 235.6 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000559/0.2492, allocations: 0.541 MB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003477/0.2496, allocations: 226.6 kB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.2499, allocations: 175.2 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.2501, allocations: 182.9 kB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.478e-05/0.2501, allocations: 40 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.2503, allocations: 56 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.775e-05/0.2504, allocations: 87.64 kB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.2505, allocations: 230.7 kB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006285/0.2512, allocations: 0.5862 MB / 415.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2512, allocations: 0 / 415.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2512, allocations: 0 / 415.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.2512, allocations: 0 / 415.4 MB, free: 10.83 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.0009615/0.2522, allocations: 0.7556 MB / 416.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.2522, allocations: 15.97 kB / 416.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.7e-05/0.2523, allocations: 82.7 kB / 416.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001848/0.2525, allocations: 68.12 kB / 416.3 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.2531, allocations: 426.7 kB / 416.7 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.2531, allocations: 29 kB / 416.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.9e-05/0.2532, allocations: 47.94 kB / 416.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006495/0.2539, allocations: 491.2 kB / 417.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.2539, allocations: 7.938 kB / 417.3 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.2539, allocations: 20 kB / 417.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.2539, allocations: 12 kB / 417.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004539/0.2544, allocations: 246.1 kB / 417.5 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.2565, allocations: 2.827 MB / 420.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004688/0.257, allocations: 162.7 kB / 420.5 MB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.2571, allocations: 64.84 kB / 420.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.2573, allocations: 85.09 kB / 420.7 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.2573, allocations: 38.5 kB / 420.7 MB, free: 5.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.744e-06/0.2573, allocations: 4 kB / 420.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.00124/0.2586, allocations: 0.627 MB / 421.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.2586, allocations: 55.39 kB / 421.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.259, allocations: 353.6 kB / 421.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.259, allocations: 25.7 kB / 421.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.2592, allocations: 311.7 kB / 422.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.2592, allocations: 67.47 kB / 422.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.945e-05/0.2593, allocations: 69.61 kB / 422.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.2594, allocations: 350.7 kB / 422.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.2596, allocations: 63.97 kB / 422.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.2598, allocations: 219.4 kB / 422.8 MB, free: 2.848 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.0008528/0.2607, allocations: 0.5212 MB / 423.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2607, allocations: 0 / 423.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005282/0.2612, allocations: 360.5 kB / 423.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2612, allocations: 8 kB / 423.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.2613, allocations: 7.984 kB / 423.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001368/0.2614, allocations: 40.84 kB / 423.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.2616, allocations: 72.44 kB / 423.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001219/0.2629, allocations: 1.639 MB / 425.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.263, allocations: 20.05 kB / 425.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.391e-05/0.2631, allocations: 16 kB / 425.5 MB, free: 15.93 MB / 350.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.0002001/0.2633, allocations: 169.7 kB / 425.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.642e-05/0.2634, allocations: 39.7 kB / 425.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.86e-05/0.2635, allocations: 39.58 kB / 425.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.2635, allocations: 4 kB / 425.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2635, allocations: 3.938 kB / 425.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2635, allocations: 0 / 425.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008895/0.2644, allocations: 0.7099 MB / 426.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2644, allocations: 4 kB / 426.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.2646, allocations: 31.92 kB / 426.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-05/0.2647, allocations: 28.84 kB / 426.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.2647, allocations: 4 kB / 426.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000917/0.2656, allocations: 1.431 MB / 428 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2656, allocations: 0 / 428 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000463/0.2661, allocations: 377.2 kB / 428.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.2662, allocations: 108.9 kB / 428.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.706e-05/0.2662, allocations: 8 kB / 428.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.2663, allocations: 4 kB / 428.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.2664, allocations: 19.92 kB / 428.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-06/0.2664, allocations: 4 kB / 428.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002152/0.2666, allocations: 239.2 kB / 428.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2666, allocations: 0 / 428.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004171/0.267, allocations: 68 kB / 428.8 MB, free: 12.39 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.0007474/0.2678, allocations: 0.8957 MB / 429.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005328/0.2683, allocations: 315.7 kB / 430 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2683, allocations: 4 kB / 430 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000207/0.2686, allocations: 178.6 kB / 430.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.2689, allocations: 37.5 kB / 430.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003911/0.2728, allocations: 3.35 MB / 433.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.2732, allocations: 0.8146 MB / 434.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.2733, allocations: 39.27 kB / 434.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.2735, allocations: 155.4 kB / 434.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2735, allocations: 4 kB / 434.5 MB, free: 6.312 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.3034, allocations: 6.287 MB / 440.8 MB, free: 164 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.342/9.645, allocations: 8.234 kB / 440.8 MB, free: 156 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