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.001323/0.001323, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002111/0.002111, allocations: 212.7 kB / 24.52 MB, free: 3.91 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.449/1.449, allocations: 230.5 MB / 258.2 MB, free: 7.785 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.2295/0.2295, allocations: 46.95 MB / 361.6 MB, free: 3.945 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestReadFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 71.89 kB / 0.4969 GB, free: 7.598 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2968, allocations: 66.08 MB / 0.5614 GB, free: 4.062 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001849/0.2986, allocations: 479.7 kB / 0.5619 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.3, allocations: 0.8708 MB / 0.5627 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.611e-05/0.3001, allocations: 0 / 0.5627 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.333e-05/0.3001, allocations: 8 kB / 0.5627 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.3002, allocations: 4 kB / 0.5627 GB, free: 2.715 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.0005843/0.3008, allocations: 58.16 kB / 0.5628 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.43e-05/0.3009, allocations: 4 kB / 0.5628 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.272e-05/0.3009, allocations: 3.984 kB / 0.5628 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.68e-05/0.3009, allocations: 3.938 kB / 0.5628 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.922e-05/0.301, allocations: 6.672 kB / 0.5628 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.585e-06/0.301, allocations: 0 / 0.5628 GB, free: 2.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.3011, allocations: 55.95 kB / 0.5629 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.826e-06/0.3012, allocations: 0 / 0.5629 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.884e-05/0.3012, allocations: 0 / 0.5629 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.3013, allocations: 63.64 kB / 0.5629 GB, free: 2.531 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3013, allocations: 4 kB / 0.5629 GB, free: 2.527 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3013, allocations: 0 / 0.5629 GB, free: 2.527 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.399e-06/0.3013, allocations: 0 / 0.5629 GB, free: 2.527 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.0003597/0.3017, allocations: 278 kB / 0.5632 GB, free: 2.219 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3017, allocations: 12.03 kB / 0.5632 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.504e-05/0.3018, allocations: 4.125 kB / 0.5632 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.773e-05/0.3018, allocations: 34.75 kB / 0.5632 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.298e-05/0.3018, allocations: 0.9375 kB / 0.5632 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.3019, allocations: 106.5 kB / 0.5633 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.3019, allocations: 12.36 kB / 0.5634 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-06/0.3019, allocations: 4.312 kB / 0.5634 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.375e-05/0.302, allocations: 59.72 kB / 0.5634 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.302, allocations: 0 / 0.5634 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.3021, allocations: 3.984 kB / 0.5634 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.3021, allocations: 0 / 0.5634 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.252e-05/0.3021, allocations: 29.7 kB / 0.5635 GB, free: 1.906 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001352/0.3022, allocations: 112.8 kB / 0.5636 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.353e-05/0.3023, allocations: 48.31 kB / 0.5636 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.128e-05/0.3023, allocations: 34.5 kB / 0.5636 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.3023, allocations: 11.92 kB / 0.5636 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.446e-05/0.3024, allocations: 64.27 kB / 0.5637 GB, free: 1.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3024, allocations: 0 / 0.5637 GB, free: 1.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001955/0.3026, allocations: 114.8 kB / 0.5638 GB, free: 1.422 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.3027, allocations: 81.09 kB / 0.5639 GB, free: 1.324 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.526e-05/0.3027, allocations: 93.86 kB / 0.564 GB, free: 1.223 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.3027, allocations: 25.7 kB / 0.564 GB, free: 1.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.676e-05/0.3028, allocations: 80.14 kB / 0.5641 GB, free: 1.109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.294e-05/0.3028, allocations: 0 / 0.5641 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-05/0.3028, allocations: 17.97 kB / 0.5641 GB, free: 1.086 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.303, allocations: 314.8 kB / 0.5644 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.675e-05/0.303, allocations: 33.64 kB / 0.5644 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.274e-05/0.303, allocations: 29.69 kB / 0.5645 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.793e-05/0.3031, allocations: 60.27 kB / 0.5645 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3031, allocations: 0 / 0.5645 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.03e-05/0.3032, allocations: 89.11 kB / 0.5646 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.751e-05/0.3032, allocations: 37.62 kB / 0.5646 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.3032, allocations: 0 / 0.5646 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3032, allocations: 4 kB / 0.5646 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.3032, allocations: 4.094 kB / 0.5647 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.3032, allocations: 0 / 0.5647 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.629e-05/0.3033, allocations: 0 / 0.5647 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.3033, allocations: 0 / 0.5647 GB, free: 476 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 0.0001043/0.3034, allocations: 140.8 kB / 0.5648 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.3034, allocations: 3.938 kB / 0.5648 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.037e-05/0.3034, allocations: 3 kB / 0.5648 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.3034, allocations: 0 / 0.5648 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3034, allocations: 0 / 0.5648 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.3034, allocations: 11.92 kB / 0.5648 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000103/0.3035, allocations: 120.8 kB / 0.5649 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.3035, allocations: 0 / 0.5649 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3035, allocations: 0 / 0.5649 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.3035, allocations: 3.938 kB / 0.5649 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.3035, allocations: 4 kB / 0.5649 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3035, allocations: 4 kB / 0.5649 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3035, allocations: 0 / 0.5649 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001339/0.3036, allocations: 120.5 kB / 0.565 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.705e-06/0.3037, allocations: 7.891 kB / 0.5651 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.3037, allocations: 4 kB / 0.5651 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.062e-05/0.3037, allocations: 0 / 0.5651 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.186e-05/0.3037, allocations: 8.016 kB / 0.5651 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.3037, allocations: 0 / 0.5651 GB, free: 15.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.748e-05/0.3037, allocations: 83.22 kB / 0.5651 GB, free: 15.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3037, allocations: 0 / 0.5651 GB, free: 15.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002178/0.304, allocations: 19.94 kB / 0.5652 GB, free: 15.85 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.0007624/0.3047, allocations: 0.739 MB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001306/0.3048, allocations: 118.8 kB / 0.566 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3049, allocations: 0 / 0.566 GB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.525e-05/0.3049, allocations: 85.05 kB / 0.5661 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001273/0.305, allocations: 8.062 kB / 0.5661 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003273/0.3054, allocations: 148.3 kB / 0.5662 GB, free: 14.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.999e-05/0.3054, allocations: 59.34 kB / 0.5663 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.376e-06/0.3054, allocations: 0 / 0.5663 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.095e-05/0.3054, allocations: 7.438 kB / 0.5663 GB, free: 14.57 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3054, allocations: 0 / 0.5663 GB, free: 14.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02194/0.3274, allocations: 1.687 MB / 0.5679 GB, free: 13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.04, allocations: 4.062 kB / 0.5679 GB, free: 12.99 MB / 414.1 MB " [Timeout remaining time 648] (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.895171834970824]