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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 176.7 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007831/0.0007831, allocations: 85.53 kB / 292.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3536/0.3536, allocations: 44.22 MB / 387.5 MB, free: 38.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003167/0.0003167, allocations: 8 kB / 459.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3466, allocations: 61.89 MB / 0.5096 GB, free: 38.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1241/0.4707, allocations: 92.77 MB / 0.6002 GB, free: 2.344 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.4709, allocations: 67.97 kB / 0.6002 GB, free: 2.277 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03459/0.5055, allocations: 12.16 MB / 0.6121 GB, free: 6.086 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5056, allocations: 0 / 0.6121 GB, free: 6.086 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.25e-05/0.5056, allocations: 19.98 kB / 0.6121 GB, free: 6.066 MB / 426.7 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.002019/0.5076, allocations: 0.9897 MB / 0.6131 GB, free: 5.027 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.5077, allocations: 15.97 kB / 0.6131 GB, free: 5.012 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.5079, allocations: 75.06 kB / 0.6132 GB, free: 4.938 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005669/0.5084, allocations: 404.7 kB / 0.6135 GB, free: 4.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.158e-05/0.5085, allocations: 49.31 kB / 0.6136 GB, free: 4.449 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.5086, allocations: 71.91 kB / 0.6137 GB, free: 4.379 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.5101, allocations: 0.7923 MB / 0.6144 GB, free: 3.555 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.26e-05/0.5102, allocations: 11.91 kB / 0.6144 GB, free: 3.543 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.426e-05/0.5103, allocations: 28 kB / 0.6145 GB, free: 3.516 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.5103, allocations: 12 kB / 0.6145 GB, free: 3.504 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.5118, allocations: 0.7194 MB / 0.6152 GB, free: 2.785 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004224/0.516, allocations: 2.579 MB / 0.6177 GB, free: 88 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.5174, allocations: 0.6232 MB / 0.6183 GB, free: 15.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.148e-05/0.5175, allocations: 19.98 kB / 0.6183 GB, free: 15.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.5176, allocations: 46.5 kB / 0.6184 GB, free: 15.35 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 5.23e-06/0.5176, allocations: 0 / 0.6184 GB, free: 15.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=82): time 0.007997/0.5256, allocations: 3.689 MB / 0.622 GB, free: 11.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/0.5257, allocations: 140.5 kB / 0.6221 GB, free: 11.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003641/0.5261, allocations: 325.1 kB / 0.6224 GB, free: 10.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.147e-05/0.5262, allocations: 49.7 kB / 0.6225 GB, free: 10.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.5263, allocations: 260.6 kB / 0.6227 GB, free: 10.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.5266, allocations: 284.1 kB / 0.623 GB, free: 10.31 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/0.5266, allocations: 20 kB / 0.623 GB, free: 10.29 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.5268, allocations: 370.8 kB / 0.6234 GB, free: 9.922 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007271/0.5275, allocations: 357.8 kB / 0.6237 GB, free: 9.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008313/0.5284, allocations: 0.5258 MB / 0.6242 GB, free: 8.992 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006445/0.529, allocations: 312 kB / 0.6245 GB, free: 8.695 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.529, allocations: 0 / 0.6245 GB, free: 8.695 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002648/0.5317, allocations: 1.229 MB / 0.6257 GB, free: 7.453 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.5317, allocations: 8 kB / 0.6257 GB, free: 7.445 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.417e-05/0.5318, allocations: 8 kB / 0.6257 GB, free: 7.438 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.5329, allocations: 0.6165 MB / 0.6263 GB, free: 6.809 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005232/0.5334, allocations: 147.8 kB / 0.6265 GB, free: 6.664 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002112/0.5356, allocations: 2.573 MB / 0.629 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00094/0.5365, allocations: 199.7 kB / 0.6292 GB, free: 3.793 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.5366, allocations: 47.97 kB / 0.6292 GB, free: 3.746 MB / 442.7 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.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.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,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004529/0.5371, allocations: 212.2 kB / 0.6294 GB, free: 3.531 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.5373, allocations: 63.25 kB / 0.6295 GB, free: 3.469 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002486/0.5398, allocations: 1.136 MB / 0.6306 GB, free: 2.305 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.5398, allocations: 12 kB / 0.6306 GB, free: 2.293 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5398, allocations: 4 kB / 0.6306 GB, free: 2.289 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.5398, allocations: 3.984 kB / 0.6306 GB, free: 2.285 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/0.5435, allocations: 2.129 MB / 0.6327 GB, free: 84 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.5435, allocations: 0 / 0.6327 GB, free: 84 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005683/0.5441, allocations: 123.9 kB / 0.6328 GB, free: 15.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.5451, allocations: 0.5693 MB / 0.6334 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.75e-05/0.5452, allocations: 39.95 kB / 0.6334 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001895/0.5471, allocations: 2.522 MB / 0.6359 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5471, allocations: 0 / 0.6359 GB, free: 12.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002985/0.5501, allocations: 1.775 MB / 0.6376 GB, free: 10.87 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003466/0.5505, allocations: 220.2 kB / 0.6378 GB, free: 10.63 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.5506, allocations: 24 kB / 0.6378 GB, free: 10.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008377/0.5515, allocations: 183.8 kB / 0.638 GB, free: 10.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003348/0.5518, allocations: 171.6 kB / 0.6382 GB, free: 10.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.949e-05/0.5519, allocations: 39.95 kB / 0.6382 GB, free: 10.22 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003059/0.5522, allocations: 271.1 kB / 0.6385 GB, free: 9.957 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5522, allocations: 0 / 0.6385 GB, free: 9.957 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008282/0.5531, allocations: 192 kB / 0.6387 GB, free: 9.77 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (55): * Single equations (assignments): 51 * 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.000294/0.5534, allocations: 172.1 kB / 0.6388 GB, free: 9.594 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.5554, allocations: 1.024 MB / 0.6398 GB, free: 8.547 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5554, allocations: 3.938 kB / 0.6398 GB, free: 8.543 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.5566, allocations: 0.5126 MB / 0.6403 GB, free: 8.035 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006995/0.5573, allocations: 91.67 kB / 0.6404 GB, free: 7.949 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004803/0.5621, allocations: 2.587 MB / 0.6429 GB, free: 5.312 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004981/0.5626, allocations: 0.9221 MB / 0.6438 GB, free: 4.359 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0002769/0.5629, allocations: 56.83 kB / 0.6439 GB, free: 4.301 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.563, allocations: 43.42 kB / 0.6439 GB, free: 4.258 MB / 458.7 MB Notification: Performance of SimCode: time 8.41e-07/0.563, allocations: 0 / 0.6439 GB, free: 4.258 MB / 458.7 MB Notification: Performance of Templates: time 0.01992/0.583, allocations: 13.25 MB / 0.6569 GB, free: 7.066 MB / 474.7 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