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.001252/0.001252, allocations: 101.5 kB / 17.8 MB, free: 5.676 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.001144/0.001144, allocations: 194 kB / 18.72 MB, free: 4.762 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.835/1.835, allocations: 205.1 MB / 224.6 MB, free: 12.49 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.001178/0.001178, allocations: 43.94 kB / 280.6 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1259, allocations: 46.63 MB / 327.2 MB, free: 4.926 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004659/0.1306, allocations: 3.156 MB / 330.4 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.1325, allocations: 0.9982 MB / 331.4 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002339/0.1327, allocations: 11.94 kB / 331.4 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003727/0.1331, allocations: 63.5 kB / 331.5 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.1334, allocations: 91.31 kB / 331.6 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005313/0.1339, allocations: 207.7 kB / 331.8 MB, free: 380 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005354/0.1344, allocations: 498.9 kB / 332.2 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003189/0.1348, allocations: 165.1 kB / 332.4 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.135, allocations: 171.2 kB / 332.6 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.1353, allocations: 199 kB / 332.8 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.663e-05/0.1353, allocations: 24 kB / 332.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.842e-05/0.1354, allocations: 20 kB / 332.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.1355, allocations: 87.61 kB / 332.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.1357, allocations: 194.8 kB / 333.1 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.1361, allocations: 367.3 kB / 333.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1361, allocations: 3.938 kB / 333.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.908e-06/0.1361, allocations: 4 kB / 333.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.1362, allocations: 4 kB / 333.5 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.001376/0.1375, allocations: 0.7677 MB / 334.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.1376, allocations: 12.03 kB / 334.2 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.1377, allocations: 52.38 kB / 334.3 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004634/0.1382, allocations: 363.7 kB / 334.6 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.1382, allocations: 25.38 kB / 334.7 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.825e-05/0.1383, allocations: 44.28 kB / 334.7 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008614/0.1392, allocations: 454.7 kB / 335.2 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.1392, allocations: 3.984 kB / 335.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.669e-05/0.1392, allocations: 16 kB / 335.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1393, allocations: 8 kB / 335.2 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009485/0.1402, allocations: 379.6 kB / 335.5 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/0.1423, allocations: 1.579 MB / 337.1 MB, free: 10.78 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007863/0.1431, allocations: 314.6 kB / 337.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004285/0.1435, allocations: 160.8 kB / 337.6 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/0.1435, allocations: 3.938 kB / 337.6 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.1436, allocations: 38.56 kB / 337.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.563e-06/0.1436, allocations: 0 / 337.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003217/0.1468, allocations: 1.383 MB / 339 MB, free: 8.773 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.1469, allocations: 81.11 kB / 339.1 MB, free: 8.676 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003842/0.1473, allocations: 365.5 kB / 339.5 MB, free: 8.309 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.1473, allocations: 33.7 kB / 339.5 MB, free: 8.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.1475, allocations: 239.9 kB / 339.7 MB, free: 8.031 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.667e-05/0.1477, allocations: 122.4 kB / 339.8 MB, free: 7.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.1478, allocations: 82.03 kB / 339.9 MB, free: 7.824 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.148, allocations: 346.8 kB / 340.3 MB, free: 7.477 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004345/0.1484, allocations: 166.5 kB / 340.4 MB, free: 7.309 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005081/0.1489, allocations: 260.8 kB / 340.7 MB, free: 7.023 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008399/0.1498, allocations: 383.5 kB / 341.1 MB, free: 6.621 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.1498, allocations: 7.938 kB / 341.1 MB, free: 6.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001034/0.1508, allocations: 493.2 kB / 341.5 MB, free: 6.125 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.1509, allocations: 4 kB / 341.5 MB, free: 6.121 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1509, allocations: 4 kB / 341.5 MB, free: 6.117 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1509, allocations: 7.938 kB / 341.6 MB, free: 6.109 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008083/0.1517, allocations: 207.9 kB / 341.8 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.1533, allocations: 1.47 MB / 343.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.1536, allocations: 47.98 kB / 343.3 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.727e-05/0.1537, allocations: 12 kB / 343.3 MB, free: 4.246 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005287/0.1542, allocations: 272.9 kB / 343.6 MB, free: 3.977 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004365/0.1547, allocations: 240.8 kB / 343.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008123/0.1555, allocations: 371.5 kB / 344.2 MB, free: 3.32 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.457e-06/0.1555, allocations: 4 kB / 344.2 MB, free: 3.316 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009734/0.1565, allocations: 468.9 kB / 344.6 MB, free: 2.852 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.1565, allocations: 8.219 kB / 344.6 MB, free: 2.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1565, allocations: 8 kB / 344.6 MB, free: 2.836 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.462e-06/0.1565, allocations: 7.984 kB / 344.6 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000461/0.157, allocations: 111.9 kB / 344.7 MB, free: 2.719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.157, allocations: 4 kB / 344.7 MB, free: 2.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.1573, allocations: 39.95 kB / 344.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.1573, allocations: 16 kB / 344.8 MB, free: 2.66 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001867/0.1575, allocations: 208.1 kB / 345 MB, free: 2.449 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.136e-05/0.1576, allocations: 39.53 kB / 345 MB, free: 2.41 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.767e-05/0.1577, allocations: 44.25 kB / 345.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.1577, allocations: 4 kB / 345.1 MB, free: 2.363 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1577, allocations: 0 / 345.1 MB, free: 2.363 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.1577, allocations: 7.922 kB / 345.1 MB, free: 2.355 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001762/0.1595, allocations: 0.9144 MB / 346 MB, free: 1.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.1595, allocations: 4 kB / 346 MB, free: 1.371 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004107/0.1599, allocations: 87.81 kB / 346.1 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.1599, allocations: 4 kB / 346.1 MB, free: 1.281 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.16, allocations: 11.98 kB / 346.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.16, allocations: 0 / 346.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.16, allocations: 4 kB / 346.1 MB, free: 1.266 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.1614, allocations: 0.6737 MB / 346.8 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.1616, allocations: 136.6 kB / 346.9 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.656e-05/0.1617, allocations: 7.984 kB / 346.9 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.162, allocations: 35.97 kB / 347 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.686e-05/0.1621, allocations: 23.97 kB / 347 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.1621, allocations: 11.98 kB / 347 MB, free: 340 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003471/0.1624, allocations: 247.2 kB / 347.3 MB, free: 96 kB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1625, allocations: 0 / 347.3 MB, free: 96 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005324/0.163, allocations: 136 kB / 347.4 MB, free: 15.96 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000144/0.1632, allocations: 111.3 kB / 347.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.1651, allocations: 0.7039 MB / 348.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1651, allocations: 4.062 kB / 348.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005393/0.1656, allocations: 179.7 kB / 348.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007379/0.1664, allocations: 96.81 kB / 348.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.1684, allocations: 1.202 MB / 349.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004504/0.1688, allocations: 0.8198 MB / 350.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.169, allocations: 31.44 kB / 350.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.169, allocations: 0 / 350.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of Templates: time 0.009836/0.1788, allocations: 5.983 MB / 356.5 MB, free: 6.754 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++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/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