Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001108/0.001108, allocations: 95.39 kB / 16.95 MB, free: 5.953 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.001178/0.001178, allocations: 181.5 kB / 17.84 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.565/1.565, allocations: 223.2 MB / 241.8 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002853/0.0002854, allocations: 4 kB / 301.4 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1716, allocations: 50.42 MB / 351.9 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.009279/0.1809, allocations: 4.313 MB / 356.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00711/0.1881, allocations: 1.747 MB / 357.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001713/0.1899, allocations: 19.94 kB / 358 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009797/0.1909, allocations: 127.1 kB / 358.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00269/0.1936, allocations: 341.8 kB / 358.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002146/0.1958, allocations: 398.7 kB / 358.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003411/0.1992, allocations: 1.436 MB / 360.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009909/0.2003, allocations: 241.6 kB / 360.5 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002153/0.2024, allocations: 0.5917 MB / 361.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002326/0.2048, allocations: 0.6929 MB / 361.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006626/0.2055, allocations: 64 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.2068, allocations: 139.9 kB / 362 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008642/0.2077, allocations: 263.1 kB / 362.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009394/0.2086, allocations: 209.1 kB / 362.4 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002555/0.2112, allocations: 1.068 MB / 363.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.2112, allocations: 0 / 363.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.2112, allocations: 0 / 363.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.624e-05/0.2113, allocations: 0 / 363.5 MB, free: 8.34 MB / 302.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.006801/0.2182, allocations: 1.38 MB / 364.9 MB, free: 6.906 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.571e-05/0.2183, allocations: 8.031 kB / 364.9 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001484/0.2198, allocations: 142.5 kB / 365 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002172/0.222, allocations: 0.588 MB / 365.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005806/0.2226, allocations: 199.1 kB / 365.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003566/0.2229, allocations: 103.8 kB / 365.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004211/0.2272, allocations: 1.267 MB / 367.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.279e-05/0.2273, allocations: 7.906 kB / 367.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001692/0.2274, allocations: 40 kB / 367.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.476e-05/0.2275, allocations: 27.95 kB / 367.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004808/0.2323, allocations: 1.374 MB / 368.6 MB, free: 3.082 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.367/0.5994, allocations: 3.731 MB / 372.3 MB, free: 23.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003775/0.6032, allocations: 1.07 MB / 373.4 MB, free: 23.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00211/0.6054, allocations: 0.6824 MB / 374.1 MB, free: 23.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001245/0.6055, allocations: 21.41 kB / 374.1 MB, free: 23.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.6056, allocations: 43.59 kB / 374.2 MB, free: 23.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 4.298e-06/0.6056, allocations: 3.906 kB / 374.2 MB, free: 23.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.01771/0.6233, allocations: 5.896 MB / 380.1 MB, free: 20.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.977e-05/0.6235, allocations: 92.23 kB / 380.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.6248, allocations: 0.5816 MB / 380.7 MB, free: 20.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.6249, allocations: 62.39 kB / 380.8 MB, free: 20.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/0.6253, allocations: 335.8 kB / 381.1 MB, free: 20.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005508/0.6258, allocations: 478.2 kB / 381.6 MB, free: 19.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.975e-05/0.6259, allocations: 30.19 kB / 381.6 MB, free: 19.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002565/0.6262, allocations: 392.9 kB / 382 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/0.6277, allocations: 0.5822 MB / 382.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001724/0.6294, allocations: 0.7252 MB / 383.3 MB, free: 18.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.6306, allocations: 0.5184 MB / 383.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.6306, allocations: 0 / 383.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004742/0.6354, allocations: 1.861 MB / 385.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.406e-05/0.6354, allocations: 7.969 kB / 385.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.6355, allocations: 1.156 kB / 385.7 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002339/0.6378, allocations: 0.9536 MB / 386.6 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.6389, allocations: 267 kB / 386.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002467/0.6414, allocations: 2.004 MB / 388.9 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/0.6427, allocations: 211.7 kB / 389.1 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.6429, allocations: 51.72 kB / 389.2 MB, free: 16.25 MB / 302.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.0006991/0.6436, allocations: 268.2 kB / 389.4 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002887/0.6439, allocations: 96.25 kB / 389.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003205/0.6442, allocations: 130.8 kB / 389.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/0.6442, allocations: 20.45 kB / 389.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.67e-05/0.6442, allocations: 2.891 kB / 389.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/0.6443, allocations: 7.406 kB / 389.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006299/0.6506, allocations: 3.309 MB / 393 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/0.6506, allocations: 3.375 kB / 393 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009836/0.6516, allocations: 259.1 kB / 393.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001737/0.6534, allocations: 0.9208 MB / 394.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.6535, allocations: 47.75 kB / 394.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001975/0.6555, allocations: 1.933 MB / 396.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.6555, allocations: 6.562 kB / 396.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00445/0.66, allocations: 2.624 MB / 398.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000608/0.6606, allocations: 291.9 kB / 399.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.6608, allocations: 36 kB / 399.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000915/0.6617, allocations: 223.6 kB / 399.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004116/0.6621, allocations: 220.8 kB / 399.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.911e-05/0.6622, allocations: 55.95 kB / 399.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004897/0.6627, allocations: 426.8 kB / 400 MB, free: 8.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6627, allocations: 0 / 400 MB, free: 8.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001025/0.6638, allocations: 317.9 kB / 400.3 MB, free: 7.871 MB / 302.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.0003963/0.6642, allocations: 185.4 kB / 400.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003027/0.6672, allocations: 1.527 MB / 402 MB, free: 6.172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.6672, allocations: 0 / 402 MB, free: 6.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.6689, allocations: 0.856 MB / 402.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.6701, allocations: 146.8 kB / 403 MB, free: 5.176 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007724/0.6778, allocations: 3.83 MB / 406.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/0.6783, allocations: 1.024 MB / 407.9 MB, free: 264 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004469/0.6788, allocations: 87.38 kB / 408 MB, free: 176 kB / 302.1 MB Notification: Performance of SimCode: time 1.403e-06/0.6788, allocations: 0 / 408 MB, free: 176 kB / 302.1 MB Notification: Performance of Templates: time 0.03398/0.7128, allocations: 19.39 MB / 427.3 MB, free: 12.78 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile make -j1 -f Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLossesCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLossesCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLossesCalcHelperMain.o] Error 1