Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002164/0.002164, allocations: 209.6 kB / 23.73 MB, free: 4.41 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 257.5 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2267/0.2267, allocations: 46.97 MB / 360.9 MB, free: 4.047 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003167/0.003167, allocations: 71.89 kB / 0.4961 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3231, allocations: 66.03 MB / 0.5606 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001578/0.3247, allocations: 487.8 kB / 0.561 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.3262, allocations: 0.8708 MB / 0.5619 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.838e-05/0.3262, allocations: 3.938 kB / 0.5619 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.958e-05/0.3262, allocations: 0 / 0.5619 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002205/0.3264, allocations: 11.94 kB / 0.5619 GB, free: 2.926 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362: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.0006542/0.3271, allocations: 55.81 kB / 0.5619 GB, free: 2.871 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.919e-05/0.3272, allocations: 15.92 kB / 0.562 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.228e-05/0.3272, allocations: 0 / 0.562 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.819e-05/0.3272, allocations: 0 / 0.562 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.603e-05/0.3273, allocations: 0 / 0.562 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.756e-06/0.3273, allocations: 4 kB / 0.562 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.3275, allocations: 55.95 kB / 0.562 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.937e-06/0.3275, allocations: 0 / 0.562 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.063e-05/0.3275, allocations: 0 / 0.562 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001688/0.3277, allocations: 63.64 kB / 0.5621 GB, free: 2.738 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3277, allocations: 0 / 0.5621 GB, free: 2.738 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3277, allocations: 0 / 0.5621 GB, free: 2.738 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.3277, allocations: 0 / 0.5621 GB, free: 2.738 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.000407/0.3281, allocations: 280 kB / 0.5624 GB, free: 2.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.3281, allocations: 12.03 kB / 0.5624 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.248e-05/0.3281, allocations: 30.75 kB / 0.5624 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.529e-05/0.3282, allocations: 0.9375 kB / 0.5624 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.3283, allocations: 106.5 kB / 0.5625 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.3283, allocations: 8.312 kB / 0.5625 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-06/0.3283, allocations: 384 / 0.5625 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.934e-05/0.3284, allocations: 59.97 kB / 0.5626 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.3284, allocations: 3.938 kB / 0.5626 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.3284, allocations: 3.984 kB / 0.5626 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.3284, allocations: 0 / 0.5626 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.154e-05/0.3285, allocations: 25.7 kB / 0.5626 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001419/0.3286, allocations: 120.8 kB / 0.5627 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.154e-05/0.3287, allocations: 48.25 kB / 0.5628 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.752e-05/0.3287, allocations: 34.5 kB / 0.5628 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.053e-06/0.3287, allocations: 0 / 0.5628 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/0.3288, allocations: 60.31 kB / 0.5628 GB, free: 1.793 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3288, allocations: 11.94 kB / 0.5629 GB, free: 1.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002042/0.329, allocations: 118.8 kB / 0.563 GB, free: 1.641 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.329, allocations: 81.09 kB / 0.563 GB, free: 1.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.363e-05/0.3291, allocations: 89.86 kB / 0.5631 GB, free: 1.445 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.3291, allocations: 29.7 kB / 0.5632 GB, free: 1.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.345e-05/0.3291, allocations: 80.14 kB / 0.5632 GB, free: 1.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.267e-05/0.3291, allocations: 0 / 0.5632 GB, free: 1.328 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.969e-05/0.3292, allocations: 17.72 kB / 0.5633 GB, free: 1.305 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3293, allocations: 314.8 kB / 0.5636 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.115e-05/0.3293, allocations: 25.95 kB / 0.5636 GB, free: 0.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.227e-05/0.3294, allocations: 33.7 kB / 0.5636 GB, free: 0.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.925e-05/0.3294, allocations: 60.25 kB / 0.5637 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.3294, allocations: 4 kB / 0.5637 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.66e-05/0.3295, allocations: 89.11 kB / 0.5638 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.3295, allocations: 37.62 kB / 0.5638 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3296, allocations: 3.984 kB / 0.5638 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.3296, allocations: 0 / 0.5638 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.3296, allocations: 0 / 0.5638 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.3296, allocations: 96 / 0.5638 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.95e-05/0.3296, allocations: 12 kB / 0.5638 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.3296, allocations: 3.938 kB / 0.5638 GB, free: 0.6719 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.3297, allocations: 131.5 kB / 0.5639 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.12e-05/0.3297, allocations: 7.938 kB / 0.5639 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.104e-05/0.3297, allocations: 6.984 kB / 0.5639 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.3297, allocations: 0 / 0.5639 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3297, allocations: 0 / 0.5639 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-06/0.3297, allocations: 0 / 0.5639 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.451e-05/0.3298, allocations: 124.8 kB / 0.5641 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3298, allocations: 0 / 0.5641 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.32e-07/0.3298, allocations: 4 kB / 0.5641 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.3298, allocations: 3.938 kB / 0.5641 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.3298, allocations: 0 / 0.5641 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.3298, allocations: 0 / 0.5641 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3298, allocations: 0 / 0.5641 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001166/0.3299, allocations: 120.5 kB / 0.5642 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.91e-06/0.3299, allocations: 3.953 kB / 0.5642 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.33, allocations: 7.875 kB / 0.5642 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.919e-06/0.33, allocations: 0 / 0.5642 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.908e-05/0.33, allocations: 11.92 kB / 0.5642 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.33, allocations: 7.969 kB / 0.5642 GB, free: 164 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.879e-05/0.33, allocations: 75.28 kB / 0.5643 GB, free: 88 kB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.33, allocations: 0 / 0.5643 GB, free: 88 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.3302, allocations: 23.94 kB / 0.5643 GB, free: 64 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.0007914/0.331, allocations: 0.743 MB / 0.565 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001354/0.3312, allocations: 118.8 kB / 0.5652 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.3312, allocations: 0 / 0.5652 GB, free: 15.17 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.961e-05/0.3312, allocations: 85.05 kB / 0.5652 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.3314, allocations: 0 / 0.5652 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003631/0.3317, allocations: 148.5 kB / 0.5654 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.237e-05/0.3318, allocations: 59.34 kB / 0.5654 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.306e-06/0.3318, allocations: 0 / 0.5654 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.553e-05/0.3318, allocations: 11.44 kB / 0.5654 GB, free: 14.79 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3318, allocations: 0 / 0.5654 GB, free: 14.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.3613, allocations: 2.023 MB / 0.5674 GB, free: 12.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.7, allocations: 6.219 kB / 0.5674 GB, free: 12.9 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestReadFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.593055571895093]