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.0009047/0.0009049, allocations: 92.09 kB / 17.63 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001217/0.001217, allocations: 198.3 kB / 18.54 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.3 MB / 246.6 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2871/0.2871, allocations: 45.91 MB / 344.7 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002996, allocations: 12 kB / 418.6 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1611, allocations: 63.46 MB / 482.1 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.0007787/0.162, allocations: 213.3 kB / 482.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008458/0.1704, allocations: 4.625 MB / 486.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.974e-05/0.1705, allocations: 0 / 486.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.397e-05/0.1705, allocations: 7.938 kB / 487 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.059e-05/0.1706, allocations: 0 / 487 MB, free: 0.5469 MB / 350.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.007283/0.1778, allocations: 2.565 MB / 489.5 MB, free: 14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.651e-05/0.1779, allocations: 0 / 489.5 MB, free: 14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.159e-05/0.1779, allocations: 0 / 489.5 MB, free: 14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.123e-05/0.178, allocations: 4 kB / 489.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.91e-05/0.178, allocations: 0 / 489.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-06/0.178, allocations: 0 / 489.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03904/0.2171, allocations: 19.83 MB / 0.4974 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.668e-05/0.2172, allocations: 0 / 0.4974 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.669e-05/0.2172, allocations: 25.7 kB / 0.4974 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3649/0.5821, allocations: 20.16 MB / 0.5171 GB, free: 17.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/0.5822, allocations: 0.625 kB / 0.5171 GB, free: 17.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5822, allocations: 1.375 kB / 0.5171 GB, free: 17.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.5822, allocations: 0 / 0.5171 GB, free: 17.2 MB / 382.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.01984/0.602, allocations: 0.6554 MB / 0.5178 GB, free: 16.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.6021, allocations: 9.406 kB / 0.5178 GB, free: 16.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.727e-05/0.6022, allocations: 5.438 kB / 0.5178 GB, free: 16.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.032e-05/0.6023, allocations: 159.1 kB / 0.5179 GB, free: 16.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.6023, allocations: 1 kB / 0.5179 GB, free: 16.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.6023, allocations: 1.641 kB / 0.5179 GB, free: 16.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.6024, allocations: 34.48 kB / 0.518 GB, free: 16.47 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.6024, allocations: 0 / 0.518 GB, free: 16.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.6025, allocations: 3.938 kB / 0.518 GB, free: 16.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.6025, allocations: 1.812 kB / 0.518 GB, free: 16.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.607e-05/0.6025, allocations: 5.547 kB / 0.518 GB, free: 16.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001502/0.6027, allocations: 156.3 kB / 0.5181 GB, free: 16.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.948e-05/0.6027, allocations: 17.23 kB / 0.5181 GB, free: 16.26 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.787e-05/0.6027, allocations: 6.516 kB / 0.5182 GB, free: 16.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.164e-06/0.6028, allocations: 3 kB / 0.5182 GB, free: 16.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.848e-05/0.6028, allocations: 57.92 kB / 0.5182 GB, free: 16.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.6028, allocations: 1.031 kB / 0.5182 GB, free: 16.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002428/0.6031, allocations: 68.77 kB / 0.5183 GB, free: 16.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.6031, allocations: 78.33 kB / 0.5184 GB, free: 16.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.734e-05/0.6032, allocations: 92.2 kB / 0.5184 GB, free: 15.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.6032, allocations: 26.73 kB / 0.5185 GB, free: 15.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.247e-05/0.6032, allocations: 80.7 kB / 0.5185 GB, free: 15.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.624e-05/0.6033, allocations: 2.812 kB / 0.5185 GB, free: 15.81 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-06/0.6033, allocations: 2.812 kB / 0.5186 GB, free: 15.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.876e-05/0.6034, allocations: 317.3 kB / 0.5189 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.059e-05/0.6034, allocations: 2.75 kB / 0.5189 GB, free: 15.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.075e-06/0.6034, allocations: 3.344 kB / 0.5189 GB, free: 15.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.811e-05/0.6034, allocations: 26.95 kB / 0.5189 GB, free: 15.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.6034, allocations: 0 / 0.5189 GB, free: 15.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.389e-05/0.6035, allocations: 68.38 kB / 0.519 GB, free: 15.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.77e-05/0.6035, allocations: 31.67 kB / 0.519 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.6036, allocations: 0 / 0.519 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.6036, allocations: 1.125 kB / 0.519 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.6036, allocations: 0 / 0.519 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.6036, allocations: 0 / 0.519 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.585e-05/0.6036, allocations: 0.9688 kB / 0.519 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.6036, allocations: 4.406 kB / 0.519 GB, free: 15.37 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.452e-05/0.6037, allocations: 144.1 kB / 0.5191 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.805e-06/0.6037, allocations: 1.188 kB / 0.5191 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.191e-05/0.6038, allocations: 5.094 kB / 0.5191 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.6038, allocations: 0 / 0.5191 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.6038, allocations: 1.156 kB / 0.5191 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.6038, allocations: 0 / 0.5191 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.581e-05/0.6039, allocations: 152.8 kB / 0.5193 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.6039, allocations: 4 kB / 0.5193 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.6039, allocations: 1.75 kB / 0.5193 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.6039, allocations: 2.031 kB / 0.5193 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.6039, allocations: 0 / 0.5193 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.6039, allocations: 1.125 kB / 0.5193 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.6039, allocations: 0 / 0.5193 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.843e-05/0.604, allocations: 96.7 kB / 0.5194 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.6041, allocations: 84.8 kB / 0.5195 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.6041, allocations: 1.125 kB / 0.5195 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.09e-05/0.6041, allocations: 2.031 kB / 0.5195 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.753e-05/0.6041, allocations: 0 / 0.5195 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.6042, allocations: 2 kB / 0.5195 GB, free: 14.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.024e-05/0.6042, allocations: 75.28 kB / 0.5195 GB, free: 14.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6042, allocations: 1 kB / 0.5195 GB, free: 14.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.03051/0.6347, allocations: 3.77 MB / 0.5232 GB, free: 14.67 MB / 382.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 (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.04748/0.6822, allocations: 0.971 MB / 0.5242 GB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001611/0.6824, allocations: 60.56 kB / 0.5242 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.6824, allocations: 0 / 0.5242 GB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.053e-05/0.6825, allocations: 55.69 kB / 0.5243 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.6826, allocations: 8.031 kB / 0.5243 GB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002294/0.6829, allocations: 104.1 kB / 0.5244 GB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001442/0.683, allocations: 0.6692 MB / 0.525 GB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.546e-05/0.6831, allocations: 10.75 kB / 0.525 GB, free: 13.49 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6831, allocations: 4 kB / 0.5251 GB, free: 13.48 MB / 382.1 MB Notification: Performance of Templates: time 0.1361/0.8192, allocations: 64.94 MB / 0.5885 GB, free: 3.523 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_ModelicaTest.Math.TestMatrices2CalcHelperMain.o OMCppModelicaTest_trunk_ModelicaTest.Math.TestMatrices2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_trunk_ModelicaTest.Math.TestMatrices2CalcHelperMain.o] Error 1