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.00148/0.001481, allocations: 107.8 kB / 17.81 MB, free: 5.559 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.001592/0.001592, allocations: 197.9 kB / 18.73 MB, free: 4.641 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.801/1.801, allocations: 205.1 MB / 224.6 MB, free: 12.48 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.001682/0.001682, allocations: 43.94 kB / 280.6 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1451, allocations: 46.62 MB / 327.2 MB, free: 4.91 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.007828/0.153, allocations: 5.001 MB / 332.2 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005255/0.1583, allocations: 1.767 MB / 334 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006306/0.159, allocations: 23.81 kB / 334 MB, free: 14.08 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004521/0.1595, allocations: 127.1 kB / 334.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001025/0.1605, allocations: 349.8 kB / 334.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.1616, allocations: 459.4 kB / 334.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00149/0.1631, allocations: 1.538 MB / 336.5 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004662/0.1635, allocations: 277 kB / 336.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000808/0.1643, allocations: 0.6228 MB / 337.4 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008547/0.1652, allocations: 0.7473 MB / 338.1 MB, free: 9.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001765/0.1654, allocations: 72 kB / 338.2 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003752/0.1658, allocations: 159.9 kB / 338.4 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003315/0.1661, allocations: 291 kB / 338.6 MB, free: 9.445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005574/0.1667, allocations: 0.5635 MB / 339.2 MB, free: 8.879 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009956/0.1677, allocations: 1.087 MB / 340.3 MB, free: 7.789 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1677, allocations: 0 / 340.3 MB, free: 7.789 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1677, allocations: 0 / 340.3 MB, free: 7.789 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.1677, allocations: 0 / 340.3 MB, free: 7.789 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.003433/0.1712, allocations: 1.524 MB / 341.8 MB, free: 6.211 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.1712, allocations: 12.03 kB / 341.8 MB, free: 6.199 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005085/0.1717, allocations: 139.5 kB / 342 MB, free: 6.062 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000895/0.1727, allocations: 0.5967 MB / 342.6 MB, free: 5.422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003566/0.173, allocations: 199.4 kB / 342.8 MB, free: 5.211 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002116/0.1732, allocations: 103.9 kB / 342.9 MB, free: 5.109 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002465/0.1757, allocations: 1.255 MB / 344.1 MB, free: 3.836 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.264e-05/0.1758, allocations: 15.91 kB / 344.1 MB, free: 3.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.1759, allocations: 36 kB / 344.2 MB, free: 3.785 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/0.1759, allocations: 24 kB / 344.2 MB, free: 3.762 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002892/0.1788, allocations: 1.335 MB / 345.5 MB, free: 2.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006491/0.1853, allocations: 3.659 MB / 349.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002183/0.1875, allocations: 1.046 MB / 350.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.1889, allocations: 0.6762 MB / 350.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.835e-05/0.189, allocations: 17.3 kB / 350.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.189, allocations: 43.88 kB / 351 MB, free: 12.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 3.396e-06/0.189, allocations: 0 / 351 MB, free: 12.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.01337/0.2024, allocations: 5.627 MB / 356.6 MB, free: 7.016 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.238e-05/0.2025, allocations: 90.42 kB / 356.7 MB, free: 6.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007921/0.2033, allocations: 0.5926 MB / 357.3 MB, free: 6.309 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001294/0.2034, allocations: 65.69 kB / 357.3 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000282/0.2037, allocations: 337.2 kB / 357.7 MB, free: 5.902 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000402/0.2042, allocations: 481.2 kB / 358.1 MB, free: 5.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004711/0.2046, allocations: 263.4 kB / 358.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002174/0.2049, allocations: 394.7 kB / 358.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.206, allocations: 0.5818 MB / 359.4 MB, free: 4.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.2073, allocations: 0.7193 MB / 360.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/0.2094, allocations: 1.061 MB / 361.1 MB, free: 2.363 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.2094, allocations: 0 / 361.1 MB, free: 2.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003505/0.2129, allocations: 1.791 MB / 362.9 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.2129, allocations: 8 kB / 362.9 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.2129, allocations: 0 / 362.9 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001874/0.2148, allocations: 0.9658 MB / 363.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009764/0.2158, allocations: 247.6 kB / 364.1 MB, free: 15.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/0.2183, allocations: 2.005 MB / 366.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.2194, allocations: 155.9 kB / 366.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.2196, allocations: 47.98 kB / 366.3 MB, free: 13.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,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.0005128/0.2201, allocations: 277.5 kB / 366.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/0.2203, allocations: 90.95 kB / 366.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002959/0.2206, allocations: 133.2 kB / 366.8 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.2206, allocations: 16 kB / 366.8 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.2206, allocations: 0 / 366.8 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.2206, allocations: 3.984 kB / 366.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005848/0.2265, allocations: 3.296 MB / 370.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.2265, allocations: 4 kB / 370.2 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.2276, allocations: 231.8 kB / 370.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001716/0.2293, allocations: 0.9068 MB / 371.3 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.2294, allocations: 51.94 kB / 371.3 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/0.2317, allocations: 1.94 MB / 373.3 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.2317, allocations: 8.031 kB / 373.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005113/0.2368, allocations: 2.571 MB / 375.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005297/0.2374, allocations: 295.8 kB / 376.1 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001884/0.2376, allocations: 39.98 kB / 376.2 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009764/0.2386, allocations: 147.8 kB / 376.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003963/0.239, allocations: 197 kB / 376.5 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.2391, allocations: 63.81 kB / 376.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005131/0.2396, allocations: 418.8 kB / 377 MB, free: 2.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2396, allocations: 0 / 377 MB, free: 2.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009004/0.2405, allocations: 324 kB / 377.3 MB, free: 1.914 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.0003087/0.2408, allocations: 189.3 kB / 377.5 MB, free: 1.723 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002943/0.2438, allocations: 1.5 MB / 379 MB, free: 232 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2438, allocations: 0 / 379 MB, free: 232 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2021/0.4459, allocations: 0.8331 MB / 379.8 MB, free: 55.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.4471, allocations: 162.4 kB / 380 MB, free: 55.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008334/0.4555, allocations: 3.544 MB / 383.5 MB, free: 53.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.4561, allocations: 1.027 MB / 384.6 MB, free: 52.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004136/0.4565, allocations: 85.03 kB / 384.6 MB, free: 52.87 MB / 318.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4565, allocations: 0 / 384.6 MB, free: 52.87 MB / 318.1 MB Notification: Performance of Templates: time 0.02406/0.4806, allocations: 19.53 MB / 404.2 MB, free: 41.59 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