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.0009904/0.0009904, allocations: 101.4 kB / 17.96 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.001086/0.001086, allocations: 176.1 kB / 18.86 MB, free: 4.777 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.832/1.832, allocations: 205.4 MB / 225 MB, free: 12.98 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.0005331/0.0005331, allocations: 8 kB / 282 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1338, allocations: 47.58 MB / 329.6 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006185/0.14, allocations: 4.58 MB / 334.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004313/0.1444, allocations: 1.748 MB / 335.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001003/0.1454, allocations: 23.88 kB / 336 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007317/0.1462, allocations: 131.1 kB / 336.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001767/0.1479, allocations: 345.8 kB / 336.4 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.1494, allocations: 463.4 kB / 336.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00258/0.152, allocations: 1.534 MB / 338.4 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006248/0.1526, allocations: 273 kB / 338.7 MB, free: 10.63 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001107/0.1538, allocations: 0.6071 MB / 339.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008977/0.1547, allocations: 0.7239 MB / 340 MB, free: 9.293 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001376/0.1548, allocations: 64 kB / 340.1 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003932/0.1552, allocations: 143.9 kB / 340.2 MB, free: 9.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003168/0.1555, allocations: 275 kB / 340.5 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006453/0.1562, allocations: 0.5691 MB / 341.1 MB, free: 8.242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.1574, allocations: 1.064 MB / 342.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1574, allocations: 0 / 342.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.1574, allocations: 0 / 342.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.1574, allocations: 0 / 342.1 MB, free: 7.176 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.003264/0.1607, allocations: 1.38 MB / 343.5 MB, free: 5.742 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1607, allocations: 8.031 kB / 343.5 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005153/0.1613, allocations: 143.5 kB / 343.6 MB, free: 5.594 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009482/0.1622, allocations: 0.6006 MB / 344.2 MB, free: 4.949 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003549/0.1626, allocations: 203.4 kB / 344.4 MB, free: 4.734 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002095/0.1628, allocations: 107.8 kB / 344.5 MB, free: 4.629 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002394/0.1652, allocations: 1.271 MB / 345.8 MB, free: 3.34 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.34e-05/0.1653, allocations: 7.906 kB / 345.8 MB, free: 3.332 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/0.1654, allocations: 40 kB / 345.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.437e-05/0.1654, allocations: 24 kB / 345.9 MB, free: 3.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002895/0.1683, allocations: 1.382 MB / 347.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006764/0.1751, allocations: 3.741 MB / 351 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.1773, allocations: 1.077 MB / 352.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.1786, allocations: 0.6841 MB / 352.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.861e-05/0.1787, allocations: 21.3 kB / 352.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.1788, allocations: 43.88 kB / 352.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 4.509e-06/0.1788, allocations: 0 / 352.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.01431/0.1931, allocations: 5.928 MB / 358.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.925e-05/0.1932, allocations: 94.41 kB / 358.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009468/0.1942, allocations: 0.5848 MB / 359.4 MB, free: 5.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001356/0.1944, allocations: 65.7 kB / 359.5 MB, free: 5.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003624/0.1947, allocations: 333.2 kB / 359.8 MB, free: 4.945 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004608/0.1952, allocations: 481.2 kB / 360.3 MB, free: 4.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/0.1954, allocations: 117.6 kB / 360.4 MB, free: 4.348 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.1956, allocations: 394.7 kB / 360.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.1967, allocations: 0.5896 MB / 361.4 MB, free: 3.363 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.1981, allocations: 0.7271 MB / 362.1 MB, free: 2.613 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00203/0.2001, allocations: 1.073 MB / 363.2 MB, free: 1.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.2001, allocations: 0 / 363.2 MB, free: 1.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003535/0.2037, allocations: 1.806 MB / 365 MB, free: 15.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.2037, allocations: 8 kB / 365 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.2037, allocations: 0 / 365 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001893/0.2056, allocations: 0.9696 MB / 366 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009891/0.2066, allocations: 263.5 kB / 366.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/0.2091, allocations: 2.005 MB / 368.2 MB, free: 12.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/0.2103, allocations: 207.9 kB / 368.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.2104, allocations: 51.98 kB / 368.5 MB, free: 12.15 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,lossyGear.ideal,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * 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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(4,40), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005797/0.211, allocations: 277.4 kB / 368.8 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.2112, allocations: 86.97 kB / 368.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003167/0.2115, allocations: 129.2 kB / 369 MB, free: 11.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.2116, allocations: 16 kB / 369 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.9e-05/0.2116, allocations: 0 / 369 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.2116, allocations: 3.984 kB / 369 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006111/0.2177, allocations: 3.346 MB / 372.3 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.2177, allocations: 0 / 372.3 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.2188, allocations: 255.8 kB / 372.6 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001837/0.2207, allocations: 0.9108 MB / 373.5 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.2208, allocations: 51.94 kB / 373.6 MB, free: 6.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002283/0.2231, allocations: 1.948 MB / 375.5 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2231, allocations: 0 / 375.5 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005104/0.2282, allocations: 2.63 MB / 378.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005908/0.2288, allocations: 299.8 kB / 378.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.229, allocations: 40 kB / 378.5 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.2301, allocations: 215.8 kB / 378.7 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004229/0.2306, allocations: 193 kB / 378.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.2307, allocations: 59.97 kB / 378.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006178/0.2313, allocations: 426.8 kB / 379.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2313, allocations: 0 / 379.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000983/0.2323, allocations: 320.1 kB / 379.6 MB, free: 0.7812 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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (4,38)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000407/0.2327, allocations: 193.2 kB / 379.8 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.2299/0.4626, allocations: 1.524 MB / 381.4 MB, free: 54.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.4627, allocations: 0 / 381.4 MB, free: 54.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003467/0.4662, allocations: 0.8498 MB / 382.2 MB, free: 54.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/0.4685, allocations: 162.4 kB / 382.4 MB, free: 54.1 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.4799, allocations: 3.937 MB / 386.3 MB, free: 52.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001388/0.4814, allocations: 1.024 MB / 387.3 MB, free: 51.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007358/0.4822, allocations: 85.2 kB / 387.4 MB, free: 51.7 MB / 318.1 MB Notification: Performance of SimCode: time 2.184e-06/0.4822, allocations: 0 / 387.4 MB, free: 51.7 MB / 318.1 MB Notification: Performance of Templates: time 0.03623/0.5184, allocations: 19.39 MB / 406.8 MB, free: 39.42 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++ -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.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