Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.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.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 191.5 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 226.5 MB / 244.1 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008743/0.0008743, allocations: 101.6 kB / 296.1 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4064/0.4064, allocations: 44.82 MB / 392.9 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003008/0.0003011, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.4113, allocations: 62.95 MB / 0.5165 GB, free: 36.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.5394, allocations: 88.53 MB / 0.6029 GB, free: 0.875 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.5397, allocations: 59.97 kB / 0.603 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008789/0.5485, allocations: 2.821 MB / 0.6057 GB, free: 13.99 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5486, allocations: 0 / 0.6057 GB, free: 13.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.5486, allocations: 0 / 0.6057 GB, free: 13.99 MB / 426.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.0004595/0.5491, allocations: 389.2 kB / 0.6061 GB, free: 13.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.5491, allocations: 11.97 kB / 0.6061 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.243e-05/0.5492, allocations: 0.9375 kB / 0.6061 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.906e-05/0.5493, allocations: 164.4 kB / 0.6063 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.5493, allocations: 384 / 0.6063 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.432e-05/0.5493, allocations: 4.375 kB / 0.6063 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.5494, allocations: 30.27 kB / 0.6063 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.5494, allocations: 192 / 0.6063 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.5495, allocations: 7.938 kB / 0.6063 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.5495, allocations: 4 kB / 0.6063 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.487e-05/0.5495, allocations: 7.938 kB / 0.6063 GB, free: 13.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001521/0.5497, allocations: 145.7 kB / 0.6065 GB, free: 13.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.45e-05/0.5497, allocations: 14.67 kB / 0.6065 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.469e-05/0.5497, allocations: 8.859 kB / 0.6065 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.907e-06/0.5498, allocations: 0 / 0.6065 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.731e-05/0.5498, allocations: 60.27 kB / 0.6065 GB, free: 12.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.5498, allocations: 4 kB / 0.6065 GB, free: 12.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001954/0.55, allocations: 71.27 kB / 0.6066 GB, free: 12.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.5501, allocations: 77.11 kB / 0.6067 GB, free: 12.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.231e-05/0.5501, allocations: 89.86 kB / 0.6068 GB, free: 12.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.5502, allocations: 29.7 kB / 0.6068 GB, free: 12.67 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.317e-05/0.5502, allocations: 80.14 kB / 0.6069 GB, free: 12.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/0.5502, allocations: 3.984 kB / 0.6069 GB, free: 12.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-06/0.5502, allocations: 0 / 0.6069 GB, free: 12.59 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.5504, allocations: 319 kB / 0.6072 GB, free: 12.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.015e-05/0.5504, allocations: 0 / 0.6072 GB, free: 12.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.185e-06/0.5504, allocations: 4 kB / 0.6072 GB, free: 12.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.415e-05/0.5504, allocations: 60.25 kB / 0.6072 GB, free: 12.19 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.5505, allocations: 0 / 0.6072 GB, free: 12.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.086e-05/0.5505, allocations: 63.34 kB / 0.6073 GB, free: 12.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/0.5506, allocations: 40.83 kB / 0.6073 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.5506, allocations: 3.938 kB / 0.6073 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.5506, allocations: 4.031 kB / 0.6073 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.142e-06/0.5506, allocations: 4 kB / 0.6074 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.5507, allocations: 0 / 0.6074 GB, free: 12.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.5507, allocations: 3.984 kB / 0.6074 GB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.5507, allocations: 0 / 0.6074 GB, free: 12.05 MB / 426.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 9.004e-05/0.5508, allocations: 135.5 kB / 0.6075 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.697e-06/0.5508, allocations: 3.984 kB / 0.6075 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.568e-05/0.5508, allocations: 7.062 kB / 0.6075 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-06/0.5508, allocations: 0 / 0.6075 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.5508, allocations: 4 kB / 0.6075 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.5508, allocations: 4 kB / 0.6075 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.682e-05/0.551, allocations: 149.6 kB / 0.6076 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.551, allocations: 0 / 0.6076 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-07/0.551, allocations: 0 / 0.6076 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.551, allocations: 0 / 0.6076 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-06/0.551, allocations: 3.938 kB / 0.6076 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.551, allocations: 4 kB / 0.6077 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.551, allocations: 0 / 0.6077 GB, free: 11.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001138/0.5511, allocations: 94.77 kB / 0.6077 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.5512, allocations: 81.11 kB / 0.6078 GB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.5512, allocations: 3.938 kB / 0.6078 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.917e-06/0.5512, allocations: 0 / 0.6078 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.905e-05/0.5512, allocations: 4 kB / 0.6078 GB, free: 11.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.5512, allocations: 0 / 0.6078 GB, free: 11.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.966e-05/0.5513, allocations: 75.28 kB / 0.6079 GB, free: 11.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5513, allocations: 4 kB / 0.6079 GB, free: 11.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000358/0.5516, allocations: 87.8 kB / 0.608 GB, free: 11.3 MB / 426.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.0005315/0.5522, allocations: 200.5 kB / 0.6082 GB, free: 11.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.5523, allocations: 67.39 kB / 0.6082 GB, free: 11.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5523, allocations: 0 / 0.6082 GB, free: 11.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.256e-05/0.5524, allocations: 59.28 kB / 0.6083 GB, free: 10.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.5525, allocations: 4 kB / 0.6083 GB, free: 10.95 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002037/0.5527, allocations: 100.3 kB / 0.6084 GB, free: 10.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.553, allocations: 0.677 MB / 0.6091 GB, free: 10.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.147e-05/0.553, allocations: 7.562 kB / 0.6091 GB, free: 10.11 MB / 426.7 MB Notification: Performance of SimCode: time 2.31e-07/0.553, allocations: 4 kB / 0.6091 GB, free: 10.1 MB / 426.7 MB Notification: Performance of Templates: time 0.00346/0.5565, allocations: 1.357 MB / 0.6104 GB, free: 8.746 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches