Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008674/0.0008674, allocations: 87.95 kB / 17.58 MB, free: 5.52 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.0009469/0.0009469, allocations: 183.6 kB / 18.48 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.652/1.652, allocations: 205.4 MB / 224.6 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004475/0.0004476, allocations: 12 kB / 281.4 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1128, allocations: 47.58 MB / 329 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003349/0.1162, allocations: 2.655 MB / 331.6 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.118, allocations: 0.9518 MB / 332.6 MB, free: 464 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002171/0.1182, allocations: 11.94 kB / 332.6 MB, free: 452 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003249/0.1185, allocations: 67.47 kB / 332.7 MB, free: 384 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002052/0.1187, allocations: 83.33 kB / 332.7 MB, free: 300 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004701/0.1192, allocations: 179.6 kB / 332.9 MB, free: 120 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004727/0.1197, allocations: 471.1 kB / 333.4 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.12, allocations: 131.5 kB / 333.5 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.1202, allocations: 155.3 kB / 333.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.1204, allocations: 167 kB / 333.8 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.386e-05/0.1204, allocations: 16 kB / 333.8 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.423e-05/0.1205, allocations: 16 kB / 333.8 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.948e-05/0.1206, allocations: 75.67 kB / 333.9 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.68e-05/0.1206, allocations: 93.45 kB / 334 MB, free: 15 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.121, allocations: 347.4 kB / 334.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.121, allocations: 0 / 334.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.121, allocations: 0 / 334.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.121, allocations: 0 / 334.4 MB, free: 14.66 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001148/0.1222, allocations: 0.7249 MB / 335.1 MB, free: 13.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1222, allocations: 15.97 kB / 335.1 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.898e-05/0.1223, allocations: 47.44 kB / 335.1 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/0.1228, allocations: 346.6 kB / 335.5 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.49e-05/0.1228, allocations: 36.94 kB / 335.5 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.463e-05/0.1229, allocations: 43.89 kB / 335.6 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000821/0.1237, allocations: 458.4 kB / 336 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.1237, allocations: 7.922 kB / 336 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.406e-05/0.1238, allocations: 16 kB / 336 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.1238, allocations: 12 kB / 336 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000889/0.1247, allocations: 415.7 kB / 336.4 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002023/0.1267, allocations: 1.59 MB / 338 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007516/0.1275, allocations: 338.7 kB / 338.4 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00039/0.1279, allocations: 196.6 kB / 338.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.1279, allocations: 4 kB / 338.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.128, allocations: 34.56 kB / 338.6 MB, free: 10.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.242e-06/0.128, allocations: 0 / 338.6 MB, free: 10.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002968/0.131, allocations: 1.506 MB / 340.1 MB, free: 8.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.989e-05/0.131, allocations: 81.11 kB / 340.2 MB, free: 8.492 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003868/0.1314, allocations: 357.5 kB / 340.5 MB, free: 8.133 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.1315, allocations: 37.64 kB / 340.6 MB, free: 8.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.1317, allocations: 252 kB / 340.8 MB, free: 7.84 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.952e-05/0.1318, allocations: 110.3 kB / 340.9 MB, free: 7.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.1318, allocations: 12 kB / 340.9 MB, free: 7.719 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.132, allocations: 350.8 kB / 341.3 MB, free: 7.367 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004183/0.1324, allocations: 184.8 kB / 341.5 MB, free: 7.188 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000491/0.1329, allocations: 272.8 kB / 341.7 MB, free: 6.887 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004298/0.1333, allocations: 199.9 kB / 341.9 MB, free: 6.691 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.1333, allocations: 0 / 341.9 MB, free: 6.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00102/0.1344, allocations: 0.5325 MB / 342.4 MB, free: 6.152 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.1345, allocations: 148 kB / 342.6 MB, free: 5.977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.1345, allocations: 4 kB / 342.6 MB, free: 5.973 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.1345, allocations: 4 kB / 342.6 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008269/0.1354, allocations: 255.7 kB / 342.9 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.1371, allocations: 1.548 MB / 344.4 MB, free: 4.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002974/0.1374, allocations: 47.97 kB / 344.4 MB, free: 3.992 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.1375, allocations: 15.94 kB / 344.5 MB, free: 3.977 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.233e-06/0.1375, allocations: 4 kB / 344.5 MB, free: 3.973 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008573/0.1383, allocations: 451.6 kB / 344.9 MB, free: 3.531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.1384, allocations: 4.109 kB / 344.9 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.789e-06/0.1384, allocations: 8 kB / 344.9 MB, free: 3.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004302/0.1388, allocations: 123.9 kB / 345 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.1388, allocations: 4 kB / 345 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.1391, allocations: 51.94 kB / 345.1 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.1391, allocations: 16 kB / 345.1 MB, free: 3.328 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00029/0.1394, allocations: 241 kB / 345.3 MB, free: 3.082 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.621e-05/0.1395, allocations: 35.53 kB / 345.4 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.323e-05/0.1396, allocations: 52.19 kB / 345.4 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1396, allocations: 4 kB / 345.4 MB, free: 2.992 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1396, allocations: 4 kB / 345.4 MB, free: 2.988 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1396, allocations: 0 / 345.4 MB, free: 2.988 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001657/0.1413, allocations: 0.965 MB / 346.4 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.1413, allocations: 0 / 346.4 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003866/0.1417, allocations: 104 kB / 346.5 MB, free: 1.855 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1417, allocations: 0 / 346.5 MB, free: 1.855 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.1417, allocations: 8 kB / 346.5 MB, free: 1.848 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.1417, allocations: 4 kB / 346.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1417, allocations: 0 / 346.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.1431, allocations: 0.7368 MB / 347.3 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.1432, allocations: 140.7 kB / 347.4 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.359e-05/0.1432, allocations: 8 kB / 347.4 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.1435, allocations: 47.95 kB / 347.4 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.1436, allocations: 23.97 kB / 347.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.1436, allocations: 4 kB / 347.5 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002569/0.1439, allocations: 251.2 kB / 347.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of sort global known variables: time 7.183e-06/0.1439, allocations: 0 / 347.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005082/0.1444, allocations: 139.9 kB / 347.9 MB, free: 472 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.0001319/0.1446, allocations: 107.5 kB / 348 MB, free: 356 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.1464, allocations: 0.7928 MB / 348.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1464, allocations: 4 kB / 348.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004192/0.1468, allocations: 208.1 kB / 349 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006628/0.1475, allocations: 112.8 kB / 349.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.1494, allocations: 1.242 MB / 350.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.1498, allocations: 0.8198 MB / 351.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1499, allocations: 39.44 kB / 351.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1499, allocations: 0 / 351.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Templates: time 0.008528/0.1584, allocations: 5.923 MB / 357.1 MB, free: 7.145 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.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_3.2.3_Modelica.Blocks.Examples.PID_ControllerCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Blocks.Examples.PID_ControllerCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Blocks.Examples.PID_ControllerCalcHelperMain.o] Error 1