Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 113.4 kB / 17.73 MB, free: 5.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 188.2 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.32/1.32, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08667/0.0879, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005766/0.0937, allocations: 5.032 MB / 379.7 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1575/0.2512, allocations: 1.349 MB / 381 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000688/0.252, allocations: 9.219 kB / 381 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005731/0.2526, allocations: 164 kB / 381.2 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.2537, allocations: 321.1 kB / 381.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006219/0.2543, allocations: 231.3 kB / 381.7 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001315/0.2556, allocations: 1.182 MB / 382.9 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000487/0.2561, allocations: 310.6 kB / 383.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000578/0.2567, allocations: 455 kB / 383.7 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005339/0.2573, allocations: 0.5092 MB / 384.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001392/0.2574, allocations: 103.2 kB / 384.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.2576, allocations: 105.5 kB / 384.4 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001583/0.2577, allocations: 223.8 kB / 384.6 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000421/0.2582, allocations: 0.5203 MB / 385.1 MB, free: 7.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.2593, allocations: 1.205 MB / 386.3 MB, free: 7.367 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2593, allocations: 0 / 386.3 MB, free: 7.367 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2593, allocations: 0 / 386.3 MB, free: 7.367 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.687e-05/0.2593, allocations: 0 / 386.3 MB, free: 7.367 MB / 318.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.002047/0.2614, allocations: 1.341 MB / 387.7 MB, free: 6.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.2614, allocations: 9.625 kB / 387.7 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001551/0.2616, allocations: 123.2 kB / 387.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001695/0.2618, allocations: 108.8 kB / 387.9 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000905/0.2627, allocations: 0.5863 MB / 388.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.2628, allocations: 146.7 kB / 388.6 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.221e-05/0.263, allocations: 60.25 kB / 388.7 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.2642, allocations: 0.8645 MB / 389.5 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.2643, allocations: 7.094 kB / 389.5 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.26e-05/0.2643, allocations: 28.47 kB / 389.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.2643, allocations: 13.78 kB / 389.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.2656, allocations: 0.6042 MB / 390.2 MB, free: 5.012 MB / 318.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.003123/0.2687, allocations: 2.091 MB / 392.3 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.27, allocations: 0.8427 MB / 393.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007736/0.2708, allocations: 408 kB / 393.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-05/0.2708, allocations: 14.89 kB / 393.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.2709, allocations: 46.23 kB / 393.6 MB, free: 3.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=73): time 2.555e-06/0.2709, allocations: 1.188 kB / 393.6 MB, free: 3.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=73): time 0.005437/0.2763, allocations: 1.794 MB / 395.4 MB, free: 2.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/0.2765, allocations: 0.8223 MB / 396.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007765/0.2773, allocations: 0.6383 MB / 396.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/0.2774, allocations: 44.52 kB / 396.9 MB, free: 0.918 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.2776, allocations: 339.6 kB / 397.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.2777, allocations: 264.2 kB / 397.5 MB, free: 464 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.278, allocations: 138.9 kB / 397.6 MB, free: 396 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.2781, allocations: 392.8 kB / 398 MB, free: 36 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007677/0.2788, allocations: 280.5 kB / 398.3 MB, free: 0 / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.2801, allocations: 0.5749 MB / 398.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/0.2815, allocations: 0.6792 MB / 399.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.2815, allocations: 0.875 kB / 399.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002667/0.2842, allocations: 1.095 MB / 400.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.783e-05/0.2843, allocations: 83.98 kB / 400.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.2843, allocations: 1.375 kB / 400.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006865/0.285, allocations: 240 kB / 400.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006244/0.2856, allocations: 141 kB / 401.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008669/0.2943, allocations: 6.934 MB / 408 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009224/0.2952, allocations: 102.1 kB / 408.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.105e-05/0.2953, allocations: 21.91 kB / 408.1 MB, free: 8.129 MB / 334.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.000456/0.2958, allocations: 228.8 kB / 408.3 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.2959, allocations: 87.72 kB / 408.4 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001726/0.2961, allocations: 93.83 kB / 408.5 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.2961, allocations: 8 kB / 408.5 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.2961, allocations: 1.156 kB / 408.5 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002403/0.2985, allocations: 1.238 MB / 409.8 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00367/0.3022, allocations: 1.92 MB / 411.7 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3022, allocations: 5.25 kB / 411.7 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006872/0.3029, allocations: 140.1 kB / 411.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000524/0.3035, allocations: 193 kB / 412 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.674e-05/0.3035, allocations: 24.83 kB / 412 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006513/0.31, allocations: 5.339 MB / 417.4 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3101, allocations: 0 / 417.4 MB, free: 396 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003381/0.3134, allocations: 1.388 MB / 418.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004141/0.3139, allocations: 252.9 kB / 419 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.314, allocations: 20.22 kB / 419 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000625/0.3146, allocations: 47.11 kB / 419.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.3148, allocations: 63.78 kB / 419.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-05/0.3148, allocations: 15.03 kB / 419.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005673/0.3154, allocations: 461.7 kB / 419.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3154, allocations: 0 / 419.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009602/0.3164, allocations: 288.3 kB / 419.9 MB, free: 14.98 MB / 350.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.00333/0.3197, allocations: 1.968 MB / 421.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002191/0.3219, allocations: 1.358 MB / 423.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.3219, allocations: 4 kB / 423.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.3232, allocations: 0.7635 MB / 424 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.3243, allocations: 238.1 kB / 424.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.3361, allocations: 7.52 MB / 431.7 MB, free: 3.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.3367, allocations: 0.9479 MB / 432.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004329/0.3371, allocations: 98.42 kB / 432.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.3375, allocations: 307.3 kB / 433.1 MB, free: 2.242 MB / 350.1 MB Notification: Performance of SimCode: time 1.533e-06/0.3375, allocations: 3.938 kB / 433.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06462/0.4021, allocations: 26.57 MB / 459.7 MB, free: 7.578 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.82, allocations: 15.78 kB / 459.7 MB, free: 7.562 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches