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.001447/0.001447, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001768/0.001768, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2001/0.2001, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 76.09 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08503/0.08635, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001326/0.0877, allocations: 490.4 kB / 480.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.0892, allocations: 1.263 MB / 481.9 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.771e-05/0.08923, allocations: 0 / 481.9 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.656e-06/0.08924, allocations: 0 / 481.9 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001281/0.08939, allocations: 15.94 kB / 481.9 MB, free: 3.434 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.0008173/0.09021, allocations: 237.5 kB / 482.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.757e-05/0.09026, allocations: 12 kB / 482.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.625e-05/0.09029, allocations: 3.984 kB / 482.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.509e-05/0.09031, allocations: 4 kB / 482.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.836e-05/0.09038, allocations: 11.92 kB / 482.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.522e-06/0.0904, allocations: 0 / 482.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002631/0.09303, allocations: 0.6575 MB / 482.8 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-06/0.09305, allocations: 3.938 kB / 482.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.471e-05/0.09307, allocations: 0 / 482.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.09329, allocations: 183.7 kB / 483 MB, free: 2.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.0933, allocations: 0 / 483 MB, free: 2.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.09331, allocations: 0 / 483 MB, free: 2.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.09331, allocations: 0 / 483 MB, free: 2.453 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.0003106/0.09363, allocations: 385.2 kB / 483.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.786e-05/0.09367, allocations: 12.03 kB / 483.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.136e-05/0.09369, allocations: 30.75 kB / 483.4 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.936e-05/0.09372, allocations: 4.875 kB / 483.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.217e-05/0.09381, allocations: 172.4 kB / 483.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.09382, allocations: 4.312 kB / 483.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.09383, allocations: 4.359 kB / 483.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.019e-05/0.0939, allocations: 33.64 kB / 483.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.039e-06/0.09391, allocations: 0 / 483.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.25e-06/0.09392, allocations: 0 / 483.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.09393, allocations: 4 kB / 483.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.275e-05/0.09394, allocations: 3.938 kB / 483.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.716e-05/0.09405, allocations: 149.7 kB / 483.8 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.27e-05/0.09408, allocations: 22.52 kB / 483.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.183e-05/0.0941, allocations: 8.953 kB / 483.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.092e-06/0.09411, allocations: 3.938 kB / 483.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.09415, allocations: 56.27 kB / 483.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 5.561e-06/0.09416, allocations: 4 kB / 483.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001264/0.09429, allocations: 71.3 kB / 483.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.09433, allocations: 81.05 kB / 484 MB, free: 1.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.275e-05/0.09439, allocations: 97.86 kB / 484.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.327e-06/0.09441, allocations: 25.7 kB / 484.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.137e-05/0.09443, allocations: 80.14 kB / 484.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.053e-05/0.09445, allocations: 0 / 484.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.09448, allocations: 17.95 kB / 484.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.643e-05/0.09456, allocations: 318.8 kB / 484.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.156e-06/0.09457, allocations: 0 / 484.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.909e-06/0.09458, allocations: 0 / 484.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.538e-05/0.09462, allocations: 60.27 kB / 484.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-06/0.09463, allocations: 0 / 484.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.1e-05/0.09469, allocations: 67.33 kB / 484.7 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.09472, allocations: 33.7 kB / 484.7 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.09473, allocations: 12.03 kB / 484.7 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.055e-06/0.09475, allocations: 0 / 484.7 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.09475, allocations: 0 / 484.7 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.456e-06/0.09476, allocations: 0 / 484.7 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.507e-05/0.09478, allocations: 4 kB / 484.7 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.72e-06/0.09479, allocations: 4 kB / 484.7 MB, free: 448 kB / 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 5.756e-05/0.09485, allocations: 131.5 kB / 484.8 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.037e-05/0.09487, allocations: 7.922 kB / 484.9 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.931e-06/0.09488, allocations: 7.125 kB / 484.9 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.61e-07/0.09488, allocations: 4 kB / 484.9 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.09489, allocations: 0 / 484.9 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-06/0.09489, allocations: 0 / 484.9 MB, free: 284 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.794e-05/0.09497, allocations: 145.7 kB / 485 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.09498, allocations: 7.938 kB / 485 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.362e-06/0.09498, allocations: 0 / 485 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.09499, allocations: 7.875 kB / 485 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.095, allocations: 0 / 485 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.095, allocations: 0 / 485 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.095, allocations: 0 / 485 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.983e-05/0.0951, allocations: 102.8 kB / 485.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.527e-05/0.09513, allocations: 85.05 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.577e-06/0.09515, allocations: 4 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.928e-06/0.09516, allocations: 0 / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-06/0.09517, allocations: 0 / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.09518, allocations: 0 / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.647e-05/0.09521, allocations: 79.28 kB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09522, allocations: 128 / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.09546, allocations: 63.98 kB / 485.3 MB, free: 15.7 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.0006931/0.09616, allocations: 0.8549 MB / 486.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.594e-05/0.09625, allocations: 75.33 kB / 486.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.09626, allocations: 3.938 kB / 486.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.475e-05/0.09629, allocations: 51.41 kB / 486.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001114/0.09641, allocations: 4 kB / 486.3 MB, free: 14.71 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.00029/0.0967, allocations: 146.4 kB / 486.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.09687, allocations: 0.6807 MB / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.382e-06/0.09688, allocations: 0 / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.09691, allocations: 11.56 kB / 487.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.09691, allocations: 0 / 487.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3413/0.4382, allocations: 2.499 MB / 489.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.45, allocations: 0.8438 kB / 489.7 MB, free: 11.37 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