Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 97.83 kB / 16.67 MB, free: 6.105 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.001478/0.001478, allocations: 176.6 kB / 17.57 MB, free: 5.824 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.926/1.926, allocations: 205.4 MB / 223.8 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2828/0.2828, allocations: 43.59 MB / 315.6 MB, free: 420 kB / 254.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.0006049/0.0006049, allocations: 15.44 kB / 385.2 MB, free: 56.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1665, allocations: 58.87 MB / 444.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.00357/0.1701, allocations: 3.542 MB / 447.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002479/0.1726, allocations: 1.263 MB / 448.9 MB, free: 324 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002488/0.1729, allocations: 11.94 kB / 448.9 MB, free: 312 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002946/0.1732, allocations: 91.34 kB / 449 MB, free: 220 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.1736, allocations: 174.7 kB / 449.2 MB, free: 44 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007435/0.1744, allocations: 299.6 kB / 449.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.1754, allocations: 0.9717 MB / 450.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003318/0.1757, allocations: 161.8 kB / 450.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005347/0.1763, allocations: 398.5 kB / 451 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005898/0.1769, allocations: 450.3 kB / 451.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.752e-05/0.177, allocations: 43.94 kB / 451.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002301/0.1772, allocations: 87.95 kB / 451.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.1774, allocations: 167.3 kB / 451.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003871/0.1778, allocations: 379.8 kB / 452.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007336/0.1786, allocations: 0.6389 MB / 452.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.1786, allocations: 0 / 452.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.1786, allocations: 0 / 452.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.1786, allocations: 4 kB / 452.7 MB, free: 12.46 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002369/0.181, allocations: 0.9899 MB / 453.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.19e-05/0.1811, allocations: 12.03 kB / 453.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.1813, allocations: 76 kB / 453.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007157/0.182, allocations: 437.6 kB / 454.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.713e-05/0.1821, allocations: 49.62 kB / 454.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.1823, allocations: 68.12 kB / 454.3 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.1839, allocations: 0.8297 MB / 455.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.415e-05/0.1839, allocations: 11.84 kB / 455.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.184, allocations: 32 kB / 455.2 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.184, allocations: 15.94 kB / 455.2 MB, free: 9.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.1857, allocations: 0.7968 MB / 456 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004611/0.1903, allocations: 2.644 MB / 458.7 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/0.1918, allocations: 0.6557 MB / 459.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007735/0.1926, allocations: 397 kB / 459.7 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.861e-05/0.1926, allocations: 8.219 kB / 459.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.814e-05/0.1927, allocations: 46.5 kB / 459.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of pre-optimization done (n=72): time 3.827e-06/0.1927, allocations: 0 / 459.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=76): time 0.009019/0.2017, allocations: 3.747 MB / 463.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001402/0.2019, allocations: 140.5 kB / 463.7 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007049/0.2026, allocations: 429.8 kB / 464.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001028/0.2028, allocations: 49.7 kB / 464.1 MB, free: 460 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003359/0.2031, allocations: 280.3 kB / 464.4 MB, free: 172 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003068/0.2034, allocations: 264.5 kB / 464.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.2036, allocations: 85.67 kB / 464.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.2038, allocations: 362.8 kB / 465.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008306/0.2046, allocations: 401.8 kB / 465.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.2057, allocations: 0.5646 MB / 466 MB, free: 14.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.2072, allocations: 0.7666 MB / 466.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2072, allocations: 0 / 466.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002875/0.2101, allocations: 1.303 MB / 468.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/0.2102, allocations: 10.5 kB / 468.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-05/0.2102, allocations: 7.938 kB / 468.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/0.2119, allocations: 0.757 MB / 468.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00059/0.2125, allocations: 163.7 kB / 469.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/0.2152, allocations: 2.69 MB / 471.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.2163, allocations: 195.8 kB / 471.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.2164, allocations: 39.98 kB / 472 MB, free: 8.332 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (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,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,bearingFriction.free,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 (91): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0004914/0.2169, allocations: 224.2 kB / 472.2 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000271/0.2172, allocations: 63.25 kB / 472.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002201/0.2174, allocations: 79.92 kB / 472.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.2174, allocations: 8 kB / 472.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/0.2175, allocations: 7.984 kB / 472.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.2175, allocations: 0 / 472.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004898/0.2224, allocations: 2.196 MB / 474.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.2224, allocations: 0 / 474.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005721/0.223, allocations: 127.9 kB / 474.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.2243, allocations: 0.7215 MB / 475.4 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.664e-05/0.2245, allocations: 31.91 kB / 475.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002663/0.2271, allocations: 2.651 MB / 478.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.2271, allocations: 0 / 478.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0035/0.2307, allocations: 1.827 MB / 479.9 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004547/0.2311, allocations: 220.2 kB / 480.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001874/0.2313, allocations: 27.94 kB / 480.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.2324, allocations: 171.8 kB / 480.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003816/0.2328, allocations: 143.8 kB / 480.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.259e-05/0.2329, allocations: 35.95 kB / 480.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004542/0.2334, allocations: 291.1 kB / 480.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.2334, allocations: 0 / 480.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001125/0.2345, allocations: 200 kB / 481 MB, free: 15.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004403/0.2349, allocations: 151.1 kB / 481.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002577/0.2375, allocations: 0.9806 MB / 482.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.2376, allocations: 448 / 482.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.2389, allocations: 0.5181 MB / 482.6 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.2401, allocations: 108.1 kB / 482.7 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006336/0.2465, allocations: 2.683 MB / 485.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000974/0.2475, allocations: 0.9105 MB / 486.3 MB, free: 9.664 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.2477, allocations: 51.41 kB / 486.4 MB, free: 9.613 MB / 366.1 MB Notification: Performance of SimCode: time 1.743e-06/0.2477, allocations: 0 / 486.4 MB, free: 9.613 MB / 366.1 MB Notification: Performance of Templates: time 0.02925/0.277, allocations: 17.07 MB / 0.4916 GB, free: 8.551 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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 OMCppModelicaTest_3.2.3_ModelicaTest.Rotational.TestFrictionCalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Rotational.TestFrictionCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Rotational.TestFrictionCalcHelperMain.o] Error 1