Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001561/0.001561, allocations: 116.1 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001889/0.001889, allocations: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2027/0.2027, allocations: 46.1 MB / 343.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 70.41 kB / 417.1 MB, free: 19.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.1004, allocations: 62.45 MB / 479.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001731/0.1021, allocations: 0.5332 MB / 480.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.1041, allocations: 1.256 MB / 481.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.044e-05/0.1041, allocations: 7.938 kB / 481.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.533e-05/0.1041, allocations: 0 / 481.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.1043, allocations: 8 kB / 481.4 MB, free: 3.688 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009316/0.1053, allocations: 214.2 kB / 481.6 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.143e-05/0.1053, allocations: 8 kB / 481.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.109e-05/0.1054, allocations: 0 / 481.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.777e-05/0.1054, allocations: 4 kB / 481.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.999e-05/0.1055, allocations: 15.97 kB / 481.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.136e-06/0.1055, allocations: 0 / 481.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002973/0.1085, allocations: 0.653 MB / 482.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-06/0.1085, allocations: 0 / 482.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.32e-05/0.1085, allocations: 7.922 kB / 482.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00025/0.1088, allocations: 179.7 kB / 482.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1088, allocations: 7.938 kB / 482.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1088, allocations: 0 / 482.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1088, allocations: 0 / 482.5 MB, free: 2.73 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004054/0.1092, allocations: 381.2 kB / 482.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1093, allocations: 12.02 kB / 482.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.849e-05/0.1093, allocations: 30.75 kB / 482.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.448e-05/0.1093, allocations: 0.9375 kB / 482.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.1094, allocations: 168.4 kB / 483.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.889e-06/0.1095, allocations: 384 / 483.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.733e-06/0.1095, allocations: 4.375 kB / 483.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.507e-05/0.1095, allocations: 33.64 kB / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.1096, allocations: 0 / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.331e-06/0.1096, allocations: 0 / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.1096, allocations: 0 / 483.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.722e-05/0.1096, allocations: 7.922 kB / 483.1 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001308/0.1097, allocations: 149.7 kB / 483.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4e-05/0.1098, allocations: 22.52 kB / 483.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.595e-05/0.1098, allocations: 12.95 kB / 483.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.305e-06/0.1098, allocations: 7.875 kB / 483.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.1099, allocations: 60.25 kB / 483.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1099, allocations: 0 / 483.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001603/0.11, allocations: 67.25 kB / 483.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.1101, allocations: 85.11 kB / 483.5 MB, free: 1.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.357e-05/0.1102, allocations: 97.97 kB / 483.6 MB, free: 1.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.1102, allocations: 25.7 kB / 483.6 MB, free: 1.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.326e-05/0.1102, allocations: 84.14 kB / 483.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.147e-05/0.1102, allocations: 0 / 483.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.563e-05/0.1103, allocations: 9.719 kB / 483.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1104, allocations: 318.8 kB / 484 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.338e-06/0.1104, allocations: 0 / 484 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.66e-06/0.1104, allocations: 0 / 484 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.424e-05/0.1105, allocations: 68.44 kB / 484.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1105, allocations: 0 / 484.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.02e-05/0.1105, allocations: 67.28 kB / 484.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.1106, allocations: 37.7 kB / 484.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.1106, allocations: 0 / 484.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.388e-06/0.1106, allocations: 0 / 484.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-07/0.1106, allocations: 0 / 484.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.1106, allocations: 0 / 484.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.577e-05/0.1106, allocations: 0 / 484.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.1106, allocations: 3.984 kB / 484.2 MB, free: 0.7305 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.958e-05/0.1107, allocations: 139.6 kB / 484.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.1108, allocations: 3.938 kB / 484.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.193e-06/0.1108, allocations: 3.125 kB / 484.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1108, allocations: 4 kB / 484.3 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.1108, allocations: 0 / 484.3 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1108, allocations: 3.984 kB / 484.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.1109, allocations: 149.7 kB / 484.5 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.1109, allocations: 3.938 kB / 484.5 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1109, allocations: 0 / 484.5 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1109, allocations: 8 kB / 484.5 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.1109, allocations: 0 / 484.5 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1109, allocations: 3.938 kB / 484.5 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1109, allocations: 0 / 484.5 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.111, allocations: 98.77 kB / 484.6 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.525e-05/0.1111, allocations: 81.05 kB / 484.7 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.1111, allocations: 4 kB / 484.7 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.118e-05/0.1111, allocations: 0 / 484.7 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.05e-05/0.1111, allocations: 4.031 kB / 484.7 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.1112, allocations: 0 / 484.7 MB, free: 132 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.382e-05/0.1112, allocations: 87.2 kB / 484.8 MB, free: 44 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1112, allocations: 0 / 484.8 MB, free: 44 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000306/0.1115, allocations: 59.98 kB / 484.8 MB, free: 15.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009645/0.1125, allocations: 0.8596 MB / 485.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001036/0.1126, allocations: 59.41 kB / 485.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1126, allocations: 0 / 485.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.1e-05/0.1127, allocations: 55.41 kB / 485.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.1128, allocations: 7.25 kB / 485.8 MB, free: 15.01 MB / 366.1 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Resources/Data") at compile-time; copying all loaded packages into the FMU Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003816/0.1132, allocations: 157.6 kB / 486 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.1135, allocations: 0.669 MB / 486.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.356e-06/0.1135, allocations: 0 / 486.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.517e-05/0.1135, allocations: 11.44 kB / 486.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1135, allocations: 0 / 486.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 12.22/12.33, allocations: 2.432 MB / 489.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001998/12.33, allocations: 223.3 kB / 489.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/14.21, allocations: 0 / 489.3 MB, free: 11.53 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches