Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000947/0.000947, allocations: 95.08 kB / 16.95 MB, free: 5.66 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.001178/0.001178, allocations: 186.1 kB / 17.85 MB, free: 5.312 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.517/1.517, allocations: 223.2 MB / 241.9 MB, free: 14.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002565, allocations: 8 kB / 301.5 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1303, allocations: 50.42 MB / 351.9 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002372/0.1327, allocations: 1.656 MB / 353.5 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008376/0.1335, allocations: 0.5029 MB / 354 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.229e-05/0.1336, allocations: 8 kB / 354 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.053e-05/0.1337, allocations: 11.86 kB / 354.1 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.1338, allocations: 19.84 kB / 354.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.1341, allocations: 51.89 kB / 354.1 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.1342, allocations: 115.6 kB / 354.2 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1344, allocations: 45.05 kB / 354.3 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.596e-05/0.1344, allocations: 35.86 kB / 354.3 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.551e-05/0.1345, allocations: 47.7 kB / 354.4 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.1345, allocations: 4 kB / 354.4 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.073e-05/0.1346, allocations: 8 kB / 354.4 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.158e-05/0.1346, allocations: 15.92 kB / 354.4 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.599e-05/0.1347, allocations: 45.64 kB / 354.4 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.1348, allocations: 84.03 kB / 354.5 MB, free: 1.098 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1348, allocations: 0 / 354.5 MB, free: 1.098 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1348, allocations: 0 / 354.5 MB, free: 1.098 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1348, allocations: 4 kB / 354.5 MB, free: 1.094 MB / 286.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.0005388/0.1354, allocations: 414.9 kB / 354.9 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.1354, allocations: 8.031 kB / 354.9 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.633e-05/0.1354, allocations: 19.81 kB / 355 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.1357, allocations: 200.6 kB / 355.1 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.1357, allocations: 8 kB / 355.2 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.1357, allocations: 20 kB / 355.2 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004911/0.1362, allocations: 251.1 kB / 355.4 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.1362, allocations: 3.953 kB / 355.4 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.1363, allocations: 8 kB / 355.4 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1363, allocations: 4 kB / 355.4 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.1365, allocations: 91.95 kB / 355.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006225/0.1372, allocations: 0.5882 MB / 356.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/0.1375, allocations: 159.8 kB / 356.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.1377, allocations: 86.58 kB / 356.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.1377, allocations: 4 kB / 356.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.1378, allocations: 34.55 kB / 356.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.152e-06/0.1378, allocations: 0 / 356.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005136/0.1383, allocations: 201.3 kB / 356.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.412e-05/0.1384, allocations: 114.8 kB / 356.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.1385, allocations: 134.1 kB / 356.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.1385, allocations: 25.7 kB / 356.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.96e-05/0.1387, allocations: 112.1 kB / 357 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.1387, allocations: 35.55 kB / 357 MB, free: 14.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.52e-06/0.1387, allocations: 0 / 357 MB, free: 14.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1389, allocations: 330.8 kB / 357.3 MB, free: 14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.139, allocations: 36.34 kB / 357.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.1391, allocations: 145.7 kB / 357.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.1393, allocations: 63.91 kB / 357.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1393, allocations: 0 / 357.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000393/0.1397, allocations: 205.1 kB / 357.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.1397, allocations: 8 kB / 357.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1398, allocations: 4 kB / 357.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.1398, allocations: 4 kB / 357.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.1399, allocations: 48.38 kB / 357.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.274e-05/0.14, allocations: 15.88 kB / 357.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.1401, allocations: 31.78 kB / 357.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.1401, allocations: 8 kB / 357.9 MB, free: 13.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001112/0.1402, allocations: 129.7 kB / 358 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001678/0.1404, allocations: 89.91 kB / 358.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.485e-05/0.1405, allocations: 16.7 kB / 358.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1405, allocations: 8 kB / 358.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1405, allocations: 0 / 358.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.1405, allocations: 4.094 kB / 358.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.1408, allocations: 209.5 kB / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1408, allocations: 0 / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.141, allocations: 35.97 kB / 358.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.141, allocations: 4 kB / 358.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.141, allocations: 4 kB / 358.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.141, allocations: 4 kB / 358.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1411, allocations: 0 / 358.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00061/0.1417, allocations: 410.2 kB / 358.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.153e-05/0.1417, allocations: 85.05 kB / 358.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.1418, allocations: 4 kB / 358.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.1419, allocations: 8 kB / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.142, allocations: 8.219 kB / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.142, allocations: 8 kB / 358.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.082e-05/0.1421, allocations: 99.27 kB / 359 MB, free: 12.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1421, allocations: 4 kB / 359 MB, free: 12.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003178/0.1424, allocations: 24 kB / 359 MB, free: 12.15 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 (15): * Single equations (assignments): 15 * 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.0001212/0.1425, allocations: 115.1 kB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003471/0.1429, allocations: 132.4 kB / 359.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1429, allocations: 0 / 359.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.969e-05/0.143, allocations: 27.98 kB / 359.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004796/0.1435, allocations: 68.17 kB / 359.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007321/0.1442, allocations: 0.4915 MB / 359.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.1446, allocations: 0.7128 MB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.296e-05/0.1446, allocations: 15.44 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1446, allocations: 4 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Templates: time 0.003194/0.1478, allocations: 1.5 MB / 362.1 MB, free: 9.027 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.SimpleControlledDrive.ClockedWithDiscreteControllerCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteControllerCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteControllerCalcHelperMain.o] Error 1