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.001403/0.001403, allocations: 116 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001056/0.001056, allocations: 63.67 kB / 306.6 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07299/0.07406, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005107/0.07919, allocations: 5.051 MB / 362.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002015/0.08123, allocations: 1.332 MB / 363.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003873/0.08163, allocations: 8 kB / 363.5 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003866/0.08204, allocations: 127.1 kB / 363.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000615/0.08267, allocations: 285.7 kB / 363.9 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.08306, allocations: 199.7 kB / 364.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.08418, allocations: 1.164 MB / 365.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003809/0.08457, allocations: 322 kB / 365.6 MB, free: 5.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004758/0.08505, allocations: 454.4 kB / 366 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005169/0.08558, allocations: 0.5057 MB / 366.5 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.08573, allocations: 104 kB / 366.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.0859, allocations: 108 kB / 366.7 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001618/0.08607, allocations: 227.2 kB / 366.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004512/0.08653, allocations: 0.5172 MB / 367.5 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008913/0.08742, allocations: 1.187 MB / 368.6 MB, free: 2.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.08744, allocations: 4 kB / 368.6 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.08744, allocations: 0 / 368.6 MB, free: 2.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.491e-05/0.08747, allocations: 0 / 368.6 MB, free: 2.684 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.002106/0.08958, allocations: 1.343 MB / 370 MB, free: 1.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.08963, allocations: 8.031 kB / 370 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001486/0.08978, allocations: 115.9 kB / 370.1 MB, free: 1.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.08995, allocations: 111.7 kB / 370.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007563/0.09071, allocations: 0.587 MB / 370.8 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002628/0.09098, allocations: 170.9 kB / 371 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.4e-05/0.09108, allocations: 63.92 kB / 371 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1228/0.2139, allocations: 0.8711 MB / 371.9 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.2139, allocations: 0 / 371.9 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.198e-05/0.214, allocations: 35.59 kB / 371.9 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.214, allocations: 14.31 kB / 372 MB, free: 19.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.2154, allocations: 0.6275 MB / 372.6 MB, free: 19.74 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.003001/0.2184, allocations: 2.098 MB / 374.7 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.2196, allocations: 0.8649 MB / 375.5 MB, free: 18.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006642/0.2203, allocations: 407.5 kB / 375.9 MB, free: 18.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.537e-05/0.2203, allocations: 13.39 kB / 376 MB, free: 18.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.2204, allocations: 49.02 kB / 376 MB, free: 17.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 1.713e-06/0.2204, allocations: 0 / 376 MB, free: 17.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004447/0.2248, allocations: 1.838 MB / 377.8 MB, free: 17.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.225, allocations: 0.8296 MB / 378.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006288/0.2256, allocations: 0.63 MB / 379.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.162e-05/0.2257, allocations: 45.64 kB / 379.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.2258, allocations: 339.5 kB / 379.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.226, allocations: 258 kB / 379.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000203/0.2262, allocations: 139.5 kB / 380.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.619e-05/0.2263, allocations: 388.9 kB / 380.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/0.2269, allocations: 287.8 kB / 380.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007381/0.2276, allocations: 0.5663 MB / 381.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.2288, allocations: 0.7076 MB / 382 MB, free: 14.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2288, allocations: 0.6562 kB / 382 MB, free: 14.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002278/0.2311, allocations: 1.122 MB / 383.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/0.2311, allocations: 89.28 kB / 383.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.2312, allocations: 1.094 kB / 383.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005942/0.2318, allocations: 232.4 kB / 383.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005777/0.2323, allocations: 150.8 kB / 383.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005614/0.238, allocations: 6.944 MB / 390.5 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007286/0.2387, allocations: 107.4 kB / 390.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.034e-05/0.2388, allocations: 26.7 kB / 390.7 MB, free: 7.086 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.0002444/0.239, allocations: 222.1 kB / 390.9 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.2392, allocations: 92.64 kB / 391 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001419/0.2393, allocations: 86.83 kB / 391.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2393, allocations: 7.75 kB / 391.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.2393, allocations: 3.125 kB / 391.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00211/0.2414, allocations: 1.269 MB / 392.3 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003182/0.2446, allocations: 1.956 MB / 394.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2446, allocations: 0 / 394.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006263/0.2453, allocations: 149.1 kB / 394.4 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004358/0.2457, allocations: 208 kB / 394.6 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.3e-05/0.2458, allocations: 16.95 kB / 394.7 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00466/0.2504, allocations: 5.35 MB / 400 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2505, allocations: 0 / 400 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00293/0.2534, allocations: 1.425 MB / 401.4 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002947/0.2537, allocations: 237 kB / 401.7 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.2538, allocations: 18.88 kB / 401.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006366/0.2545, allocations: 67.88 kB / 401.7 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.2546, allocations: 57.83 kB / 401.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.003e-05/0.2547, allocations: 25.08 kB / 401.8 MB, free: 14.63 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004655/0.2551, allocations: 456.3 kB / 402.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2551, allocations: 1.031 kB / 402.3 MB, free: 14.37 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007102/0.2559, allocations: 291.1 kB / 402.6 MB, free: 14.32 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.003107/0.259, allocations: 2.01 MB / 404.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.261, allocations: 1.402 MB / 406 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.261, allocations: 1.438 kB / 406 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.2623, allocations: 0.7865 MB / 406.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008355/0.2631, allocations: 237 kB / 407 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/0.2747, allocations: 8.322 MB / 415.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.2751, allocations: 0.9401 MB / 416.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004029/0.2755, allocations: 110.4 kB / 416.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/0.2759, allocations: 295.5 kB / 416.6 MB, free: 1.445 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2759, allocations: 3.938 kB / 416.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.075/1.351, allocations: 25.13 MB / 441.8 MB, free: 8.723 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/1.351, allocations: 234.4 kB / 442 MB, free: 8.461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.691/4.042, allocations: 0 / 442 MB, free: 8.461 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