Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.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.005451/0.005451, allocations: 103.4 kB / 21.98 MB, free: 5.227 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.0014/0.0014, allocations: 222.4 kB / 25.3 MB, free: 3.191 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.473/1.473, allocations: 230.5 MB / 258.9 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2249/0.2249, allocations: 46.93 MB / 362.3 MB, free: 4.191 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-beta.om/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.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002317/0.002317, allocations: 75.88 kB / 0.4982 GB, free: 7.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.314, allocations: 66.09 MB / 0.5627 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001657/0.3156, allocations: 493 kB / 0.5632 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00803/0.3237, allocations: 4.951 MB / 0.568 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.048e-05/0.3237, allocations: 0 / 0.568 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.477e-05/0.3237, allocations: 0 / 0.568 GB, free: 14.78 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.873e-06/0.3237, allocations: 0 / 0.568 GB, free: 14.78 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:214:3-483:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.008238/0.3319, allocations: 3.277 MB / 0.5712 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.895e-05/0.332, allocations: 4 kB / 0.5712 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.246e-05/0.3321, allocations: 0 / 0.5712 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.656e-05/0.3321, allocations: 0 / 0.5712 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.036e-05/0.3321, allocations: 7.984 kB / 0.5712 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.462e-06/0.3321, allocations: 0 / 0.5712 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03198/0.3641, allocations: 21.05 MB / 0.5918 GB, free: 6.422 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.344e-05/0.3641, allocations: 0 / 0.5918 GB, free: 6.422 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.209e-05/0.3641, allocations: 3.938 kB / 0.5918 GB, free: 6.418 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03861/0.4027, allocations: 27.6 MB / 0.6188 GB, free: 10.78 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4027, allocations: 0 / 0.6188 GB, free: 10.78 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4027, allocations: 3.938 kB / 0.6188 GB, free: 10.77 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.4028, allocations: 0 / 0.6188 GB, free: 10.77 MB / 462.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.008064/0.4108, allocations: 0.5983 MB / 0.6193 GB, free: 10.14 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.4109, allocations: 8.031 kB / 0.6194 GB, free: 10.13 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.068e-05/0.4109, allocations: 8.875 kB / 0.6194 GB, free: 10.12 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.848e-05/0.411, allocations: 113.9 kB / 0.6195 GB, free: 9.984 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.411, allocations: 0 / 0.6195 GB, free: 9.984 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.411, allocations: 0 / 0.6195 GB, free: 9.984 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.4111, allocations: 29.7 kB / 0.6195 GB, free: 9.949 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.4111, allocations: 0 / 0.6195 GB, free: 9.949 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.4111, allocations: 0 / 0.6195 GB, free: 9.949 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.4112, allocations: 0 / 0.6195 GB, free: 9.949 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.699e-05/0.4112, allocations: 0 / 0.6195 GB, free: 9.949 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.4113, allocations: 124.7 kB / 0.6196 GB, free: 9.785 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.343e-05/0.4114, allocations: 26.52 kB / 0.6196 GB, free: 9.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.824e-05/0.4114, allocations: 8.953 kB / 0.6196 GB, free: 9.738 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.4114, allocations: 0 / 0.6196 GB, free: 9.738 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.737e-05/0.4114, allocations: 56.27 kB / 0.6197 GB, free: 9.668 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.4114, allocations: 0 / 0.6197 GB, free: 9.668 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001961/0.4116, allocations: 67.33 kB / 0.6198 GB, free: 9.59 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.4117, allocations: 77.23 kB / 0.6198 GB, free: 9.496 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.119e-05/0.4117, allocations: 97.86 kB / 0.6199 GB, free: 9.391 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.4118, allocations: 25.7 kB / 0.62 GB, free: 9.359 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.218e-05/0.4118, allocations: 80.14 kB / 0.62 GB, free: 9.277 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.4118, allocations: 4 kB / 0.62 GB, free: 9.273 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.4118, allocations: 13.66 kB / 0.6201 GB, free: 9.254 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.412, allocations: 314.8 kB / 0.6204 GB, free: 8.938 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.288e-05/0.412, allocations: 7.984 kB / 0.6204 GB, free: 8.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.951e-06/0.412, allocations: 0 / 0.6204 GB, free: 8.93 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.909e-05/0.4121, allocations: 68.33 kB / 0.6204 GB, free: 8.848 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.4121, allocations: 0 / 0.6204 GB, free: 8.848 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.111e-05/0.4121, allocations: 63.34 kB / 0.6205 GB, free: 8.773 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.4122, allocations: 33.69 kB / 0.6205 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.4122, allocations: 0 / 0.6205 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.4122, allocations: 0 / 0.6205 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.4122, allocations: 0 / 0.6205 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.4122, allocations: 0 / 0.6205 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.784e-05/0.4122, allocations: 4 kB / 0.6205 GB, free: 8.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.4122, allocations: 4.031 kB / 0.6205 GB, free: 8.727 MB / 462.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.145e-05/0.4123, allocations: 136.4 kB / 0.6207 GB, free: 8.578 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.397e-06/0.4123, allocations: 7.938 kB / 0.6207 GB, free: 8.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.249e-05/0.4123, allocations: 7 kB / 0.6207 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.4123, allocations: 0 / 0.6207 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.4123, allocations: 0 / 0.6207 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-06/0.4123, allocations: 0 / 0.6207 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.4124, allocations: 120.7 kB / 0.6208 GB, free: 8.402 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.4125, allocations: 4 kB / 0.6208 GB, free: 8.398 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.898e-06/0.4125, allocations: 11.98 kB / 0.6208 GB, free: 8.387 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.4125, allocations: 0 / 0.6208 GB, free: 8.387 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.4125, allocations: 0 / 0.6208 GB, free: 8.387 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.4125, allocations: 0 / 0.6208 GB, free: 8.387 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4125, allocations: 0 / 0.6208 GB, free: 8.387 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001111/0.4126, allocations: 102.7 kB / 0.6209 GB, free: 8.262 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.951e-06/0.4126, allocations: 3.938 kB / 0.6209 GB, free: 8.258 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.4126, allocations: 0 / 0.6209 GB, free: 8.258 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.195e-06/0.4126, allocations: 8.031 kB / 0.6209 GB, free: 8.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.336e-05/0.4126, allocations: 0 / 0.6209 GB, free: 8.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.4126, allocations: 3.984 kB / 0.6209 GB, free: 8.246 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.029e-05/0.4126, allocations: 75.28 kB / 0.621 GB, free: 8.172 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4126, allocations: 0 / 0.621 GB, free: 8.172 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01147/0.4241, allocations: 3.784 MB / 0.6247 GB, free: 4.387 MB / 462.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.0211/0.4452, allocations: 0.9874 MB / 0.6256 GB, free: 3.402 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001707/0.4454, allocations: 67.22 kB / 0.6257 GB, free: 3.324 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4454, allocations: 0 / 0.6257 GB, free: 3.324 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 4.711e-05/0.4454, allocations: 55.41 kB / 0.6258 GB, free: 3.258 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000158/0.4456, allocations: 4 kB / 0.6258 GB, free: 3.254 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002522/0.4458, allocations: 106.8 kB / 0.6259 GB, free: 3.117 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.4462, allocations: 0.6729 MB / 0.6265 GB, free: 2.418 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.951e-05/0.4462, allocations: 7.438 kB / 0.6265 GB, free: 2.41 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4462, allocations: 8.125 kB / 0.6265 GB, free: 2.402 MB / 462.1 MB Notification: Performance of Templates: time 0.1055/0.5517, allocations: 64.86 MB / 0.6899 GB, free: 1.426 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.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: 23.1601202969905]