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.001249/0.001249, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001714/0.001715, allocations: 173.8 kB / 16.58 MB, free: 6.84 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.599/1.599, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4582/0.4582, allocations: 43.58 MB / 314.6 MB, free: 8.797 MB / 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.000757/0.0007572, allocations: 12 kB / 383.9 MB, free: 7.992 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1522, allocations: 58.87 MB / 442.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005177/0.1574, allocations: 3.368 MB / 446.2 MB, free: 9.629 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003628/0.1611, allocations: 1.24 MB / 447.4 MB, free: 8.383 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008516/0.162, allocations: 11.94 kB / 447.4 MB, free: 8.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005793/0.1626, allocations: 83.33 kB / 447.5 MB, free: 8.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008609/0.1635, allocations: 182.6 kB / 447.7 MB, free: 8.109 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001004/0.1645, allocations: 263.6 kB / 448 MB, free: 7.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009637/0.1655, allocations: 0.9014 MB / 448.9 MB, free: 6.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002905/0.1658, allocations: 140.9 kB / 449 MB, free: 6.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004747/0.1662, allocations: 386.6 kB / 449.4 MB, free: 6.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005063/0.1668, allocations: 434.4 kB / 449.8 MB, free: 5.996 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.573e-05/0.1669, allocations: 40 kB / 449.8 MB, free: 5.957 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.1671, allocations: 83.95 kB / 449.9 MB, free: 5.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.1673, allocations: 159.4 kB / 450.1 MB, free: 5.719 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.1674, allocations: 149.3 kB / 450.2 MB, free: 5.566 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006296/0.168, allocations: 0.6431 MB / 450.9 MB, free: 4.922 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1681, allocations: 0 / 450.9 MB, free: 4.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1681, allocations: 0 / 450.9 MB, free: 4.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.1681, allocations: 0 / 450.9 MB, free: 4.922 MB / 382.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.002032/0.1701, allocations: 1.005 MB / 451.9 MB, free: 3.863 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/0.1702, allocations: 8.031 kB / 451.9 MB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.1703, allocations: 83.06 kB / 452 MB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000587/0.1709, allocations: 416.7 kB / 452.4 MB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.063e-05/0.171, allocations: 49.31 kB / 452.4 MB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.1711, allocations: 63.91 kB / 452.5 MB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.1726, allocations: 0.8294 MB / 453.3 MB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.1726, allocations: 7.906 kB / 453.3 MB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.366e-05/0.1727, allocations: 35.91 kB / 453.3 MB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.1727, allocations: 19.95 kB / 453.4 MB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.1743, allocations: 0.7971 MB / 454.2 MB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3132/0.4875, allocations: 2.622 MB / 456.8 MB, free: 44.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.4888, allocations: 0.6386 MB / 457.4 MB, free: 44.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00062/0.4894, allocations: 392.9 kB / 457.8 MB, free: 44.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.699e-05/0.4895, allocations: 10.81 kB / 457.8 MB, free: 44.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.4895, allocations: 50.16 kB / 457.9 MB, free: 44.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 3.346e-06/0.4895, allocations: 0 / 457.9 MB, free: 44.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.00688/0.4964, allocations: 3.726 MB / 461.6 MB, free: 43.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.698e-05/0.4965, allocations: 142.8 kB / 461.7 MB, free: 42.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005664/0.4971, allocations: 427 kB / 462.1 MB, free: 42.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.205e-05/0.4972, allocations: 51.33 kB / 462.2 MB, free: 42.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.4974, allocations: 281 kB / 462.5 MB, free: 42.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.4975, allocations: 267.2 kB / 462.7 MB, free: 42.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.181e-05/0.4976, allocations: 16.69 kB / 462.7 MB, free: 42.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.4977, allocations: 372 kB / 463.1 MB, free: 42.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007243/0.4985, allocations: 398.7 kB / 463.5 MB, free: 42.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008523/0.4993, allocations: 0.5515 MB / 464.1 MB, free: 42.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007318/0.5001, allocations: 350.4 kB / 464.4 MB, free: 42.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.5001, allocations: 2.812 kB / 464.4 MB, free: 42.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002301/0.5024, allocations: 1.281 MB / 465.7 MB, free: 41.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.5024, allocations: 6.344 kB / 465.7 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.5025, allocations: 7.188 kB / 465.7 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001681/0.5041, allocations: 0.7582 MB / 466.5 MB, free: 41.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005533/0.5047, allocations: 158 kB / 466.6 MB, free: 41.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001953/0.5067, allocations: 2.699 MB / 469.3 MB, free: 39.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008532/0.5075, allocations: 198.8 kB / 469.5 MB, free: 39.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.467e-05/0.5076, allocations: 38.36 kB / 469.5 MB, free: 39.7 MB / 382.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.0003984/0.508, allocations: 210.9 kB / 469.7 MB, free: 39.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.5082, allocations: 66.56 kB / 469.8 MB, free: 39.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001995/0.5084, allocations: 86.7 kB / 469.9 MB, free: 39.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.5084, allocations: 9 kB / 469.9 MB, free: 39.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/0.5085, allocations: 0 / 469.9 MB, free: 39.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.5085, allocations: 6.594 kB / 469.9 MB, free: 39.47 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.5119, allocations: 2.191 MB / 472.1 MB, free: 38.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.5119, allocations: 6.375 kB / 472.1 MB, free: 38.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000478/0.5124, allocations: 123 kB / 472.2 MB, free: 38.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009885/0.5134, allocations: 0.7223 MB / 472.9 MB, free: 38.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.257e-05/0.5135, allocations: 29.02 kB / 473 MB, free: 38.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.5151, allocations: 2.641 MB / 475.6 MB, free: 35.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.5151, allocations: 4.906 kB / 475.6 MB, free: 35.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002772/0.5179, allocations: 1.809 MB / 477.4 MB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002833/0.5182, allocations: 223.4 kB / 477.6 MB, free: 34.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.5183, allocations: 25.69 kB / 477.7 MB, free: 34.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007322/0.519, allocations: 169.2 kB / 477.8 MB, free: 34.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000347/0.5194, allocations: 172.5 kB / 478 MB, free: 34.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.419e-05/0.5195, allocations: 33.98 kB / 478 MB, free: 34.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003264/0.5198, allocations: 287 kB / 478.3 MB, free: 34.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5198, allocations: 0 / 478.3 MB, free: 34.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009645/0.5208, allocations: 199.5 kB / 478.5 MB, free: 34.57 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.0002733/0.5211, allocations: 159.4 kB / 478.7 MB, free: 34.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.5229, allocations: 0.9731 MB / 479.6 MB, free: 34.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.523, allocations: 7.75 kB / 479.7 MB, free: 34.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.524, allocations: 0.524 MB / 480.2 MB, free: 33.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000886/0.5249, allocations: 99.72 kB / 480.3 MB, free: 33.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00427/0.5292, allocations: 2.577 MB / 482.8 MB, free: 32.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.5295, allocations: 0.9082 MB / 483.8 MB, free: 31.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002785/0.5298, allocations: 64.8 kB / 483.8 MB, free: 31.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.53, allocations: 44.95 kB / 483.9 MB, free: 31.72 MB / 382.1 MB Notification: Performance of SimCode: time 1.303e-06/0.53, allocations: 0 / 483.9 MB, free: 31.72 MB / 382.1 MB Notification: Performance of Templates: time 0.02823/0.5582, allocations: 14.06 MB / 497.9 MB, free: 29.81 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches