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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001376/0.001376, allocations: 175 kB / 16.76 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.4 MB / 222.9 MB, free: 8.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008146/0.0008145, allocations: 82.42 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3358/0.3358, allocations: 43.57 MB / 363.1 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.0003772, allocations: 12 kB / 432.6 MB, free: 4.988 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1174, allocations: 58.85 MB / 491.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3462/0.4636, allocations: 91.59 MB / 0.5694 GB, free: 10.24 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.4639, allocations: 70.5 kB / 0.5695 GB, free: 10.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03386/0.4978, allocations: 11.96 MB / 0.5811 GB, free: 14.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.4979, allocations: 0 / 0.5811 GB, free: 14.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.411e-05/0.4979, allocations: 16 kB / 0.5812 GB, free: 14.22 MB / 410.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.002557/0.5005, allocations: 0.9966 MB / 0.5821 GB, free: 13.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.5006, allocations: 12.03 kB / 0.5821 GB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/0.5008, allocations: 80 kB / 0.5822 GB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006224/0.5014, allocations: 425.6 kB / 0.5826 GB, free: 12.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.808e-05/0.5015, allocations: 45.69 kB / 0.5827 GB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.5016, allocations: 60.38 kB / 0.5827 GB, free: 12.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.503, allocations: 0.7998 MB / 0.5835 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.614e-05/0.503, allocations: 11.84 kB / 0.5835 GB, free: 11.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.021e-05/0.5031, allocations: 31.98 kB / 0.5835 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.5032, allocations: 16 kB / 0.5836 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.5046, allocations: 0.7138 MB / 0.5843 GB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004126/0.5087, allocations: 2.583 MB / 0.5868 GB, free: 8.227 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.51, allocations: 0.627 MB / 0.5874 GB, free: 7.562 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007473/0.5108, allocations: 383.3 kB / 0.5878 GB, free: 7.176 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.869e-05/0.5109, allocations: 15.92 kB / 0.5878 GB, free: 7.16 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.5109, allocations: 42.56 kB / 0.5878 GB, free: 7.109 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 3.497e-06/0.5109, allocations: 0 / 0.5878 GB, free: 7.109 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.008198/0.5191, allocations: 3.703 MB / 0.5914 GB, free: 3.137 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/0.5192, allocations: 140.5 kB / 0.5916 GB, free: 2.969 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004759/0.5197, allocations: 373.9 kB / 0.5919 GB, free: 2.602 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.657e-05/0.5198, allocations: 53.69 kB / 0.592 GB, free: 2.543 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.5201, allocations: 264.6 kB / 0.5922 GB, free: 2.277 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000255/0.5203, allocations: 276.2 kB / 0.5925 GB, free: 2.004 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.135e-05/0.5204, allocations: 16 kB / 0.5925 GB, free: 1.988 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.5206, allocations: 370.8 kB / 0.5929 GB, free: 1.617 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007691/0.5213, allocations: 369.8 kB / 0.5932 GB, free: 1.254 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009231/0.5223, allocations: 0.5139 MB / 0.5937 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.5237, allocations: 0.7112 MB / 0.5944 GB, free: 15.92 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.5237, allocations: 0 / 0.5944 GB, free: 15.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002773/0.5265, allocations: 1.224 MB / 0.5956 GB, free: 14.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.5265, allocations: 8 kB / 0.5956 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.544e-05/0.5266, allocations: 11.92 kB / 0.5956 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.5278, allocations: 0.6165 MB / 0.5962 GB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005474/0.5284, allocations: 151.7 kB / 0.5964 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002245/0.5307, allocations: 2.573 MB / 0.5989 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000962/0.5316, allocations: 199.6 kB / 0.5991 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.5318, allocations: 43.98 kB / 0.5991 GB, free: 10.98 MB / 426.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.0004632/0.5322, allocations: 216.3 kB / 0.5993 GB, free: 10.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/0.5325, allocations: 67.27 kB / 0.5994 GB, free: 10.69 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00261/0.5351, allocations: 1.124 MB / 0.6005 GB, free: 9.535 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.5351, allocations: 8 kB / 0.6005 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.5351, allocations: 4 kB / 0.6005 GB, free: 9.523 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.5351, allocations: 3.984 kB / 0.6005 GB, free: 9.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003975/0.5391, allocations: 2.137 MB / 0.6026 GB, free: 7.309 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.5392, allocations: 0 / 0.6026 GB, free: 7.309 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005756/0.5397, allocations: 127.9 kB / 0.6027 GB, free: 7.184 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.5408, allocations: 0.581 MB / 0.6033 GB, free: 6.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.753e-05/0.541, allocations: 35.95 kB / 0.6033 GB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002234/0.5432, allocations: 2.526 MB / 0.6058 GB, free: 3.926 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.391e-06/0.5432, allocations: 4.031 kB / 0.6058 GB, free: 3.922 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003241/0.5465, allocations: 1.72 MB / 0.6075 GB, free: 2.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004083/0.5469, allocations: 212.2 kB / 0.6077 GB, free: 1.934 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.5471, allocations: 32 kB / 0.6077 GB, free: 1.902 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008959/0.548, allocations: 171.8 kB / 0.6079 GB, free: 1.734 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003644/0.5483, allocations: 179.5 kB / 0.608 GB, free: 1.559 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.466e-05/0.5484, allocations: 39.97 kB / 0.6081 GB, free: 1.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003603/0.5488, allocations: 263.1 kB / 0.6083 GB, free: 1.266 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5488, allocations: 0 / 0.6083 GB, free: 1.266 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009028/0.5497, allocations: 204 kB / 0.6085 GB, free: 1.066 MB / 426.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.000379/0.5501, allocations: 171 kB / 0.6087 GB, free: 0.8867 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002272/0.5524, allocations: 1.023 MB / 0.6097 GB, free: 15.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5524, allocations: 0 / 0.6097 GB, free: 15.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.5536, allocations: 0.5197 MB / 0.6102 GB, free: 15.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.5547, allocations: 104.5 kB / 0.6103 GB, free: 15.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005035/0.5598, allocations: 2.569 MB / 0.6128 GB, free: 12.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005161/0.5603, allocations: 0.9107 MB / 0.6137 GB, free: 11.66 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003195/0.5607, allocations: 56.83 kB / 0.6137 GB, free: 11.61 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.5608, allocations: 43.42 kB / 0.6138 GB, free: 11.57 MB / 442.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5608, allocations: 0 / 0.6138 GB, free: 11.57 MB / 442.7 MB Notification: Performance of Templates: time 0.02331/0.5841, allocations: 13.33 MB / 0.6268 GB, free: 14.3 MB / 458.7 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/jenkins1/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