Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001169/0.001169, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001375/0.001375, allocations: 204 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2271/0.2271, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 75.88 kB / 482 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3968, allocations: 62.44 MB / 0.5316 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001674/0.3986, allocations: 489.6 kB / 0.5321 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008231/0.4068, allocations: 4.881 MB / 0.5369 GB, free: 9.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.414e-05/0.4069, allocations: 4 kB / 0.5369 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.166e-05/0.407, allocations: 3.938 kB / 0.5369 GB, free: 9.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.406e-06/0.407, allocations: 0 / 0.5369 GB, free: 9.469 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.009233/0.4162, allocations: 2.931 MB / 0.5397 GB, free: 7.824 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.573e-05/0.4163, allocations: 5.172 kB / 0.5398 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.562e-05/0.4164, allocations: 5.562 kB / 0.5398 GB, free: 7.816 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.159e-05/0.4164, allocations: 3.984 kB / 0.5398 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.116e-05/0.4164, allocations: 1.531 kB / 0.5398 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-06/0.4164, allocations: 0 / 0.5398 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03044/0.4469, allocations: 18.82 MB / 0.5581 GB, free: 6.555 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.591e-05/0.4469, allocations: 4 kB / 0.5581 GB, free: 6.551 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.126e-05/0.447, allocations: 0 / 0.5581 GB, free: 6.551 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04006/0.487, allocations: 27.48 MB / 0.585 GB, free: 11.03 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.4871, allocations: 4 kB / 0.585 GB, free: 11.02 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4871, allocations: 0 / 0.585 GB, free: 11.02 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.4871, allocations: 0 / 0.585 GB, free: 11.02 MB / 446.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.01046/0.4976, allocations: 0.6417 MB / 0.5856 GB, free: 10.33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.76e-05/0.4977, allocations: 12.03 kB / 0.5856 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.244e-05/0.4977, allocations: 0.9375 kB / 0.5856 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.4978, allocations: 167 kB / 0.5858 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.4979, allocations: 4 kB / 0.5858 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.4979, allocations: 0 / 0.5858 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.498, allocations: 41.62 kB / 0.5858 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.498, allocations: 3.938 kB / 0.5858 GB, free: 10.06 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-06/0.498, allocations: 0 / 0.5858 GB, free: 10.06 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.4981, allocations: 0 / 0.5858 GB, free: 10.06 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.691e-05/0.4981, allocations: 4 kB / 0.5858 GB, free: 10.06 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.4982, allocations: 145.6 kB / 0.586 GB, free: 9.867 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.927e-05/0.4983, allocations: 18.58 kB / 0.586 GB, free: 9.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.764e-05/0.4983, allocations: 12.94 kB / 0.586 GB, free: 9.824 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.4984, allocations: 0 / 0.586 GB, free: 9.824 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.481e-05/0.4984, allocations: 64.2 kB / 0.5861 GB, free: 9.746 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.4984, allocations: 0 / 0.5861 GB, free: 9.746 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001862/0.4986, allocations: 59.41 kB / 0.5861 GB, free: 9.676 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.4987, allocations: 77.11 kB / 0.5862 GB, free: 9.582 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.42e-05/0.4987, allocations: 97.97 kB / 0.5863 GB, free: 9.477 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.4988, allocations: 29.7 kB / 0.5863 GB, free: 9.441 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.655e-05/0.4988, allocations: 80.14 kB / 0.5864 GB, free: 9.359 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.589e-05/0.4988, allocations: 3.906 kB / 0.5864 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.4989, allocations: 13.72 kB / 0.5864 GB, free: 9.336 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.499, allocations: 318.8 kB / 0.5867 GB, free: 9.016 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.499, allocations: 0 / 0.5867 GB, free: 9.016 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.602e-06/0.499, allocations: 0 / 0.5867 GB, free: 9.016 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.313e-05/0.4991, allocations: 68.27 kB / 0.5868 GB, free: 8.934 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4991, allocations: 0 / 0.5868 GB, free: 8.934 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.56e-05/0.4992, allocations: 67.39 kB / 0.5868 GB, free: 8.855 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.4992, allocations: 29.7 kB / 0.5869 GB, free: 8.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.4993, allocations: 3.938 kB / 0.5869 GB, free: 8.816 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.4993, allocations: 0 / 0.5869 GB, free: 8.816 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.4993, allocations: 0 / 0.5869 GB, free: 8.816 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.4993, allocations: 4 kB / 0.5869 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.4993, allocations: 0 / 0.5869 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.186e-05/0.4993, allocations: 7.969 kB / 0.5869 GB, free: 8.805 MB / 446.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.968e-05/0.4994, allocations: 139.5 kB / 0.587 GB, free: 8.652 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.548e-06/0.4995, allocations: 4 kB / 0.587 GB, free: 8.648 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.474e-05/0.4995, allocations: 7.109 kB / 0.587 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.4995, allocations: 0 / 0.587 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4995, allocations: 0 / 0.587 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.954e-06/0.4995, allocations: 0 / 0.587 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.4996, allocations: 165.5 kB / 0.5872 GB, free: 8.434 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4997, allocations: 3.984 kB / 0.5872 GB, free: 8.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.4997, allocations: 4 kB / 0.5872 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.4997, allocations: 0 / 0.5872 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.4997, allocations: 0 / 0.5872 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.4997, allocations: 0 / 0.5872 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4997, allocations: 0 / 0.5872 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/0.4998, allocations: 94.77 kB / 0.5873 GB, free: 8.309 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.813e-05/0.4999, allocations: 77.11 kB / 0.5874 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.4999, allocations: 0 / 0.5874 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.431e-05/0.4999, allocations: 8.031 kB / 0.5874 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.572e-05/0.4999, allocations: 0 / 0.5874 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.4999, allocations: 3.984 kB / 0.5874 GB, free: 8.203 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.835e-05/0.5, allocations: 79.22 kB / 0.5874 GB, free: 8.125 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5, allocations: 0 / 0.5874 GB, free: 8.125 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01333/0.5133, allocations: 3.781 MB / 0.5911 GB, free: 4.344 MB / 446.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.02397/0.5373, allocations: 0.9624 MB / 0.5921 GB, free: 3.387 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001513/0.5375, allocations: 59.41 kB / 0.5921 GB, free: 3.316 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.5375, allocations: 0 / 0.5921 GB, free: 3.316 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 3.927e-05/0.5376, allocations: 59.39 kB / 0.5922 GB, free: 3.246 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000156/0.5377, allocations: 0 / 0.5922 GB, free: 3.246 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002553/0.538, allocations: 106.8 kB / 0.5923 GB, free: 3.109 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.5383, allocations: 0.6806 MB / 0.593 GB, free: 2.402 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.045e-05/0.5383, allocations: 7.438 kB / 0.593 GB, free: 2.395 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5383, allocations: 4.125 kB / 0.593 GB, free: 2.391 MB / 446.1 MB Notification: Performance of Templates: time 0.1007/0.639, allocations: 64.88 MB / 0.6563 GB, free: 1.402 MB / 0.4981 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches