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.001373/0.001373, allocations: 108.6 kB / 17.93 MB, free: 5.535 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.001838/0.001838, allocations: 189.8 kB / 18.86 MB, free: 4.613 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.467/1.467, allocations: 205.1 MB / 224.7 MB, free: 12.44 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.002011/0.002011, allocations: 48.41 kB / 280.8 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1124, allocations: 46.63 MB / 327.4 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004689/0.1171, allocations: 3.069 MB / 330.5 MB, free: 1.723 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002039/0.1192, allocations: 0.9668 MB / 331.5 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003791/0.1196, allocations: 11.94 kB / 331.5 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003359/0.1199, allocations: 43.62 kB / 331.5 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004826/0.1205, allocations: 115.1 kB / 331.6 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006804/0.1212, allocations: 195.7 kB / 331.8 MB, free: 396 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008205/0.122, allocations: 0.6318 MB / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.1223, allocations: 128 kB / 332.6 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004586/0.1227, allocations: 286.9 kB / 332.9 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003248/0.1231, allocations: 306.8 kB / 333.2 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.811e-05/0.1231, allocations: 48 kB / 333.2 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.1233, allocations: 91.95 kB / 333.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.1235, allocations: 123.6 kB / 333.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.1237, allocations: 250.8 kB / 333.7 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004305/0.1241, allocations: 443.2 kB / 334.1 MB, free: 14.11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1241, allocations: 0 / 334.1 MB, free: 14.11 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1242, allocations: 0 / 334.1 MB, free: 14.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.1242, allocations: 0 / 334.1 MB, free: 14.11 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.001312/0.1255, allocations: 0.7795 MB / 334.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.1255, allocations: 12.03 kB / 334.9 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.1256, allocations: 48.38 kB / 334.9 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.126, allocations: 331.2 kB / 335.3 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.1261, allocations: 33.38 kB / 335.3 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.381e-05/0.1261, allocations: 44.38 kB / 335.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008376/0.127, allocations: 474.6 kB / 335.8 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.127, allocations: 3.906 kB / 335.8 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.523e-05/0.1271, allocations: 16 kB / 335.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.1271, allocations: 12 kB / 335.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008646/0.128, allocations: 479.7 kB / 336.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.1298, allocations: 1.121 MB / 337.4 MB, free: 10.63 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007799/0.1306, allocations: 388.4 kB / 337.8 MB, free: 10.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004877/0.1311, allocations: 278 kB / 338.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.818e-05/0.1312, allocations: 8.422 kB / 338.1 MB, free: 9.957 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.1312, allocations: 39 kB / 338.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 2.224e-06/0.1312, allocations: 0 / 338.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.00475/0.1359, allocations: 2.338 MB / 340.4 MB, free: 7.445 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.136, allocations: 67.89 kB / 340.5 MB, free: 7.367 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002728/0.1363, allocations: 279.4 kB / 340.8 MB, free: 7.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.843e-05/0.1364, allocations: 41.69 kB / 340.8 MB, free: 7.043 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.1365, allocations: 185.3 kB / 341 MB, free: 6.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.1366, allocations: 197.3 kB / 341.2 MB, free: 6.664 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.1368, allocations: 114.2 kB / 341.3 MB, free: 6.543 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1369, allocations: 346.8 kB / 341.7 MB, free: 6.195 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004389/0.1374, allocations: 241.2 kB / 341.9 MB, free: 5.961 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004746/0.1379, allocations: 284.8 kB / 342.2 MB, free: 5.676 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007256/0.1386, allocations: 422.3 kB / 342.6 MB, free: 5.258 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.1386, allocations: 0 / 342.6 MB, free: 5.258 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00153/0.1402, allocations: 0.7834 MB / 343.4 MB, free: 4.461 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.1402, allocations: 8 kB / 343.4 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.1402, allocations: 3.938 kB / 343.4 MB, free: 4.449 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009464/0.1412, allocations: 0.4973 MB / 343.9 MB, free: 3.945 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.1415, allocations: 95.89 kB / 344 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.1428, allocations: 1.405 MB / 345.4 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004594/0.1432, allocations: 76.06 kB / 345.4 MB, free: 2.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.502e-05/0.1433, allocations: 16 kB / 345.5 MB, free: 2.305 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * 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,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002339/0.1435, allocations: 177.6 kB / 345.6 MB, free: 2.121 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.416e-05/0.1436, allocations: 39.53 kB / 345.7 MB, free: 2.082 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.1437, allocations: 59.73 kB / 345.7 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1438, allocations: 8 kB / 345.7 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.1438, allocations: 0 / 345.7 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1438, allocations: 3.984 kB / 345.7 MB, free: 2.008 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002764/0.1466, allocations: 1.462 MB / 347.2 MB, free: 472 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.1466, allocations: 3.938 kB / 347.2 MB, free: 468 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.1469, allocations: 87.83 kB / 347.3 MB, free: 380 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007422/0.1477, allocations: 477.6 kB / 347.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.1477, allocations: 19.98 kB / 347.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.1489, allocations: 1.37 MB / 349.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1489, allocations: 4.031 kB / 349.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.1508, allocations: 1.092 MB / 350.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.1511, allocations: 164.6 kB / 350.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.039e-05/0.1512, allocations: 19.94 kB / 350.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004022/0.1516, allocations: 63.92 kB / 350.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002086/0.1518, allocations: 96.28 kB / 350.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.494e-05/0.1518, allocations: 19.98 kB / 350.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001931/0.152, allocations: 205.9 kB / 350.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.152, allocations: 96 / 350.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004983/0.1525, allocations: 135.9 kB / 350.9 MB, free: 12.61 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 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * 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 (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), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002427/0.1528, allocations: 147.1 kB / 351.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001316/0.1541, allocations: 0.6122 MB / 351.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.1541, allocations: 0 / 351.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006717/0.1548, allocations: 334.7 kB / 352 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005818/0.1554, allocations: 76.77 kB / 352.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/0.1591, allocations: 1.644 MB / 353.7 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.1594, allocations: 0.8124 MB / 354.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.1596, allocations: 47.36 kB / 354.6 MB, free: 8.875 MB / 302.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1596, allocations: 0 / 354.6 MB, free: 8.875 MB / 302.1 MB Notification: Performance of Templates: time 0.01081/0.1704, allocations: 8.538 MB / 363.1 MB, free: 336 kB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (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) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/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