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: translateModel(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor3a.T|capacitor3b.T|directCapacity.heatCapacitor.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs") translateModel(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor3a.T|capacitor3b.T|directCapacity.heatCapacitor.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001043/0.001043, allocations: 118.2 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.00127/0.00127, 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.321/1.321, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.237, allocations: 50.55 MB / 409.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.00409/0.2411, allocations: 3.067 MB / 412.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001789/0.2429, allocations: 1.033 MB / 413.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003012/0.2433, allocations: 11.94 kB / 413.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003109/0.2436, allocations: 95.05 kB / 413.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002619/0.2439, allocations: 95 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006221/0.2445, allocations: 231.6 kB / 413.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006712/0.2452, allocations: 0.5448 MB / 414.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003947/0.2456, allocations: 226.6 kB / 414.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003458/0.246, allocations: 183.2 kB / 414.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.2462, allocations: 182.9 kB / 414.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.091e-05/0.2463, allocations: 36 kB / 414.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.2464, allocations: 55.94 kB / 415 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.592e-05/0.2465, allocations: 91.64 kB / 415.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.2467, allocations: 226.7 kB / 415.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005838/0.2473, allocations: 0.5871 MB / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2473, allocations: 0 / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2473, allocations: 0 / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.2474, allocations: 0 / 415.9 MB, free: 10.96 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.0009818/0.2484, allocations: 0.7556 MB / 416.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2484, allocations: 8.031 kB / 416.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002011/0.2486, allocations: 80.3 kB / 416.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005853/0.2492, allocations: 414.6 kB / 417.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.2492, allocations: 33 kB / 417.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.622e-05/0.2493, allocations: 47.94 kB / 417.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007261/0.25, allocations: 487.3 kB / 417.7 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.2501, allocations: 7.938 kB / 417.7 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.2501, allocations: 20 kB / 417.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.2501, allocations: 11.94 kB / 417.7 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005163/0.2507, allocations: 254.1 kB / 418 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.253, allocations: 2.815 MB / 420.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004532/0.2535, allocations: 162.7 kB / 420.9 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.2536, allocations: 72.86 kB / 421 MB, free: 5.508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001325/0.2538, allocations: 85.11 kB / 421.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.2538, allocations: 42.42 kB / 421.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.2538, allocations: 0 / 421.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001269/0.2551, allocations: 0.6298 MB / 421.7 MB, free: 4.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.2551, allocations: 55.41 kB / 421.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003237/0.2555, allocations: 345.6 kB / 422.1 MB, free: 4.262 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.701e-05/0.2555, allocations: 29.7 kB / 422.2 MB, free: 4.227 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.2557, allocations: 307.8 kB / 422.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.2558, allocations: 67.41 kB / 422.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.672e-05/0.2558, allocations: 77.53 kB / 422.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.256, allocations: 354.7 kB / 423 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.2561, allocations: 63.97 kB / 423 MB, free: 3.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.2564, allocations: 219.4 kB / 423.2 MB, free: 3.07 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.000927/0.2573, allocations: 0.514 MB / 423.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2573, allocations: 0 / 423.7 MB, free: 2.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005735/0.2579, allocations: 366.2 kB / 424.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.2579, allocations: 8 kB / 424.1 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2579, allocations: 4 kB / 424.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001645/0.2581, allocations: 32.84 kB / 424.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002432/0.2584, allocations: 75.84 kB / 424.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/0.2598, allocations: 1.636 MB / 425.9 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.2599, allocations: 15.94 kB / 425.9 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.26, allocations: 20 kB / 425.9 MB, free: 176 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.0001875/0.2602, allocations: 170.3 kB / 426.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.2602, allocations: 47.69 kB / 426.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.367e-05/0.2603, allocations: 35.59 kB / 426.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.2603, allocations: 4 kB / 426.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2603, allocations: 0 / 426.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.2603, allocations: 3.984 kB / 426.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009032/0.2613, allocations: 0.7175 MB / 426.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2613, allocations: 0 / 426.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.2614, allocations: 35.97 kB / 426.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.789e-05/0.2615, allocations: 20.86 kB / 426.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.2616, allocations: 7.984 kB / 426.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009223/0.2625, allocations: 1.434 MB / 428.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2625, allocations: 0 / 428.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004882/0.263, allocations: 371.5 kB / 428.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.359e-05/0.2631, allocations: 105.1 kB / 428.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/0.2631, allocations: 8 kB / 428.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.2632, allocations: 8.031 kB / 428.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.2633, allocations: 19.91 kB / 428.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.2633, allocations: 4 kB / 428.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002191/0.2635, allocations: 231.2 kB / 429.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2635, allocations: 4 kB / 429.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000434/0.264, allocations: 68 kB / 429.2 MB, free: 12.63 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.0001106/0.2641, allocations: 107.1 kB / 429.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005703/0.2647, allocations: 315.7 kB / 429.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.2647, allocations: 0 / 429.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002145/0.2649, allocations: 190.5 kB / 429.8 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.2652, allocations: 37.55 kB / 429.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.2665, allocations: 0.8547 MB / 430.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.2669, allocations: 0.8146 MB / 431.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.267, allocations: 39.27 kB / 431.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.426e-05/0.2671, allocations: 35.42 kB / 431.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2671, allocations: 0 / 431.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Templates: time 0.006263/0.2733, allocations: 2.752 MB / 434.3 MB, free: 7.418 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches