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.001301/0.001301, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001481/0.001481, allocations: 215.1 kB / 23.75 MB, free: 4.672 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.514/1.514, allocations: 230.5 MB / 257.4 MB, free: 7.984 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.2365/0.2365, allocations: 46.93 MB / 360.8 MB, free: 4.168 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.002551/0.002551, allocations: 83.86 kB / 0.4962 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3119, allocations: 66.08 MB / 0.5607 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001564/0.3135, allocations: 484.6 kB / 0.5612 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.3149, allocations: 0.8785 MB / 0.562 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.782e-05/0.3149, allocations: 0 / 0.562 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.226e-05/0.3149, allocations: 0 / 0.562 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.3151, allocations: 4 kB / 0.562 GB, free: 2.957 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.0006025/0.3157, allocations: 64.38 kB / 0.5621 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.254e-05/0.3157, allocations: 4 kB / 0.5621 GB, free: 2.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.407e-05/0.3158, allocations: 7.984 kB / 0.5621 GB, free: 2.887 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.547e-05/0.3158, allocations: 0 / 0.5621 GB, free: 2.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.304e-05/0.3158, allocations: 7.938 kB / 0.5621 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.745e-06/0.3159, allocations: 0 / 0.5621 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001593/0.316, allocations: 71.88 kB / 0.5622 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.042e-06/0.316, allocations: 0 / 0.5622 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.728e-05/0.316, allocations: 0 / 0.5622 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.3162, allocations: 47.73 kB / 0.5622 GB, free: 2.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3162, allocations: 0 / 0.5622 GB, free: 2.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.3162, allocations: 3.984 kB / 0.5622 GB, free: 2.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.3162, allocations: 0 / 0.5622 GB, free: 2.762 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.0003416/0.3165, allocations: 285.9 kB / 0.5625 GB, free: 2.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.3166, allocations: 16.02 kB / 0.5625 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.983e-05/0.3166, allocations: 30.75 kB / 0.5626 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.252e-05/0.3166, allocations: 0.9375 kB / 0.5626 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.427e-05/0.3167, allocations: 102.5 kB / 0.5627 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.3167, allocations: 384 / 0.5627 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-06/0.3167, allocations: 4.375 kB / 0.5627 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.513e-05/0.3168, allocations: 30.2 kB / 0.5627 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3168, allocations: 7.938 kB / 0.5627 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.3168, allocations: 4 kB / 0.5627 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.3168, allocations: 0 / 0.5627 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.452e-05/0.3168, allocations: 0 / 0.5627 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001387/0.317, allocations: 124.7 kB / 0.5628 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.087e-05/0.317, allocations: 18.61 kB / 0.5628 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.296e-05/0.317, allocations: 4.859 kB / 0.5628 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.525e-06/0.317, allocations: 0 / 0.5628 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.079e-05/0.3171, allocations: 68.27 kB / 0.5629 GB, free: 1.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3171, allocations: 0 / 0.5629 GB, free: 1.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001685/0.3173, allocations: 71.33 kB / 0.563 GB, free: 1.852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.3173, allocations: 77.11 kB / 0.563 GB, free: 1.758 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.643e-05/0.3174, allocations: 89.86 kB / 0.5631 GB, free: 1.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.3174, allocations: 29.7 kB / 0.5632 GB, free: 1.625 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.381e-05/0.3174, allocations: 80.39 kB / 0.5632 GB, free: 1.543 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.168e-05/0.3175, allocations: 4 kB / 0.5632 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.3175, allocations: 17.7 kB / 0.5633 GB, free: 1.516 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3176, allocations: 314.8 kB / 0.5636 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.646e-06/0.3176, allocations: 0 / 0.5636 GB, free: 1.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.89e-06/0.3176, allocations: 0 / 0.5636 GB, free: 1.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.915e-05/0.3177, allocations: 64.2 kB / 0.5636 GB, free: 1.121 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3177, allocations: 0 / 0.5636 GB, free: 1.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.217e-05/0.3178, allocations: 71.45 kB / 0.5637 GB, free: 1.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.3178, allocations: 37.58 kB / 0.5637 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3178, allocations: 0 / 0.5637 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.3178, allocations: 4 kB / 0.5637 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.525e-06/0.3178, allocations: 4 kB / 0.5637 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.3178, allocations: 0 / 0.5637 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.475e-05/0.3179, allocations: 0 / 0.5637 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.3179, allocations: 0 / 0.5637 GB, free: 0.9883 MB / 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.76e-05/0.318, allocations: 136.9 kB / 0.5639 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.196e-05/0.318, allocations: 11.95 kB / 0.5639 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.085e-05/0.318, allocations: 3 kB / 0.5639 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.318, allocations: 0 / 0.5639 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.318, allocations: 0 / 0.5639 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-06/0.318, allocations: 0 / 0.5639 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.3181, allocations: 124.8 kB / 0.564 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.3181, allocations: 3.938 kB / 0.564 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3181, allocations: 0 / 0.564 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3181, allocations: 7.922 kB / 0.564 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.3181, allocations: 4 kB / 0.564 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.3181, allocations: 0 / 0.564 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3181, allocations: 4 kB / 0.564 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001015/0.3182, allocations: 86.84 kB / 0.5641 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-06/0.3182, allocations: 7.938 kB / 0.5641 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.3182, allocations: 3.938 kB / 0.5641 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.053e-05/0.3182, allocations: 3.938 kB / 0.5641 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.39e-05/0.3183, allocations: 4 kB / 0.5641 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.3183, allocations: 0 / 0.5641 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.397e-05/0.3183, allocations: 79.31 kB / 0.5642 GB, free: 444 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3183, allocations: 0 / 0.5642 GB, free: 444 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002277/0.3185, allocations: 19.94 kB / 0.5642 GB, free: 424 kB / 398.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.0007709/0.3193, allocations: 0.7165 MB / 0.5649 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.387e-05/0.3194, allocations: 55.41 kB / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3194, allocations: 8.062 kB / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.701e-05/0.3194, allocations: 51.41 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.3196, allocations: 9.422 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003169/0.3199, allocations: 122.6 kB / 0.5651 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.3202, allocations: 0.6729 MB / 0.5658 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.404e-06/0.3202, allocations: 4 kB / 0.5658 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.083e-05/0.3202, allocations: 7.438 kB / 0.5658 GB, free: 14.67 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3202, allocations: 0 / 0.5658 GB, free: 14.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.028/0.3482, allocations: 1.62 MB / 0.5674 GB, free: 13.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.79, allocations: 3.938 kB / 0.5674 GB, free: 13.14 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.632472539087757]