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.001527/0.001527, allocations: 112.5 kB / 21.19 MB, free: 0.7617 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.001702/0.001702, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.413/1.413, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.2292/0.2292, allocations: 46.94 MB / 361.6 MB, free: 4.254 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: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 71.89 kB / 0.4974 GB, free: 7.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3221, allocations: 66.02 MB / 0.5618 GB, free: 4.406 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001737/0.3238, allocations: 499.4 kB / 0.5623 GB, free: 3.918 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.3254, allocations: 0.8746 MB / 0.5632 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.241e-05/0.3254, allocations: 0 / 0.5632 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.523e-05/0.3254, allocations: 0 / 0.5632 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.3256, allocations: 7.938 kB / 0.5632 GB, free: 3.035 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.0006875/0.3263, allocations: 55.83 kB / 0.5632 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.851e-05/0.3263, allocations: 4 kB / 0.5632 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.89e-05/0.3264, allocations: 3.984 kB / 0.5632 GB, free: 2.973 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.159e-05/0.3264, allocations: 4 kB / 0.5633 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.36e-05/0.3265, allocations: 3.984 kB / 0.5633 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.586e-06/0.3265, allocations: 0 / 0.5633 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.3267, allocations: 67.95 kB / 0.5633 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.674e-06/0.3267, allocations: 0 / 0.5633 GB, free: 2.898 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.479e-05/0.3267, allocations: 3.938 kB / 0.5633 GB, free: 2.895 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.3268, allocations: 55.66 kB / 0.5634 GB, free: 2.844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3268, allocations: 0 / 0.5634 GB, free: 2.844 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3268, allocations: 0 / 0.5634 GB, free: 2.844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.3269, allocations: 3.938 kB / 0.5634 GB, free: 2.84 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.0003935/0.3272, allocations: 278.5 kB / 0.5636 GB, free: 2.535 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3273, allocations: 12.03 kB / 0.5637 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.506e-05/0.3273, allocations: 0.9375 kB / 0.5637 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.3275, allocations: 114.5 kB / 0.5638 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.3275, allocations: 384 / 0.5638 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.3275, allocations: 4.375 kB / 0.5638 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.54e-05/0.3276, allocations: 26.27 kB / 0.5638 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.3276, allocations: 192 / 0.5638 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.3276, allocations: 11.92 kB / 0.5638 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.3276, allocations: 0 / 0.5638 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.416e-05/0.3276, allocations: 3.938 kB / 0.5638 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001576/0.3278, allocations: 124.7 kB / 0.5639 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.626e-05/0.3278, allocations: 22.61 kB / 0.564 GB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.455e-05/0.3278, allocations: 4.859 kB / 0.564 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-06/0.3278, allocations: 0 / 0.564 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.376e-05/0.3279, allocations: 60.33 kB / 0.564 GB, free: 2.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.3279, allocations: 0 / 0.564 GB, free: 2.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001886/0.3281, allocations: 71.27 kB / 0.5641 GB, free: 1.977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.3281, allocations: 85.23 kB / 0.5642 GB, free: 1.875 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.478e-05/0.3282, allocations: 89.86 kB / 0.5643 GB, free: 1.777 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.3282, allocations: 25.7 kB / 0.5643 GB, free: 1.746 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.674e-05/0.3283, allocations: 84.14 kB / 0.5644 GB, free: 1.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.3283, allocations: 0 / 0.5644 GB, free: 1.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.558e-05/0.3283, allocations: 9.719 kB / 0.5644 GB, free: 1.645 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3284, allocations: 322.8 kB / 0.5647 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.287e-06/0.3284, allocations: 128 / 0.5647 GB, free: 1.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.04e-06/0.3285, allocations: 4 kB / 0.5647 GB, free: 1.316 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.019e-05/0.3285, allocations: 60.27 kB / 0.5647 GB, free: 1.242 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3285, allocations: 0 / 0.5647 GB, free: 1.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.269e-05/0.3286, allocations: 63.34 kB / 0.5648 GB, free: 1.168 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.684e-05/0.3286, allocations: 33.69 kB / 0.5648 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3286, allocations: 3.938 kB / 0.5648 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.3286, allocations: 4 kB / 0.5648 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.3286, allocations: 0 / 0.5648 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.83e-06/0.3287, allocations: 4.094 kB / 0.5648 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.42e-05/0.3287, allocations: 0 / 0.5648 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.3287, allocations: 0 / 0.5648 GB, free: 1.117 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 0.0001029/0.3288, allocations: 143.5 kB / 0.565 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.083e-06/0.3288, allocations: 0 / 0.565 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.188e-05/0.3288, allocations: 6.938 kB / 0.565 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3288, allocations: 0 / 0.565 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.3288, allocations: 3.938 kB / 0.565 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3288, allocations: 3.984 kB / 0.565 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.3289, allocations: 120.8 kB / 0.5651 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.02e-07/0.3289, allocations: 0 / 0.5651 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3289, allocations: 0 / 0.5651 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.61e-07/0.3289, allocations: 3.938 kB / 0.5651 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.3289, allocations: 11.94 kB / 0.5651 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.3289, allocations: 0 / 0.5651 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3289, allocations: 0 / 0.5651 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001118/0.329, allocations: 94.77 kB / 0.5652 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.091e-06/0.329, allocations: 7.984 kB / 0.5652 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.3291, allocations: 3.938 kB / 0.5652 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-06/0.3291, allocations: 0 / 0.5652 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.942e-05/0.3291, allocations: 11.98 kB / 0.5652 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.3291, allocations: 0 / 0.5652 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.561e-05/0.3291, allocations: 75.28 kB / 0.5653 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3291, allocations: 0 / 0.5653 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.3294, allocations: 19.94 kB / 0.5653 GB, free: 0.5352 MB / 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.0005175/0.3299, allocations: 188 kB / 0.5655 GB, free: 384 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002336/0.3301, allocations: 67.41 kB / 0.5656 GB, free: 304 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3301, allocations: 0 / 0.5656 GB, free: 304 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.319e-05/0.3302, allocations: 55.34 kB / 0.5656 GB, free: 236 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.3303, allocations: 4 kB / 0.5656 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002526/0.3306, allocations: 110.7 kB / 0.5657 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.3309, allocations: 0.669 MB / 0.5664 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.028e-05/0.3309, allocations: 11.44 kB / 0.5664 GB, free: 15.38 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3309, allocations: 0 / 0.5664 GB, free: 15.38 MB / 414.1 MB Notification: Performance of Templates: time 0.002842/0.3338, allocations: 0.8249 MB / 0.5672 GB, free: 14.55 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (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 & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] 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: 7.378449203912169]