Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001768/0.001768, allocations: 111.1 kB / 20.44 MB, free: 1.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002182/0.002182, allocations: 204.3 kB / 23.72 MB, free: 4.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 230.5 MB / 257.4 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2793/0.2793, allocations: 46.94 MB / 360.8 MB, free: 3.918 MB / 286.1 MB " [Timeout remaining time 180] 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.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 79.81 kB / 0.4961 GB, free: 7.555 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2935, allocations: 66.09 MB / 0.5607 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001536/0.295, allocations: 487.5 kB / 0.5611 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.2963, allocations: 0.8708 MB / 0.562 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.497e-05/0.2964, allocations: 0 / 0.562 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.131e-05/0.2964, allocations: 0 / 0.562 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001752/0.2965, allocations: 4 kB / 0.562 GB, free: 2.645 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:333:3-373:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005518/0.2971, allocations: 67.78 kB / 0.5621 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.633e-05/0.2971, allocations: 7.938 kB / 0.5621 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.079e-05/0.2972, allocations: 4 kB / 0.5621 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.428e-05/0.2972, allocations: 0 / 0.5621 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.092e-05/0.2972, allocations: 4 kB / 0.5621 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.873e-06/0.2972, allocations: 0 / 0.5621 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.2974, allocations: 63.88 kB / 0.5621 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.689e-06/0.2974, allocations: 4 kB / 0.5621 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.908e-05/0.2974, allocations: 3.984 kB / 0.5621 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.2976, allocations: 51.67 kB / 0.5622 GB, free: 2.445 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2976, allocations: 0 / 0.5622 GB, free: 2.445 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2976, allocations: 4 kB / 0.5622 GB, free: 2.441 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.2976, allocations: 0 / 0.5622 GB, free: 2.441 MB / 398.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.000345/0.2979, allocations: 278 kB / 0.5625 GB, free: 2.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.298, allocations: 12.03 kB / 0.5625 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.525e-05/0.298, allocations: 30.75 kB / 0.5625 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.161e-05/0.298, allocations: 0.9375 kB / 0.5625 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.596e-05/0.2981, allocations: 106.5 kB / 0.5626 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.2981, allocations: 384 / 0.5626 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.705e-06/0.2981, allocations: 4.375 kB / 0.5626 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.646e-05/0.2982, allocations: 55.95 kB / 0.5627 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.2982, allocations: 7.938 kB / 0.5627 GB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-06/0.2982, allocations: 7.938 kB / 0.5627 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.2982, allocations: 0 / 0.5627 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.971e-05/0.2983, allocations: 25.7 kB / 0.5627 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001324/0.2984, allocations: 120.8 kB / 0.5628 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.77e-05/0.2985, allocations: 44.27 kB / 0.5629 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.539e-05/0.2985, allocations: 34.66 kB / 0.5629 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.703e-06/0.2985, allocations: 0 / 0.5629 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.689e-05/0.2985, allocations: 56.27 kB / 0.5629 GB, free: 1.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.2985, allocations: 0 / 0.5629 GB, free: 1.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001951/0.2987, allocations: 134.7 kB / 0.5631 GB, free: 1.348 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.2988, allocations: 81.05 kB / 0.5631 GB, free: 1.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.386e-05/0.2989, allocations: 89.86 kB / 0.5632 GB, free: 1.152 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.2989, allocations: 25.7 kB / 0.5633 GB, free: 1.121 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.207e-05/0.2989, allocations: 84.14 kB / 0.5633 GB, free: 1.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.209e-05/0.2989, allocations: 3.938 kB / 0.5633 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.299, allocations: 13.72 kB / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2991, allocations: 318.8 kB / 0.5637 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.285e-05/0.2991, allocations: 25.7 kB / 0.5637 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.885e-05/0.2992, allocations: 29.95 kB / 0.5637 GB, free: 0.625 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.081e-05/0.2992, allocations: 64.2 kB / 0.5638 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2992, allocations: 0 / 0.5638 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.236e-05/0.2993, allocations: 93.09 kB / 0.5639 GB, free: 448 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.56e-05/0.2994, allocations: 37.64 kB / 0.5639 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.2994, allocations: 0 / 0.5639 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.2994, allocations: 0 / 0.5639 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.2994, allocations: 0 / 0.5639 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.2994, allocations: 0 / 0.5639 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.562e-05/0.2994, allocations: 0 / 0.5639 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.2994, allocations: 8.094 kB / 0.5639 GB, free: 396 kB / 398.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 9.64e-05/0.2995, allocations: 132.9 kB / 0.564 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.474e-05/0.2995, allocations: 7.938 kB / 0.564 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.49e-05/0.2995, allocations: 6.984 kB / 0.564 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.2995, allocations: 0 / 0.564 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2995, allocations: 0 / 0.564 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2995, allocations: 0 / 0.564 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.2997, allocations: 120.8 kB / 0.5642 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2997, allocations: 0 / 0.5642 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.2997, allocations: 0 / 0.5642 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.2997, allocations: 7.938 kB / 0.5642 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.2997, allocations: 4 kB / 0.5642 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.155e-06/0.2997, allocations: 7.922 kB / 0.5642 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2997, allocations: 0 / 0.5642 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001714/0.2998, allocations: 112.5 kB / 0.5643 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.594e-06/0.2999, allocations: 11.94 kB / 0.5643 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.2999, allocations: 3.938 kB / 0.5643 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.2999, allocations: 0 / 0.5643 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.52e-05/0.2999, allocations: 0 / 0.5643 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.2999, allocations: 7.984 kB / 0.5643 GB, free: 15.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.718e-05/0.3, allocations: 79.31 kB / 0.5644 GB, free: 15.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3, allocations: 0 / 0.5644 GB, free: 15.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.3002, allocations: 27.88 kB / 0.5644 GB, free: 15.78 MB / 414.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.000905/0.3011, allocations: 0.7498 MB / 0.5651 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001518/0.3012, allocations: 110.8 kB / 0.5653 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3012, allocations: 0 / 0.5653 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.953e-05/0.3013, allocations: 85.09 kB / 0.5653 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.3014, allocations: 4 kB / 0.5653 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004002/0.3018, allocations: 144.3 kB / 0.5655 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.166e-05/0.3019, allocations: 63.42 kB / 0.5655 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.227e-06/0.3019, allocations: 0 / 0.5655 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.408e-05/0.302, allocations: 7.438 kB / 0.5655 GB, free: 14.5 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.302, allocations: 0 / 0.5655 GB, free: 14.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.3321, allocations: 2.034 MB / 0.5675 GB, free: 12.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.35, allocations: 6.719 kB / 0.5675 GB, free: 12.56 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.19476347323507]