Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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) 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(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009659/0.0009656, allocations: 89.12 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.0009564/0.0009567, allocations: 197.1 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.555/1.555, allocations: 227.3 MB / 246.6 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000245/0.000245, allocations: 4 kB / 307.3 MB, free: 1.637 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1332, allocations: 51.48 MB / 358.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002465/0.1358, allocations: 1.673 MB / 360.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009582/0.1367, allocations: 0.5263 MB / 361 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.1369, allocations: 4 kB / 361 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.137, allocations: 7.875 kB / 361 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.561e-05/0.1371, allocations: 23.78 kB / 361 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003201/0.1374, allocations: 39.95 kB / 361.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.1375, allocations: 115.6 kB / 361.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.1377, allocations: 49.06 kB / 361.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.487e-05/0.1378, allocations: 35.8 kB / 361.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.125e-05/0.1379, allocations: 43.77 kB / 361.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.1379, allocations: 4 kB / 361.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.713e-05/0.1379, allocations: 8 kB / 361.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.581e-05/0.138, allocations: 19.92 kB / 361.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.989e-05/0.138, allocations: 45.64 kB / 361.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001328/0.1382, allocations: 92.03 kB / 361.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.1382, allocations: 0 / 361.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1382, allocations: 0 / 361.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.379e-06/0.1382, allocations: 0 / 361.5 MB, free: 11.45 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006505/0.1388, allocations: 409.7 kB / 361.9 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.1389, allocations: 12.03 kB / 361.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.62e-05/0.1389, allocations: 11.81 kB / 361.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.1392, allocations: 202.8 kB / 362.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.1392, allocations: 12 kB / 362.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.587e-05/0.1392, allocations: 19.86 kB / 362.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005411/0.1398, allocations: 238.6 kB / 362.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.1398, allocations: 4 kB / 362.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.1398, allocations: 0 / 362.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.1399, allocations: 4 kB / 362.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.1401, allocations: 95.88 kB / 362.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006915/0.1408, allocations: 0.5882 MB / 363 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002645/0.1411, allocations: 151.9 kB / 363.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.1412, allocations: 74.64 kB / 363.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.1413, allocations: 3.984 kB / 363.3 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.682e-05/0.1413, allocations: 46.5 kB / 363.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.464e-06/0.1413, allocations: 0 / 363.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005518/0.1419, allocations: 205.3 kB / 363.5 MB, free: 9.168 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.142, allocations: 110.8 kB / 363.6 MB, free: 9.035 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.1422, allocations: 132.6 kB / 363.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.1422, allocations: 29.7 kB / 363.8 MB, free: 8.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.1424, allocations: 108 kB / 363.9 MB, free: 8.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.213e-05/0.1424, allocations: 27.64 kB / 363.9 MB, free: 8.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.278e-06/0.1424, allocations: 8.031 kB / 363.9 MB, free: 8.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.1426, allocations: 322.8 kB / 364.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.1428, allocations: 39.97 kB / 364.3 MB, free: 8.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.143, allocations: 136.8 kB / 364.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.1431, allocations: 59.97 kB / 364.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.1432, allocations: 0 / 364.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003973/0.1436, allocations: 205.4 kB / 364.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.1436, allocations: 8 kB / 364.7 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.1436, allocations: 4 kB / 364.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.1437, allocations: 4 kB / 364.7 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.1439, allocations: 43.97 kB / 364.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.1439, allocations: 7.938 kB / 364.7 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.144, allocations: 27.83 kB / 364.8 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.1441, allocations: 12.12 kB / 364.8 MB, free: 7.801 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001436/0.1442, allocations: 125.8 kB / 364.9 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.1444, allocations: 85.48 kB / 365 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.507e-05/0.1444, allocations: 20.72 kB / 365 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1444, allocations: 0 / 365 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.1444, allocations: 4 kB / 365 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.1445, allocations: 480 / 365 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002849/0.1447, allocations: 209.4 kB / 365.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1448, allocations: 0 / 365.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001597/0.1449, allocations: 39.97 kB / 365.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.1449, allocations: 7.953 kB / 365.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.145, allocations: 7.938 kB / 365.3 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.145, allocations: 0 / 365.3 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.145, allocations: 4 kB / 365.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/0.1455, allocations: 387.2 kB / 365.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.838e-05/0.1456, allocations: 96.88 kB / 365.7 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.1456, allocations: 3.953 kB / 365.7 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.1458, allocations: 20 kB / 365.8 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.6e-05/0.1458, allocations: 7.984 kB / 365.8 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.1458, allocations: 0 / 365.8 MB, free: 6.699 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.619e-05/0.1459, allocations: 99.27 kB / 365.9 MB, free: 6.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1459, allocations: 0 / 365.9 MB, free: 6.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000312/0.1462, allocations: 28 kB / 365.9 MB, free: 6.574 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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 Backend phase and start with SimCode phase: time 0.0001694/0.1464, allocations: 107.2 kB / 366 MB, free: 6.457 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003205/0.1467, allocations: 120.6 kB / 366.1 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1468, allocations: 0 / 366.1 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.1469, allocations: 35.98 kB / 366.1 MB, free: 6.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005219/0.1474, allocations: 62.94 kB / 366.2 MB, free: 6.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008217/0.1482, allocations: 491.5 kB / 366.7 MB, free: 5.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.1486, allocations: 0.7204 MB / 367.4 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.283e-05/0.1486, allocations: 11.44 kB / 367.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1486, allocations: 0 / 367.4 MB, free: 4.965 MB / 302.1 MB Notification: Performance of Templates: time 0.00353/0.1522, allocations: 1.472 MB / 368.9 MB, free: 3.504 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookControllerCalcHelperMain.o OMCppModelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookControllerCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookControllerCalcHelperMain.o] Error 1