Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009813/0.0009812, allocations: 89.72 kB / 17.95 MB, free: 5.621 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.001355/0.001355, allocations: 185.3 kB / 18.87 MB, free: 4.766 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.88/1.88, allocations: 205.4 MB / 225 MB, free: 12.81 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.0007625/0.0007629, allocations: 14.81 kB / 282 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.136, allocations: 47.59 MB / 329.6 MB, free: 3.719 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00431/0.1404, allocations: 2.03 MB / 331.6 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002961/0.1434, allocations: 0.9531 MB / 332.6 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004142/0.1439, allocations: 4 kB / 332.6 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003363/0.1442, allocations: 35.7 kB / 332.6 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008307/0.1451, allocations: 111.5 kB / 332.7 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000557/0.1457, allocations: 147.8 kB / 332.9 MB, free: 428 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007863/0.1465, allocations: 394.8 kB / 333.3 MB, free: 32 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002962/0.1468, allocations: 56.72 kB / 333.3 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004865/0.1473, allocations: 167.4 kB / 333.5 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005889/0.1479, allocations: 199.3 kB / 333.7 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.148, allocations: 19.94 kB / 333.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003947/0.1484, allocations: 103.9 kB / 333.8 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002176/0.1487, allocations: 79.72 kB / 333.9 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003551/0.149, allocations: 176.9 kB / 334.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005989/0.1496, allocations: 315.4 kB / 334.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1497, allocations: 4 kB / 334.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1497, allocations: 0 / 334.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.042e-05/0.1497, allocations: 0 / 334.4 MB, free: 14.93 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001835/0.1515, allocations: 0.5771 MB / 334.9 MB, free: 14.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.485e-05/0.1516, allocations: 12.03 kB / 335 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005796/0.1522, allocations: 48.53 kB / 335 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007668/0.153, allocations: 299.8 kB / 335.3 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/0.1532, allocations: 88.45 kB / 335.4 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.1533, allocations: 40.28 kB / 335.4 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.1545, allocations: 377.4 kB / 335.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/0.1546, allocations: 4 kB / 335.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.621e-05/0.1546, allocations: 8 kB / 335.8 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.1546, allocations: 8 kB / 335.8 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0014/0.1561, allocations: 433.9 kB / 336.2 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003269/0.1593, allocations: 1.249 MB / 337.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.1605, allocations: 358.5 kB / 337.8 MB, free: 11.26 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005825/0.1611, allocations: 192.8 kB / 338 MB, free: 11.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.311e-05/0.1611, allocations: 4 kB / 338 MB, free: 11.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.1612, allocations: 38.5 kB / 338.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 3.567e-06/0.1612, allocations: 4 kB / 338.1 MB, free: 11.01 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.007236/0.1685, allocations: 1.973 MB / 340 MB, free: 8.926 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.439e-05/0.1686, allocations: 88.86 kB / 340.1 MB, free: 8.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004376/0.169, allocations: 238.3 kB / 340.4 MB, free: 8.574 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.849e-05/0.1691, allocations: 29.7 kB / 340.4 MB, free: 8.539 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.1692, allocations: 140.6 kB / 340.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002026/0.1695, allocations: 150 kB / 340.7 MB, free: 8.25 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.1696, allocations: 45.69 kB / 340.7 MB, free: 8.199 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.1698, allocations: 334.8 kB / 341 MB, free: 7.863 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005671/0.1704, allocations: 172.8 kB / 341.2 MB, free: 7.695 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006362/0.171, allocations: 229.9 kB / 341.4 MB, free: 7.449 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.1721, allocations: 355.2 kB / 341.8 MB, free: 7.09 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.1721, allocations: 0 / 341.8 MB, free: 7.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001767/0.1739, allocations: 0.5706 MB / 342.4 MB, free: 6.512 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.174, allocations: 4 kB / 342.4 MB, free: 6.508 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.174, allocations: 0 / 342.4 MB, free: 6.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.1751, allocations: 256.8 kB / 342.6 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003273/0.1754, allocations: 51.91 kB / 342.7 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005843/0.1813, allocations: 2.671 MB / 345.3 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003947/0.1817, allocations: 36.05 kB / 345.4 MB, free: 3.363 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.4e-05/0.1818, allocations: 19.98 kB / 345.4 MB, free: 3.344 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002928/0.1821, allocations: 149.8 kB / 345.5 MB, free: 3.188 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.1822, allocations: 27.66 kB / 345.6 MB, free: 3.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001372/0.1824, allocations: 42.98 kB / 345.6 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.1824, allocations: 4 kB / 345.6 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1824, allocations: 0 / 345.6 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.1824, allocations: 7.984 kB / 345.6 MB, free: 3.105 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002877/0.1853, allocations: 1.104 MB / 346.7 MB, free: 1.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.1853, allocations: 0 / 346.7 MB, free: 1.941 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.1857, allocations: 47.97 kB / 346.8 MB, free: 1.895 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.1867, allocations: 240.8 kB / 347 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.645e-05/0.1868, allocations: 11.98 kB / 347 MB, free: 1.645 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004907/0.1917, allocations: 2.605 MB / 349.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1917, allocations: 0 / 349.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.1943, allocations: 0.8297 MB / 350.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003347/0.1947, allocations: 140.7 kB / 350.6 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.581e-05/0.1948, allocations: 15.98 kB / 350.6 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.1952, allocations: 28.05 kB / 350.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000241/0.1954, allocations: 63.83 kB / 350.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.8e-05/0.1955, allocations: 16 kB / 350.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003074/0.1958, allocations: 180.2 kB / 350.9 MB, free: 13.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1958, allocations: 0 / 350.9 MB, free: 13.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009917/0.1968, allocations: 144 kB / 351 MB, free: 13.46 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003959/0.1972, allocations: 147.2 kB / 351.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00202/0.1993, allocations: 0.6253 MB / 351.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.1993, allocations: 8.062 kB / 351.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/0.2004, allocations: 429.3 kB / 352.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006443/0.2011, allocations: 40.05 kB / 352.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.2035, allocations: 0.8987 MB / 353.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.2045, allocations: 0.7764 MB / 353.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.2048, allocations: 35.41 kB / 354 MB, free: 10.42 MB / 302.1 MB Notification: Performance of SimCode: time 1.302e-06/0.2048, allocations: 3.938 kB / 354 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Templates: time 0.01697/0.2218, allocations: 5.167 MB / 359.1 MB, free: 5.246 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3CalcHelperMain.o] Error 1