Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 93.69 kB / 16.93 MB, free: 5.98 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.0009334/0.0009337, allocations: 179.7 kB / 17.82 MB, free: 5.652 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.324/1.324, allocations: 205.4 MB / 224 MB, free: 13.16 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.0007182/0.0007183, allocations: 12 kB / 280.7 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.116, allocations: 47.59 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003944/0.12, allocations: 2.449 MB / 330.8 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.1221, allocations: 0.9557 MB / 331.7 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002205/0.1224, allocations: 11.88 kB / 331.7 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.1226, allocations: 43.69 kB / 331.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000406/0.123, allocations: 151.5 kB / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005991/0.1236, allocations: 159.7 kB / 332.1 MB, free: 316 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000719/0.1243, allocations: 404.4 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002596/0.1246, allocations: 106.2 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004274/0.1251, allocations: 239 kB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000531/0.1256, allocations: 263 kB / 333.1 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.466e-05/0.1257, allocations: 24 kB / 333.1 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002165/0.1259, allocations: 67.95 kB / 333.2 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.1261, allocations: 95.62 kB / 333.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.1263, allocations: 97.52 kB / 333.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005686/0.1269, allocations: 415.1 kB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1269, allocations: 0 / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1269, allocations: 0 / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.1269, allocations: 0 / 333.8 MB, free: 14.62 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00187/0.1288, allocations: 0.7289 MB / 334.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1288, allocations: 12.03 kB / 334.5 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.129, allocations: 51.34 kB / 334.6 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005827/0.1296, allocations: 318.2 kB / 334.9 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.794e-05/0.1297, allocations: 32.94 kB / 334.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.1298, allocations: 43.91 kB / 334.9 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.1311, allocations: 478.3 kB / 335.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.1311, allocations: 4 kB / 335.4 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.1312, allocations: 16 kB / 335.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.1313, allocations: 12 kB / 335.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.1328, allocations: 487.7 kB / 335.9 MB, free: 12.37 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003106/0.1359, allocations: 1.145 MB / 337.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.1371, allocations: 400.8 kB / 337.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.272e-05/0.1372, allocations: 12.42 kB / 337.5 MB, free: 10.76 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.1372, allocations: 35 kB / 337.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 2.405e-06/0.1373, allocations: 0 / 337.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.007668/0.1449, allocations: 2.429 MB / 339.9 MB, free: 8.156 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/0.145, allocations: 59.97 kB / 340 MB, free: 8.086 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004407/0.1455, allocations: 279.4 kB / 340.3 MB, free: 7.805 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.287e-05/0.1456, allocations: 49.69 kB / 340.3 MB, free: 7.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.1457, allocations: 185.2 kB / 340.5 MB, free: 7.566 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.146, allocations: 185.4 kB / 340.7 MB, free: 7.383 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.529e-05/0.1461, allocations: 12 kB / 340.7 MB, free: 7.371 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.1462, allocations: 346.8 kB / 341 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00077/0.147, allocations: 253.2 kB / 341.3 MB, free: 6.777 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008157/0.1479, allocations: 296.7 kB / 341.6 MB, free: 6.48 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006501/0.1485, allocations: 203.2 kB / 341.8 MB, free: 6.285 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.1485, allocations: 8 kB / 341.8 MB, free: 6.277 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002281/0.1508, allocations: 0.7523 MB / 342.5 MB, free: 5.512 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.1509, allocations: 4 kB / 342.5 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.1509, allocations: 0 / 342.5 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/0.1523, allocations: 0.4896 MB / 343 MB, free: 5.012 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005653/0.1529, allocations: 95.83 kB / 343.1 MB, free: 4.918 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/0.1548, allocations: 1.397 MB / 344.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007768/0.1556, allocations: 104 kB / 344.6 MB, free: 3.367 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.149e-05/0.1557, allocations: 23.98 kB / 344.6 MB, free: 3.344 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003349/0.156, allocations: 169.6 kB / 344.8 MB, free: 3.168 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.1561, allocations: 39.48 kB / 344.8 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.1563, allocations: 59.73 kB / 344.9 MB, free: 3.066 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.1563, allocations: 8 kB / 344.9 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.1564, allocations: 3.938 kB / 344.9 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.1564, allocations: 3.984 kB / 344.9 MB, free: 3.051 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004257/0.1606, allocations: 1.474 MB / 346.4 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1607, allocations: 0 / 346.4 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/0.1613, allocations: 92.05 kB / 346.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001246/0.1625, allocations: 489.3 kB / 346.9 MB, free: 0.918 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.896e-05/0.1626, allocations: 23.97 kB / 347 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001885/0.1645, allocations: 1.37 MB / 348.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.1646, allocations: 0 / 348.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002976/0.1675, allocations: 1.159 MB / 349.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003493/0.1679, allocations: 168.6 kB / 349.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/0.1681, allocations: 16 kB / 349.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000625/0.1687, allocations: 79.94 kB / 349.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003103/0.169, allocations: 120.1 kB / 349.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.226e-05/0.1691, allocations: 27.97 kB / 349.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003785/0.1695, allocations: 198 kB / 350.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1695, allocations: 0 / 350.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008026/0.1703, allocations: 128 kB / 350.2 MB, free: 13.51 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003932/0.1707, allocations: 143.2 kB / 350.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001887/0.1726, allocations: 0.5967 MB / 351 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1726, allocations: 3.938 kB / 351 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.1737, allocations: 350.2 kB / 351.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006922/0.1744, allocations: 76.64 kB / 351.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005476/0.1799, allocations: 1.757 MB / 353.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006115/0.1805, allocations: 0.8287 MB / 354 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002513/0.1808, allocations: 35.28 kB / 354 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.1809, allocations: 39.42 kB / 354 MB, free: 9.621 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1809, allocations: 0 / 354 MB, free: 9.621 MB / 302.1 MB Notification: Performance of Templates: time 0.02128/0.2022, allocations: 8.921 MB / 363 MB, free: 0.6953 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches