Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009006/0.0009006, allocations: 92.55 kB / 16.96 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009686/0.0009687, allocations: 183.3 kB / 17.85 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 223.3 MB / 241.9 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00038/0.0003802, allocations: 8.531 kB / 301.5 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1299, allocations: 50.41 MB / 351.9 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002937/0.1329, allocations: 1.621 MB / 353.5 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.1352, allocations: 1.1 MB / 354.6 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000236/0.1354, allocations: 7.938 kB / 354.6 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004319/0.1359, allocations: 63.73 kB / 354.7 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.1362, allocations: 83.7 kB / 354.8 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.1373, allocations: 258 kB / 355 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003519/0.1377, allocations: 183.5 kB / 355.2 MB, free: 468 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.1378, allocations: 45.53 kB / 355.2 MB, free: 424 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.138, allocations: 75.64 kB / 355.3 MB, free: 348 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.1382, allocations: 87.59 kB / 355.4 MB, free: 260 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.1382, allocations: 8 kB / 355.4 MB, free: 252 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001955/0.1384, allocations: 39.97 kB / 355.4 MB, free: 212 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9e-05/0.1385, allocations: 59.75 kB / 355.5 MB, free: 152 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.203e-05/0.1386, allocations: 69.58 kB / 355.6 MB, free: 76 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003466/0.139, allocations: 211.8 kB / 355.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.139, allocations: 0 / 355.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.139, allocations: 0 / 355.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.139, allocations: 0 / 355.8 MB, free: 15.87 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001061/0.1401, allocations: 0.5311 MB / 356.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.1401, allocations: 8.031 kB / 356.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.278e-05/0.1402, allocations: 31.62 kB / 356.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.1407, allocations: 294.3 kB / 356.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.1407, allocations: 16 kB / 356.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.875e-05/0.1408, allocations: 12 kB / 356.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006299/0.1414, allocations: 323.7 kB / 357 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.1414, allocations: 3.953 kB / 357 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.1415, allocations: 4 kB / 357 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1415, allocations: 4 kB / 357 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000184/0.1417, allocations: 67.95 kB / 357 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006418/0.1423, allocations: 414.4 kB / 357.4 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003545/0.1427, allocations: 195.8 kB / 357.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.1429, allocations: 98.66 kB / 357.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.589e-05/0.1429, allocations: 4 kB / 357.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001794/0.1431, allocations: 75.38 kB / 357.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.074e-06/0.1431, allocations: 4 kB / 357.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005499/0.1437, allocations: 249.1 kB / 358.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.1438, allocations: 170.4 kB / 358.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003852/0.1442, allocations: 350.8 kB / 358.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.1442, allocations: 33.7 kB / 358.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.662e-05/0.1443, allocations: 128.7 kB / 358.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.051e-05/0.1444, allocations: 31.7 kB / 358.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-06/0.1444, allocations: 384 / 358.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1445, allocations: 342.8 kB / 359.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.743e-05/0.1446, allocations: 40.44 kB / 359.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.1448, allocations: 192.4 kB / 359.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000131/0.145, allocations: 71.86 kB / 359.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.145, allocations: 0 / 359.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003768/0.1454, allocations: 232.9 kB / 359.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1454, allocations: 4 kB / 359.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1454, allocations: 4 kB / 359.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1454, allocations: 8.531 kB / 359.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.1456, allocations: 52.16 kB / 359.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.1456, allocations: 11.94 kB / 359.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001204/0.1458, allocations: 23.84 kB / 359.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.1458, allocations: 8 kB / 359.7 MB, free: 11.53 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001833/0.146, allocations: 180 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.1462, allocations: 137.2 kB / 360 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.281e-05/0.1463, allocations: 33.73 kB / 360.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1463, allocations: 8.047 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/0.1463, allocations: 3.984 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1463, allocations: 3.984 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002326/0.1465, allocations: 265.5 kB / 360.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1465, allocations: 0 / 360.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.1467, allocations: 31.91 kB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.1467, allocations: 7.953 kB / 360.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.1467, allocations: 8 kB / 360.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1467, allocations: 0 / 360.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.1467, allocations: 0 / 360.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003661/0.1471, allocations: 247.7 kB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.1472, allocations: 132.7 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.1473, allocations: 11.95 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.022e-05/0.1474, allocations: 4 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.605e-05/0.1474, allocations: 11.98 kB / 360.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.1475, allocations: 8 kB / 360.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002582/0.1477, allocations: 249.9 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1477, allocations: 0 / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003257/0.1481, allocations: 51.98 kB / 361.1 MB, free: 10.06 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001/0.1491, allocations: 449.2 kB / 361.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000326/0.1494, allocations: 148.1 kB / 361.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.1494, allocations: 4 kB / 361.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.32e-05/0.1495, allocations: 27.98 kB / 361.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.15, allocations: 128 kB / 361.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008428/0.1508, allocations: 0.523 MB / 362.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004203/0.1513, allocations: 0.7677 MB / 363.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.814e-05/0.1514, allocations: 31.42 kB / 363.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1514, allocations: 0 / 363.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of Templates: time 0.006545/0.1579, allocations: 3.557 MB / 366.7 MB, free: 4.539 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSampleCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSampleCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSampleCalcHelperMain.o] Error 1