Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008146/0.0008146, allocations: 97.59 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009673/0.0009673, allocations: 202.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001972/0.0001972, allocations: 7.938 kB / 307.8 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08405/0.08427, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004632/0.08894, allocations: 4.654 MB / 364 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.09127, allocations: 1.266 MB / 365.3 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000506/0.09181, allocations: 11.94 kB / 365.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004333/0.09225, allocations: 131.1 kB / 365.4 MB, free: 7.105 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008567/0.09312, allocations: 285.7 kB / 365.7 MB, free: 6.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004625/0.09359, allocations: 199.8 kB / 365.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001166/0.09477, allocations: 1.124 MB / 367 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003732/0.09515, allocations: 290 kB / 367.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005358/0.0957, allocations: 402.4 kB / 367.7 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005883/0.09629, allocations: 477.9 kB / 368.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.09646, allocations: 68 kB / 368.2 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001626/0.09663, allocations: 64 kB / 368.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.09678, allocations: 183.2 kB / 368.5 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004687/0.09725, allocations: 0.5071 MB / 369 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008452/0.09811, allocations: 1.121 MB / 370.1 MB, free: 2.391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.09812, allocations: 0 / 370.1 MB, free: 2.391 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09813, allocations: 4 kB / 370.1 MB, free: 2.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.122e-05/0.09816, allocations: 4 kB / 370.1 MB, free: 2.383 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002055/0.1002, allocations: 1.197 MB / 371.3 MB, free: 1.113 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1003, allocations: 8.031 kB / 371.3 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/0.1005, allocations: 119.8 kB / 371.4 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.1007, allocations: 111.8 kB / 371.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008494/0.1015, allocations: 0.5909 MB / 372.1 MB, free: 248 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002984/0.1018, allocations: 178.9 kB / 372.3 MB, free: 48 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1354/0.2372, allocations: 60.77 kB / 372.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.239, allocations: 0.8954 MB / 373.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.87e-05/0.239, allocations: 0.6562 kB / 373.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.287e-05/0.2391, allocations: 28.89 kB / 373.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.2391, allocations: 14.22 kB / 373.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.2406, allocations: 0.6713 MB / 374 MB, free: 18.78 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003149/0.2438, allocations: 2.108 MB / 376.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.245, allocations: 0.8932 MB / 377 MB, free: 17.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007647/0.2458, allocations: 421.6 kB / 377.4 MB, free: 17.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-05/0.2458, allocations: 14.12 kB / 377.4 MB, free: 17.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.2459, allocations: 51.17 kB / 377.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.004e-06/0.2459, allocations: 0 / 377.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004947/0.2508, allocations: 2.006 MB / 379.4 MB, free: 16.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.251, allocations: 0.8259 MB / 380.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007074/0.2517, allocations: 0.6344 MB / 380.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.551e-05/0.2517, allocations: 44.75 kB / 381 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.2519, allocations: 345.1 kB / 381.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.2521, allocations: 254.6 kB / 381.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.49e-05/0.2522, allocations: 59.75 kB / 381.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2523, allocations: 389.5 kB / 382 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006716/0.253, allocations: 301.3 kB / 382.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008505/0.2538, allocations: 0.5869 MB / 382.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.2552, allocations: 0.7462 MB / 383.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2552, allocations: 0 / 383.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002739/0.258, allocations: 1.197 MB / 384.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.052e-05/0.258, allocations: 89.27 kB / 384.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.2581, allocations: 1.375 kB / 384.9 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006844/0.2588, allocations: 255.3 kB / 385.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006098/0.2594, allocations: 152.2 kB / 385.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005919/0.2653, allocations: 6.501 MB / 391.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009099/0.2662, allocations: 126.5 kB / 391.9 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.086e-05/0.2663, allocations: 21.47 kB / 391.9 MB, free: 6.805 MB / 302.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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003209/0.2666, allocations: 219.8 kB / 392.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.2668, allocations: 96.52 kB / 392.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001542/0.2669, allocations: 91.16 kB / 392.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.2669, allocations: 8.281 kB / 392.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.267, allocations: 4 kB / 392.3 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00243/0.2694, allocations: 1.339 MB / 393.7 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003529/0.2729, allocations: 2.037 MB / 395.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.2729, allocations: 5.375 kB / 395.7 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006246/0.2736, allocations: 153.9 kB / 395.9 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004864/0.2741, allocations: 224.1 kB / 396.1 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.671e-05/0.2741, allocations: 16.11 kB / 396.1 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004804/0.2789, allocations: 5.053 MB / 401.2 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2789, allocations: 0.6562 kB / 401.2 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003292/0.2822, allocations: 1.531 MB / 402.7 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003083/0.2826, allocations: 240.4 kB / 402.9 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.2827, allocations: 26.38 kB / 403 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006552/0.2833, allocations: 73.75 kB / 403 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.2835, allocations: 62.28 kB / 403.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.257e-05/0.2835, allocations: 16 kB / 403.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005145/0.284, allocations: 456.4 kB / 403.5 MB, free: 14.42 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2841, allocations: 0 / 403.5 MB, free: 14.42 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007663/0.2848, allocations: 288 kB / 403.8 MB, free: 14.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003463/0.2883, allocations: 2.106 MB / 405.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002074/0.2904, allocations: 1.4 MB / 407.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2904, allocations: 0 / 407.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.2917, allocations: 0.8137 MB / 408.1 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009087/0.2926, allocations: 228.3 kB / 408.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/0.3047, allocations: 8.607 MB / 417 MB, free: 1.449 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.3051, allocations: 0.9479 MB / 417.9 MB, free: 488 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003686/0.3055, allocations: 106.4 kB / 418 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003587/0.3059, allocations: 295.3 kB / 418.3 MB, free: 80 kB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3059, allocations: 3.938 kB / 418.3 MB, free: 76 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03678/0.3427, allocations: 23.88 MB / 442.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002118/0.3429, allocations: 225.1 kB / 442.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.354/2.697, allocations: 0 / 442.4 MB, free: 8.348 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches