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.001069/0.001069, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001542/0.002611, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.00106/0.00106, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001289/0.002349, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9432/0.9432, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08245/1.026, allocations: 53.64 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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.2282/0.2282, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02668/0.2549, allocations: 13.1 MB / 291.3 MB, free: 7.359 MB / 282.7 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 1.252e-06/1.252e-06, allocations: 0 / 292.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.906e-05/2.031e-05, allocations: 3.078 kB / 292.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001122/0.001143, allocations: 0.5321 MB / 293.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007795/0.001922, allocations: 0.9314 MB / 294.1 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.845e-05/0.001941, allocations: 0 / 294.1 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.158e-06/0.001945, allocations: 4 kB / 294.1 MB, free: 4.848 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.525e-05/0.002, allocations: 3.938 kB / 294.1 MB, free: 4.844 MB / 282.7 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.0003748/0.002375, allocations: 60.84 kB / 294.1 MB, free: 4.793 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.205e-05/0.002427, allocations: 3.938 kB / 294.1 MB, free: 4.789 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.144e-05/0.002458, allocations: 7.938 kB / 294.1 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.57e-05/0.002494, allocations: 0.5 kB / 294.1 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.745e-05/0.002542, allocations: 4 kB / 294.1 MB, free: 4.777 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.148e-06/0.002551, allocations: 0 / 294.1 MB, free: 4.777 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.002663, allocations: 63.88 kB / 294.2 MB, free: 4.715 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.163e-06/0.00267, allocations: 0 / 294.2 MB, free: 4.715 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.184e-05/0.002682, allocations: 3.938 kB / 294.2 MB, free: 4.711 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.002802, allocations: 55.88 kB / 294.3 MB, free: 4.656 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-05/0.002817, allocations: 0 / 294.3 MB, free: 4.656 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.002817, allocations: 0 / 294.3 MB, free: 4.656 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.00283, allocations: 0 / 294.3 MB, free: 4.656 MB / 282.7 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.000268/0.003098, allocations: 254.3 kB / 294.5 MB, free: 4.375 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.594e-05/0.003124, allocations: 12.03 kB / 294.5 MB, free: 4.363 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.528e-05/0.003149, allocations: 4.875 kB / 294.5 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.849e-05/0.003218, allocations: 109.8 kB / 294.6 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-06/0.003227, allocations: 384 / 294.6 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.00324, allocations: 384 / 294.6 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.415e-05/0.003304, allocations: 63.95 kB / 294.7 MB, free: 4.152 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.00331, allocations: 4.172 kB / 294.7 MB, free: 4.148 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-06/0.003315, allocations: 384 / 294.7 MB, free: 4.148 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.003319, allocations: 4.312 kB / 294.7 MB, free: 4.145 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.666e-05/0.003336, allocations: 33.64 kB / 294.7 MB, free: 4.105 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.073e-05/0.003397, allocations: 61.05 kB / 294.8 MB, free: 4.031 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.914e-05/0.003436, allocations: 48.25 kB / 294.9 MB, free: 3.969 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.466e-05/0.003451, allocations: 30.56 kB / 294.9 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-06/0.003454, allocations: 3.984 kB / 294.9 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.003484, allocations: 64.33 kB / 294.9 MB, free: 3.848 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.003484, allocations: 4 kB / 295 MB, free: 3.844 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 9.474e-05/0.003579, allocations: 110.8 kB / 295.1 MB, free: 3.711 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.00361, allocations: 85.03 kB / 295.1 MB, free: 3.609 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.685e-05/0.003657, allocations: 94.72 kB / 295.2 MB, free: 3.504 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.214e-06/0.003664, allocations: 25.7 kB / 295.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.777e-05/0.003682, allocations: 84.14 kB / 295.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.269e-05/0.003695, allocations: 1.203 kB / 295.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.987e-05/0.003715, allocations: 13.7 kB / 295.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.341e-05/0.003778, allocations: 318.8 kB / 295.7 MB, free: 3.047 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.003789, allocations: 29.95 kB / 295.7 MB, free: 3.012 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.08e-05/0.003799, allocations: 33.69 kB / 295.7 MB, free: 2.973 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.77e-05/0.003827, allocations: 64.27 kB / 295.8 MB, free: 2.895 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.003829, allocations: 0 / 295.8 MB, free: 2.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.03e-05/0.003869, allocations: 89.05 kB / 295.9 MB, free: 2.789 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.003899, allocations: 37.69 kB / 295.9 MB, free: 2.746 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.003902, allocations: 0 / 295.9 MB, free: 2.746 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.933e-06/0.003909, allocations: 0 / 295.9 MB, free: 2.746 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.887e-06/0.003913, allocations: 0 / 295.9 MB, free: 2.746 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.497e-06/0.003917, allocations: 96 / 295.9 MB, free: 2.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.03e-05/0.003927, allocations: 4 kB / 295.9 MB, free: 2.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.003932, allocations: 0 / 295.9 MB, free: 2.742 MB / 282.7 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 4.801e-05/0.00398, allocations: 139.5 kB / 296.1 MB, free: 2.59 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-06/0.003984, allocations: 0 / 296.1 MB, free: 2.59 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.518e-06/0.003993, allocations: 10.98 kB / 296.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.003994, allocations: 0 / 296.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-06/0.003995, allocations: 0 / 296.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-06/0.003997, allocations: 0 / 296.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.56e-05/0.004032, allocations: 65.8 kB / 296.1 MB, free: 2.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.004034, allocations: 4 kB / 296.1 MB, free: 2.496 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.9e-07/0.004034, allocations: 7.938 kB / 296.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.426e-06/0.004038, allocations: 0 / 296.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-07/0.004038, allocations: 0 / 296.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.926e-06/0.004041, allocations: 0 / 296.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.82e-07/0.004042, allocations: 0 / 296.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.004043, allocations: 0 / 296.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.408e-05/0.004097, allocations: 120.4 kB / 296.3 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.977e-06/0.004106, allocations: 0 / 296.3 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.418e-06/0.00411, allocations: 0 / 296.3 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.306e-05/0.004123, allocations: 11.98 kB / 296.3 MB, free: 2.328 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-06/0.004125, allocations: 0 / 296.3 MB, free: 2.328 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.971e-06/0.004131, allocations: 8.891 kB / 296.3 MB, free: 2.316 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004131, allocations: 0 / 296.3 MB, free: 2.316 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001067/0.004237, allocations: 19.94 kB / 296.3 MB, free: 2.297 MB / 282.7 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.0003539/0.004591, allocations: 230 kB / 296.5 MB, free: 2.141 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.655e-05/0.004668, allocations: 115.7 kB / 296.6 MB, free: 2 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.004672, allocations: 4 kB / 296.6 MB, free: 1.996 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.92e-05/0.004701, allocations: 97.88 kB / 296.7 MB, free: 1.879 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.929e-05/0.00475, allocations: 7.938 kB / 296.7 MB, free: 1.871 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001213/0.004872, allocations: 114.1 kB / 296.9 MB, free: 1.727 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.45e-05/0.004896, allocations: 51.36 kB / 296.9 MB, free: 1.656 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.017e-06/0.0049, allocations: 4 kB / 296.9 MB, free: 1.652 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.004929, allocations: 51.38 kB / 297 MB, free: 1.602 MB / 282.7 MB Notification: Performance of SimCode: time 4.11e-07/0.00493, allocations: 0 / 297 MB, free: 1.602 MB / 282.7 MB Notification: Performance of Templates: time 0.001894/0.006824, allocations: 0.7667 MB / 297.7 MB, free: 0.832 MB / 282.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7379799969494343]