Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009725/0.0009725, allocations: 200.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 226.6 MB / 243.4 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000748/0.0007478, allocations: 103 kB / 295.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3258/0.3258, allocations: 44.81 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002652/0.0002652, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3047, allocations: 62.95 MB / 0.5159 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.0005655/0.3053, allocations: 217.3 kB / 0.5161 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005404/0.3107, allocations: 4.608 MB / 0.5206 GB, free: 33.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.536e-05/0.3108, allocations: 0 / 0.5206 GB, free: 33.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.089e-05/0.3108, allocations: 3.281 kB / 0.5206 GB, free: 33.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.464e-06/0.3108, allocations: 3.938 kB / 0.5206 GB, free: 33.79 MB / 378.7 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.005191/0.316, allocations: 2.579 MB / 0.5231 GB, free: 33 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.056e-05/0.316, allocations: 4 kB / 0.5231 GB, free: 32.99 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.131e-05/0.3161, allocations: 0 / 0.5231 GB, free: 32.99 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.633e-05/0.3161, allocations: 10.91 kB / 0.5231 GB, free: 32.98 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.496e-05/0.3161, allocations: 0 / 0.5231 GB, free: 32.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.082e-06/0.3161, allocations: 0 / 0.5231 GB, free: 32.98 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03546/0.3516, allocations: 19.81 MB / 0.5425 GB, free: 30.05 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.953e-05/0.3517, allocations: 4 kB / 0.5425 GB, free: 30.05 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.841e-05/0.3518, allocations: 29.7 kB / 0.5425 GB, free: 30.01 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03244/0.3842, allocations: 20.35 MB / 0.5624 GB, free: 9.812 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.3843, allocations: 0 / 0.5624 GB, free: 9.812 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3843, allocations: 0 / 0.5624 GB, free: 9.812 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.3843, allocations: 0 / 0.5624 GB, free: 9.812 MB / 378.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.007474/0.3918, allocations: 0.6495 MB / 0.563 GB, free: 9.109 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3918, allocations: 8.031 kB / 0.563 GB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.791e-05/0.3919, allocations: 0.9375 kB / 0.563 GB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.514e-05/0.3919, allocations: 167.2 kB / 0.5632 GB, free: 8.898 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.3919, allocations: 0 / 0.5632 GB, free: 8.898 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/0.392, allocations: 4 kB / 0.5632 GB, free: 8.895 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.326e-05/0.3921, allocations: 29.69 kB / 0.5632 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.3921, allocations: 3.938 kB / 0.5632 GB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.3921, allocations: 0 / 0.5632 GB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.3921, allocations: 0 / 0.5632 GB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.74e-05/0.3921, allocations: 4 kB / 0.5632 GB, free: 8.852 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.01e-05/0.3922, allocations: 149.6 kB / 0.5633 GB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.452e-05/0.3923, allocations: 22.61 kB / 0.5634 GB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.206e-05/0.3923, allocations: 8.844 kB / 0.5634 GB, free: 8.613 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.3923, allocations: 0 / 0.5634 GB, free: 8.613 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.3923, allocations: 60.25 kB / 0.5634 GB, free: 8.539 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.3923, allocations: 0 / 0.5634 GB, free: 8.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001533/0.3925, allocations: 67.41 kB / 0.5635 GB, free: 8.461 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.3925, allocations: 77.23 kB / 0.5636 GB, free: 8.367 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.244e-05/0.3926, allocations: 101.8 kB / 0.5637 GB, free: 8.258 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.602e-06/0.3926, allocations: 25.7 kB / 0.5637 GB, free: 8.227 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.001e-05/0.3926, allocations: 80.14 kB / 0.5638 GB, free: 8.145 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.3926, allocations: 1.547 kB / 0.5638 GB, free: 8.145 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-06/0.3926, allocations: 0 / 0.5638 GB, free: 8.145 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.739e-05/0.3927, allocations: 318.7 kB / 0.5641 GB, free: 7.824 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.714e-06/0.3927, allocations: 0 / 0.5641 GB, free: 7.824 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.143e-06/0.3927, allocations: 8 kB / 0.5641 GB, free: 7.816 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.571e-05/0.3927, allocations: 68.27 kB / 0.5641 GB, free: 7.734 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3927, allocations: 0 / 0.5641 GB, free: 7.734 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.823e-05/0.3928, allocations: 59.39 kB / 0.5642 GB, free: 7.664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.3928, allocations: 33.7 kB / 0.5642 GB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3928, allocations: 7.922 kB / 0.5642 GB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.3929, allocations: 0 / 0.5642 GB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.3929, allocations: 0 / 0.5642 GB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.3929, allocations: 0 / 0.5642 GB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.95e-05/0.3929, allocations: 4 kB / 0.5642 GB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.3929, allocations: 7.969 kB / 0.5643 GB, free: 7.605 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.335e-05/0.393, allocations: 139.5 kB / 0.5644 GB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.166e-06/0.393, allocations: 7.891 kB / 0.5644 GB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.624e-06/0.393, allocations: 3.125 kB / 0.5644 GB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.393, allocations: 4 kB / 0.5644 GB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.393, allocations: 0 / 0.5644 GB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.393, allocations: 0 / 0.5644 GB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.921e-05/0.3931, allocations: 145.6 kB / 0.5645 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3931, allocations: 0 / 0.5645 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.3931, allocations: 4 kB / 0.5645 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.3931, allocations: 0 / 0.5645 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.3931, allocations: 7.984 kB / 0.5646 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.3931, allocations: 3.938 kB / 0.5646 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3931, allocations: 0 / 0.5646 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.643e-05/0.3932, allocations: 90.78 kB / 0.5646 GB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.558e-05/0.3932, allocations: 81.09 kB / 0.5647 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.3932, allocations: 0 / 0.5647 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.195e-05/0.3933, allocations: 4.031 kB / 0.5647 GB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.505e-05/0.3933, allocations: 0 / 0.5647 GB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.3933, allocations: 4 kB / 0.5647 GB, free: 7.016 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.214e-05/0.3933, allocations: 79.22 kB / 0.5648 GB, free: 6.938 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3933, allocations: 0 / 0.5648 GB, free: 6.938 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01028/0.4036, allocations: 3.773 MB / 0.5685 GB, free: 3.164 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02149/0.4251, allocations: 0.9799 MB / 0.5694 GB, free: 2.199 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.4253, allocations: 55.41 kB / 0.5695 GB, free: 2.133 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.4253, allocations: 0 / 0.5695 GB, free: 2.133 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.332e-05/0.4253, allocations: 59.39 kB / 0.5696 GB, free: 2.062 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001742/0.4255, allocations: 4 kB / 0.5696 GB, free: 2.059 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001922/0.4257, allocations: 96.47 kB / 0.5697 GB, free: 1.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.734e-05/0.4258, allocations: 0.6692 MB / 0.5703 GB, free: 1.234 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.848e-05/0.4259, allocations: 11.44 kB / 0.5703 GB, free: 1.223 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4259, allocations: 4.125 kB / 0.5703 GB, free: 1.219 MB / 378.7 MB Notification: Performance of Templates: time 0.09832/0.5242, allocations: 64.87 MB / 0.6337 GB, free: 248 kB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches