Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.0008595/0.0008595, allocations: 88.28 kB / 21.43 MB, free: 3.133 MB / 18.57 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.005019/0.005019, allocations: 158 kB / 24.7 MB, free: 9.418 MB / 18.57 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 0.8895/0.8895, allocations: 177 MB / 204.9 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.2351/0.2351, allocations: 34.24 MB / 295.6 MB, free: 0.6914 MB / 266.7 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: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 443.4 MB, free: 1.105 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.524e-05/2.683e-05, allocations: 8.75 kB / 443.4 MB, free: 1.098 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001017/0.001044, allocations: 0.4891 MB / 443.9 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2142/0.2152, allocations: 1.352 MB / 445.2 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.483e-05/0.2152, allocations: 0 / 445.2 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.554e-05/0.2152, allocations: 0 / 445.2 MB, free: 43.65 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.2154, allocations: 10.86 kB / 445.2 MB, free: 43.64 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:466:3-498:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008161/0.2163, allocations: 262.7 kB / 445.5 MB, free: 43.59 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.144e-05/0.2163, allocations: 5.672 kB / 445.5 MB, free: 43.59 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.721e-05/0.2163, allocations: 2.906 kB / 445.5 MB, free: 43.59 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.868e-05/0.2164, allocations: 0.9688 kB / 445.5 MB, free: 43.59 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.316e-05/0.2164, allocations: 6.859 kB / 445.5 MB, free: 43.59 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.675e-06/0.2164, allocations: 0 / 445.5 MB, free: 43.59 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001517/0.2179, allocations: 0.7114 MB / 446.2 MB, free: 43.51 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-06/0.2179, allocations: 1.844 kB / 446.2 MB, free: 43.51 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.094e-05/0.218, allocations: 0 / 446.2 MB, free: 43.51 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.2182, allocations: 220.2 kB / 446.4 MB, free: 43.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2182, allocations: 0 / 446.4 MB, free: 43.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2182, allocations: 0 / 446.4 MB, free: 43.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.2182, allocations: 6.906 kB / 446.5 MB, free: 43.48 MB / 410.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.0002634/0.2185, allocations: 304.7 kB / 446.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2185, allocations: 11.19 kB / 446.8 MB, free: 43.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.2186, allocations: 0.9375 kB / 446.8 MB, free: 43.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.818e-05/0.2186, allocations: 108.4 kB / 446.9 MB, free: 43.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.2186, allocations: 384 / 446.9 MB, free: 43.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-06/0.2186, allocations: 384 / 446.9 MB, free: 43.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.061e-05/0.2187, allocations: 61.88 kB / 446.9 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.2187, allocations: 192 / 446.9 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.2187, allocations: 6.969 kB / 446.9 MB, free: 42.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2187, allocations: 5.781 kB / 446.9 MB, free: 42.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.737e-05/0.2188, allocations: 32.3 kB / 447 MB, free: 42.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.086e-05/0.2188, allocations: 100.5 kB / 447.1 MB, free: 42.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.646e-05/0.2189, allocations: 46.84 kB / 447.1 MB, free: 42.76 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.406e-05/0.2189, allocations: 33.19 kB / 447.1 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.883e-06/0.2189, allocations: 6.031 kB / 447.2 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.2189, allocations: 58.89 kB / 447.2 MB, free: 42.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.2189, allocations: 0 / 447.2 MB, free: 42.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001435/0.219, allocations: 125 kB / 447.3 MB, free: 42.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.2191, allocations: 77.11 kB / 447.4 MB, free: 42.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.892e-05/0.2191, allocations: 107.3 kB / 447.5 MB, free: 42.32 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-06/0.2191, allocations: 25.7 kB / 447.5 MB, free: 42.29 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.182e-05/0.2191, allocations: 86.14 kB / 447.6 MB, free: 42.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.2191, allocations: 1.375 kB / 447.6 MB, free: 42.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.849e-05/0.2192, allocations: 12.38 kB / 447.6 MB, free: 42.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.633e-05/0.2192, allocations: 310.8 kB / 447.9 MB, free: 41.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.2192, allocations: 31.61 kB / 448 MB, free: 41.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.007e-06/0.2192, allocations: 31.45 kB / 448 MB, free: 41.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.269e-05/0.2192, allocations: 59.17 kB / 448.1 MB, free: 41.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2192, allocations: 4 kB / 448.1 MB, free: 41.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.771e-05/0.2193, allocations: 95.64 kB / 448.2 MB, free: 41.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.2193, allocations: 31.52 kB / 448.2 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2193, allocations: 0 / 448.2 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.2193, allocations: 2.719 kB / 448.2 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.2193, allocations: 0 / 448.2 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.2193, allocations: 0 / 448.2 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.193e-05/0.2193, allocations: 3.938 kB / 448.2 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-06/0.2193, allocations: 0 / 448.2 MB, free: 41.61 MB / 410.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.293e-05/0.2194, allocations: 139 kB / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.328e-06/0.2194, allocations: 10.77 kB / 448.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.037e-05/0.2194, allocations: 3.156 kB / 448.3 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.2194, allocations: 0 / 448.3 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2194, allocations: 0 / 448.3 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2194, allocations: 7.875 kB / 448.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.6e-05/0.2194, allocations: 106.3 kB / 448.5 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2194, allocations: 2.969 kB / 448.5 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.21e-07/0.2194, allocations: 0 / 448.5 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.81e-07/0.2194, allocations: 0 / 448.5 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.2194, allocations: 0 / 448.5 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.2194, allocations: 0 / 448.5 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2194, allocations: 4 kB / 448.5 MB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.514e-05/0.2195, allocations: 125.2 kB / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.489e-06/0.2195, allocations: 3.938 kB / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.869e-06/0.2195, allocations: 2.469 kB / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.35e-06/0.2195, allocations: 7.438 kB / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.258e-05/0.2195, allocations: 5.953 kB / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-06/0.2195, allocations: 0 / 448.6 MB, free: 41.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.168e-05/0.2195, allocations: 77.91 kB / 448.7 MB, free: 41.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2195, allocations: 0 / 448.7 MB, free: 41.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001867/0.2197, allocations: 70.81 kB / 448.7 MB, free: 41.08 MB / 410.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.0004141/0.2201, allocations: 345.8 kB / 449.1 MB, free: 40.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.282e-05/0.2202, allocations: 119.2 kB / 449.2 MB, free: 40.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2202, allocations: 2.719 kB / 449.2 MB, free: 40.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.543e-05/0.2202, allocations: 83.64 kB / 449.3 MB, free: 40.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001031/0.2203, allocations: 2.719 kB / 449.3 MB, free: 40.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001547/0.2205, allocations: 130.9 kB / 449.4 MB, free: 40.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.508e-05/0.2205, allocations: 57.98 kB / 449.5 MB, free: 40.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.094e-05/0.2205, allocations: 11.62 kB / 449.5 MB, free: 40.49 MB / 410.7 MB Notification: Performance of SimCode: time 7.32e-07/0.2205, allocations: 4 kB / 449.5 MB, free: 40.49 MB / 410.7 MB Notification: Performance of Templates: time 0.002229/0.2228, allocations: 1.693 MB / 451.2 MB, free: 40.3 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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: 5.147433209232986]