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.001204/0.001204, allocations: 118.8 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: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 60.09 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2258, allocations: 50.56 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005286/0.2311, allocations: 5.034 MB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.2331, allocations: 1.33 MB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002353/0.2333, allocations: 11.94 kB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003572/0.2337, allocations: 170.5 kB / 415.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005218/0.2342, allocations: 325.2 kB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.2346, allocations: 223.6 kB / 415.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009515/0.2356, allocations: 1.176 MB / 417 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003767/0.236, allocations: 314 kB / 417.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003985/0.2364, allocations: 454.4 kB / 417.8 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004828/0.2369, allocations: 0.5096 MB / 418.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.237, allocations: 104 kB / 418.4 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.2371, allocations: 108 kB / 418.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.2373, allocations: 223.2 kB / 418.7 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004252/0.2377, allocations: 0.5211 MB / 419.2 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009466/0.2387, allocations: 1.203 MB / 420.4 MB, free: 5.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2387, allocations: 0 / 420.4 MB, free: 5.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2387, allocations: 0 / 420.4 MB, free: 5.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.2387, allocations: 0 / 420.4 MB, free: 5.82 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.00212/0.2409, allocations: 1.337 MB / 421.8 MB, free: 4.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2409, allocations: 8.031 kB / 421.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001573/0.2411, allocations: 123.8 kB / 421.9 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001909/0.2413, allocations: 107.8 kB / 422 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009068/0.2422, allocations: 0.5949 MB / 422.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/0.2424, allocations: 143 kB / 422.7 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-05/0.2425, allocations: 67.84 kB / 422.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.2437, allocations: 0.8626 MB / 423.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.2437, allocations: 0 / 423.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.324e-05/0.2438, allocations: 31.98 kB / 423.7 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.2438, allocations: 12 kB / 423.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.245, allocations: 0.614 MB / 424.3 MB, free: 1.684 MB / 334.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.002888/0.2479, allocations: 2.077 MB / 426.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.2492, allocations: 0.8482 MB / 427.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007096/0.2499, allocations: 399.5 kB / 427.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.143e-05/0.25, allocations: 16.62 kB / 427.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.25, allocations: 47.22 kB / 427.7 MB, free: 14.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 1.973e-06/0.25, allocations: 3.938 kB / 427.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004661/0.2547, allocations: 1.793 MB / 429.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003026/0.255, allocations: 0.8234 MB / 430.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006761/0.2557, allocations: 0.637 MB / 430.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.446e-05/0.2557, allocations: 45.7 kB / 431 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/0.256, allocations: 344.9 kB / 431.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.2562, allocations: 252.2 kB / 431.6 MB, free: 9.934 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.2564, allocations: 150.7 kB / 431.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2565, allocations: 382.8 kB / 432.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006003/0.2572, allocations: 277.8 kB / 432.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008199/0.258, allocations: 0.5593 MB / 432.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.2592, allocations: 0.6778 MB / 433.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2592, allocations: 4 kB / 433.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002364/0.2616, allocations: 1.098 MB / 434.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.554e-05/0.2617, allocations: 85.11 kB / 434.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.2617, allocations: 4 kB / 434.8 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000652/0.2623, allocations: 239.2 kB / 435 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006162/0.263, allocations: 139.8 kB / 435.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006904/0.2699, allocations: 6.924 MB / 442.1 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007484/0.2706, allocations: 99.36 kB / 442.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.2707, allocations: 28 kB / 442.2 MB, free: 14.53 MB / 366.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.000299/0.271, allocations: 217.7 kB / 442.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.2711, allocations: 91.12 kB / 442.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001595/0.2713, allocations: 87.33 kB / 442.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.2713, allocations: 8 kB / 442.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.2713, allocations: 4 kB / 442.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002222/0.2735, allocations: 1.241 MB / 443.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003381/0.2769, allocations: 1.92 MB / 445.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.277, allocations: 0 / 445.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006658/0.2776, allocations: 143.8 kB / 445.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004939/0.2781, allocations: 206.3 kB / 446.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.269e-05/0.2782, allocations: 19.94 kB / 446.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005871/0.2841, allocations: 5.342 MB / 451.5 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2841, allocations: 4.031 kB / 451.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/0.2871, allocations: 1.387 MB / 452.9 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.2874, allocations: 243.8 kB / 453.1 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/0.2876, allocations: 23.94 kB / 453.1 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005968/0.2882, allocations: 47.95 kB / 453.2 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.2883, allocations: 60.56 kB / 453.2 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.2884, allocations: 23.98 kB / 453.3 MB, free: 2.809 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005001/0.2889, allocations: 459 kB / 453.7 MB, free: 2.363 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2889, allocations: 4 kB / 453.7 MB, free: 2.359 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007964/0.2897, allocations: 279.7 kB / 454 MB, free: 2.086 MB / 366.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.0032/0.2929, allocations: 1.966 MB / 455.9 MB, free: 84 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002017/0.2949, allocations: 1.352 MB / 457.3 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.295, allocations: 0 / 457.3 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.2962, allocations: 0.7691 MB / 458.1 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00092/0.2971, allocations: 239 kB / 458.3 MB, free: 13.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/0.3083, allocations: 7.515 MB / 465.8 MB, free: 5.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.3088, allocations: 0.9518 MB / 466.8 MB, free: 4.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004003/0.3092, allocations: 102.4 kB / 466.9 MB, free: 4.824 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003601/0.3095, allocations: 303.3 kB / 467.2 MB, free: 4.527 MB / 382.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3095, allocations: 0 / 467.2 MB, free: 4.527 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05516/0.3647, allocations: 26.58 MB / 493.7 MB, free: 10.33 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.5, allocations: 15.91 kB / 493.8 MB, free: 10.32 MB / 414.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