Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 94.09 kB / 16.98 MB, free: 5.938 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.001415/0.001415, allocations: 182.6 kB / 17.87 MB, free: 5.609 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.377/1.377, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2306/0.2306, allocations: 44.22 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003418, allocations: 8 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1478, allocations: 61.92 MB / 471.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004438/0.1523, allocations: 3.153 MB / 474.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002942/0.1553, allocations: 1.236 MB / 475.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003246/0.1556, allocations: 8 kB / 475.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002314/0.1559, allocations: 79.39 kB / 475.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005713/0.1564, allocations: 251.3 kB / 476.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008192/0.1573, allocations: 251.5 kB / 476.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001008/0.1583, allocations: 0.6339 MB / 477 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002839/0.1586, allocations: 148.9 kB / 477.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005084/0.1591, allocations: 382.7 kB / 477.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000507/0.1596, allocations: 438.4 kB / 478 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.377e-05/0.1597, allocations: 40 kB / 478 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002056/0.1599, allocations: 79.95 kB / 478.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.1601, allocations: 159.4 kB / 478.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.1603, allocations: 141.3 kB / 478.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006774/0.1609, allocations: 0.6431 MB / 479 MB, free: 6.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.161, allocations: 0 / 479 MB, free: 6.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.161, allocations: 4 kB / 479 MB, free: 6.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.161, allocations: 0 / 479 MB, free: 6.109 MB / 350.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.002172/0.1632, allocations: 0.9975 MB / 480 MB, free: 5.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.1632, allocations: 12.03 kB / 480.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.1634, allocations: 79.06 kB / 480.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006054/0.164, allocations: 412.7 kB / 480.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.1641, allocations: 45.31 kB / 480.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.1642, allocations: 67.91 kB / 480.6 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.1657, allocations: 0.8374 MB / 481.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.1657, allocations: 15.83 kB / 481.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.552e-05/0.1658, allocations: 24 kB / 481.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.1658, allocations: 16 kB / 481.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001556/0.1674, allocations: 0.7821 MB / 482.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004258/0.1717, allocations: 2.636 MB / 485 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.173, allocations: 0.651 MB / 485.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.164e-05/0.1731, allocations: 16.31 kB / 485.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.1731, allocations: 42.88 kB / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.344e-06/0.1731, allocations: 0 / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.008028/0.1811, allocations: 3.726 MB / 489.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.007e-05/0.1813, allocations: 136.5 kB / 489.5 MB, free: 11.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005002/0.1818, allocations: 421.8 kB / 489.9 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.84e-05/0.1819, allocations: 49.69 kB / 490 MB, free: 10.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/0.1821, allocations: 288.3 kB / 490.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/0.1823, allocations: 264.4 kB / 490.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.311e-05/0.1824, allocations: 24 kB / 490.5 MB, free: 9.996 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.1826, allocations: 366.8 kB / 490.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008017/0.1834, allocations: 401.8 kB / 491.3 MB, free: 9.238 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000904/0.1843, allocations: 0.5569 MB / 491.9 MB, free: 8.625 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007002/0.185, allocations: 342 kB / 492.2 MB, free: 8.293 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.185, allocations: 0 / 492.2 MB, free: 8.293 MB / 366.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002584/0.1876, allocations: 1.283 MB / 493.5 MB, free: 6.992 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.1876, allocations: 5.875 kB / 493.5 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.1876, allocations: 4 kB / 493.5 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.189, allocations: 0.7646 MB / 494.2 MB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005734/0.1896, allocations: 155.7 kB / 494.4 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002477/0.1921, allocations: 2.69 MB / 497.1 MB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009935/0.1931, allocations: 195.9 kB / 497.3 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.84e-05/0.1932, allocations: 43.98 kB / 497.3 MB, free: 3.027 MB / 366.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 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004156/0.1936, allocations: 213.2 kB / 497.5 MB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.1939, allocations: 63.25 kB / 497.6 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001762/0.1941, allocations: 87.91 kB / 497.7 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.1941, allocations: 12 kB / 497.7 MB, free: 2.656 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.1941, allocations: 4 kB / 497.7 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.669e-05/0.1942, allocations: 7.922 kB / 497.7 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/0.1982, allocations: 2.196 MB / 499.9 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.1982, allocations: 0 / 499.9 MB, free: 388 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005566/0.1988, allocations: 119.8 kB / 0.4883 GB, free: 268 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.2, allocations: 0.7215 MB / 0.489 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-05/0.2001, allocations: 31.95 kB / 0.489 GB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/0.2023, allocations: 2.639 MB / 0.4916 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2023, allocations: 0 / 0.4916 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003163/0.2055, allocations: 1.851 MB / 0.4934 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003476/0.2058, allocations: 216.2 kB / 0.4936 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.206, allocations: 31.95 kB / 0.4937 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008915/0.2069, allocations: 175.8 kB / 0.4938 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003567/0.2072, allocations: 167.6 kB / 0.494 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.31e-05/0.2073, allocations: 35.95 kB / 0.494 GB, free: 10.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003196/0.2076, allocations: 287.1 kB / 0.4943 GB, free: 9.938 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2076, allocations: 0 / 0.4943 GB, free: 9.938 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008139/0.2085, allocations: 200 kB / 0.4945 GB, free: 9.742 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002735/0.2087, allocations: 156.5 kB / 0.4946 GB, free: 9.578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002189/0.2109, allocations: 0.9787 MB / 0.4956 GB, free: 8.598 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.211, allocations: 0 / 0.4956 GB, free: 8.598 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.2122, allocations: 0.5213 MB / 0.4961 GB, free: 8.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007205/0.2129, allocations: 93.84 kB / 0.4962 GB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005098/0.218, allocations: 2.569 MB / 0.4987 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004886/0.2185, allocations: 0.9144 MB / 0.4996 GB, free: 4.438 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003125/0.2189, allocations: 64.81 kB / 0.4996 GB, free: 4.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.219, allocations: 47.42 kB / 0.4997 GB, free: 4.324 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.219, allocations: 0 / 0.4997 GB, free: 4.324 MB / 382.1 MB Notification: Performance of Templates: time 0.217/0.436, allocations: 14.03 MB / 0.5134 GB, free: 46.89 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches