Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.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.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000909/0.0009097, allocations: 92.45 kB / 17.59 MB, free: 6.168 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.0008951/0.0008951, allocations: 184 kB / 18.47 MB, free: 5.336 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.768/1.768, allocations: 205.4 MB / 224.6 MB, free: 13.15 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.0004711/0.0004711, allocations: 15.44 kB / 281.4 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1114, allocations: 47.58 MB / 329 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005287/0.1168, allocations: 4.335 MB / 333.3 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003813/0.1206, allocations: 1.717 MB / 335 MB, free: 14 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000585/0.1213, allocations: 19.88 kB / 335.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003735/0.1216, allocations: 127.1 kB / 335.2 MB, free: 13.86 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009497/0.1226, allocations: 341.7 kB / 335.5 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009739/0.1236, allocations: 407.3 kB / 335.9 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.1251, allocations: 1.428 MB / 337.3 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004218/0.1256, allocations: 245.6 kB / 337.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009055/0.1265, allocations: 0.5918 MB / 338.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007863/0.1273, allocations: 0.6852 MB / 338.9 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001377/0.1274, allocations: 68 kB / 338.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003512/0.1278, allocations: 143.9 kB / 339.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002886/0.1281, allocations: 263.1 kB / 339.3 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002319/0.1283, allocations: 213.1 kB / 339.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.1293, allocations: 1.056 MB / 340.6 MB, free: 8.414 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1293, allocations: 0 / 340.6 MB, free: 8.414 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1294, allocations: 0 / 340.6 MB, free: 8.414 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.1294, allocations: 0 / 340.6 MB, free: 8.414 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.002949/0.1323, allocations: 1.395 MB / 342 MB, free: 6.965 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.1324, allocations: 12.03 kB / 342 MB, free: 6.953 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005071/0.1329, allocations: 138.6 kB / 342.1 MB, free: 6.816 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009188/0.1338, allocations: 0.5764 MB / 342.7 MB, free: 6.195 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000322/0.1342, allocations: 199.1 kB / 342.9 MB, free: 5.984 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.1344, allocations: 99.91 kB / 343 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002515/0.1369, allocations: 1.259 MB / 344.3 MB, free: 4.609 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.765e-05/0.137, allocations: 19.8 kB / 344.3 MB, free: 4.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.1371, allocations: 40 kB / 344.3 MB, free: 4.551 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.1371, allocations: 24 kB / 344.3 MB, free: 4.527 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002749/0.1399, allocations: 1.366 MB / 345.7 MB, free: 3.164 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006378/0.1463, allocations: 3.753 MB / 349.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.1484, allocations: 1.065 MB / 350.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.1496, allocations: 0.684 MB / 351.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.751e-05/0.1497, allocations: 21.31 kB / 351.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.1498, allocations: 43.88 kB / 351.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 3.406e-06/0.1498, allocations: 0 / 351.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.0133/0.1631, allocations: 5.893 MB / 357.2 MB, free: 7.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.1633, allocations: 94.42 kB / 357.3 MB, free: 7.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009174/0.1642, allocations: 0.5847 MB / 357.8 MB, free: 6.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.1643, allocations: 65.69 kB / 357.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002945/0.1646, allocations: 341.2 kB / 358.2 MB, free: 6.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004379/0.1651, allocations: 477.4 kB / 358.7 MB, free: 5.777 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.794e-05/0.1652, allocations: 28 kB / 358.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.1654, allocations: 390.7 kB / 359.1 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.1665, allocations: 0.5818 MB / 359.7 MB, free: 4.777 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.1677, allocations: 0.7271 MB / 360.4 MB, free: 4.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.1688, allocations: 0.5213 MB / 360.9 MB, free: 3.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1688, allocations: 0 / 360.9 MB, free: 3.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003693/0.1725, allocations: 1.864 MB / 362.8 MB, free: 1.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.1726, allocations: 4 kB / 362.8 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.1726, allocations: 4 kB / 362.8 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001885/0.1745, allocations: 0.9618 MB / 363.8 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000971/0.1755, allocations: 259.6 kB / 364 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002541/0.178, allocations: 1.997 MB / 366 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.1792, allocations: 211.9 kB / 366.2 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.1793, allocations: 55.98 kB / 366.3 MB, free: 14.08 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005257/0.1798, allocations: 265.5 kB / 366.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.18, allocations: 86.97 kB / 366.6 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003027/0.1803, allocations: 133.2 kB / 366.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.1804, allocations: 12 kB / 366.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.1804, allocations: 7.891 kB / 366.8 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.1804, allocations: 7.969 kB / 366.8 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005961/0.1864, allocations: 3.327 MB / 370.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.1864, allocations: 8.016 kB / 370.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.1874, allocations: 255.7 kB / 370.4 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001735/0.1892, allocations: 0.907 MB / 371.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.1893, allocations: 47.94 kB / 371.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002282/0.1916, allocations: 1.933 MB / 373.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1916, allocations: 160 / 373.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004976/0.1966, allocations: 2.626 MB / 375.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005665/0.1972, allocations: 303.7 kB / 376.2 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001769/0.1974, allocations: 36 kB / 376.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009607/0.1983, allocations: 215.8 kB / 376.4 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004256/0.1988, allocations: 224.8 kB / 376.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.501e-05/0.1989, allocations: 51.95 kB / 376.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005273/0.1994, allocations: 422.8 kB / 377.1 MB, free: 3.062 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1994, allocations: 0 / 377.1 MB, free: 3.062 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008955/0.2003, allocations: 316 kB / 377.4 MB, free: 2.754 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003486/0.2007, allocations: 193.7 kB / 377.6 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003023/0.2037, allocations: 1.519 MB / 379.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2037, allocations: 0 / 379.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/0.2054, allocations: 0.8522 MB / 380 MB, free: 192 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009/0.2063, allocations: 161.7 kB / 380.1 MB, free: 36 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1914/0.3978, allocations: 3.824 MB / 384 MB, free: 52.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008096/0.3986, allocations: 1.027 MB / 385 MB, free: 52.11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005134/0.3992, allocations: 83.86 kB / 385.1 MB, free: 52.1 MB / 318.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3992, allocations: 1.344 kB / 385.1 MB, free: 52.1 MB / 318.1 MB Notification: Performance of Templates: time 0.03295/0.4321, allocations: 19.38 MB / 404.5 MB, free: 41.21 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.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.Mechanics.Rotational.Examples.HeatLossesCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLossesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLossesCalcHelperMain.o] Error 1