Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002295/0.002295, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.038/2.038, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001077/0.001077, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2774/0.2774, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.058e-05/3.083e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1158, allocations: 58.85 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4993/0.6152, allocations: 91.45 MB / 0.5621 GB, free: 12.21 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.6155, allocations: 69.5 kB / 0.5621 GB, free: 12.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09096/0.7065, allocations: 11.93 MB / 0.5738 GB, free: 1.906 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.7066, allocations: 4 kB / 0.5738 GB, free: 1.902 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.787e-05/0.7067, allocations: 12 kB / 0.5738 GB, free: 1.891 MB / 378.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.004855/0.7116, allocations: 0.9373 MB / 0.5747 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.26e-05/0.7117, allocations: 8.031 kB / 0.5747 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004926/0.7122, allocations: 79.06 kB / 0.5748 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001262/0.7135, allocations: 396 kB / 0.5752 GB, free: 492 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.991e-05/0.7136, allocations: 51.19 kB / 0.5752 GB, free: 464 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002831/0.7139, allocations: 65.72 kB / 0.5753 GB, free: 416 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00278/0.7167, allocations: 0.7395 MB / 0.576 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.724e-05/0.7168, allocations: 15.83 kB / 0.576 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001501/0.717, allocations: 21.75 kB / 0.5761 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.783e-05/0.717, allocations: 19.95 kB / 0.5761 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002733/0.7198, allocations: 0.6162 MB / 0.5767 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/0.7301, allocations: 2.583 MB / 0.5792 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00278/0.7329, allocations: 0.5729 MB / 0.5798 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.7345, allocations: 334.8 kB / 0.5801 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002162/0.7348, allocations: 19.55 kB / 0.5801 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.7349, allocations: 41.94 kB / 0.5801 GB, free: 12.38 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 5.881e-06/0.7349, allocations: 0 / 0.5801 GB, free: 12.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.009519/0.7444, allocations: 2.401 MB / 0.5825 GB, free: 10.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.663e-05/0.7446, allocations: 144.4 kB / 0.5826 GB, free: 10.01 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005984/0.7452, allocations: 329 kB / 0.5829 GB, free: 9.738 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002902/0.7455, allocations: 54.06 kB / 0.583 GB, free: 9.695 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.7458, allocations: 307.4 kB / 0.5833 GB, free: 9.438 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004175/0.7462, allocations: 279.1 kB / 0.5836 GB, free: 9.203 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.944e-05/0.7463, allocations: 23.56 kB / 0.5836 GB, free: 9.195 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.7465, allocations: 348.3 kB / 0.5839 GB, free: 8.863 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.7476, allocations: 307.8 kB / 0.5842 GB, free: 8.68 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.7488, allocations: 473.5 kB / 0.5847 GB, free: 8.301 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008671/0.7497, allocations: 263.9 kB / 0.5849 GB, free: 8.125 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.7497, allocations: 0 / 0.5849 GB, free: 8.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004128/0.7538, allocations: 1.093 MB / 0.586 GB, free: 7.309 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.7539, allocations: 4 kB / 0.586 GB, free: 7.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-05/0.754, allocations: 12.33 kB / 0.586 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002009/0.756, allocations: 0.5821 MB / 0.5866 GB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.7572, allocations: 154.6 kB / 0.5867 GB, free: 6.691 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003331/0.7606, allocations: 2.572 MB / 0.5892 GB, free: 4.223 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.7626, allocations: 193.7 kB / 0.5894 GB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000265/0.7629, allocations: 46.98 kB / 0.5894 GB, free: 4.008 MB / 394.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 () * 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.0003566/0.7632, allocations: 167.8 kB / 0.5896 GB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002984/0.7636, allocations: 67.2 kB / 0.5897 GB, free: 3.797 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003659/0.7672, allocations: 1.021 MB / 0.5907 GB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.968e-05/0.7673, allocations: 11.94 kB / 0.5907 GB, free: 3.043 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.7673, allocations: 4 kB / 0.5907 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-05/0.7673, allocations: 11.94 kB / 0.5907 GB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00773/0.7751, allocations: 2.031 MB / 0.5927 GB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.971e-05/0.7752, allocations: 3.984 kB / 0.5927 GB, free: 1.371 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.7764, allocations: 123.5 kB / 0.5928 GB, free: 1.254 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/0.7783, allocations: 0.5504 MB / 0.5933 GB, free: 0.8164 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002329/0.7786, allocations: 32.95 kB / 0.5934 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/0.7816, allocations: 2.533 MB / 0.5958 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.7817, allocations: 0 / 0.5958 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004556/0.7863, allocations: 1.637 MB / 0.5974 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006512/0.787, allocations: 215.7 kB / 0.5976 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002128/0.7872, allocations: 26.36 kB / 0.5977 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/0.7889, allocations: 173.7 kB / 0.5978 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006531/0.7896, allocations: 181.1 kB / 0.598 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.7898, allocations: 41.52 kB / 0.598 GB, free: 12.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004656/0.7903, allocations: 254.8 kB / 0.5983 GB, free: 12.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7903, allocations: 0 / 0.5983 GB, free: 12.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001273/0.7916, allocations: 205.3 kB / 0.5985 GB, free: 12.09 MB / 410.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) * 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.0004087/0.792, allocations: 167.3 kB / 0.5986 GB, free: 11.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002861/0.7949, allocations: 0.904 MB / 0.5995 GB, free: 11.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.7949, allocations: 8.75 kB / 0.5995 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001758/0.7967, allocations: 472 kB / 0.6 GB, free: 10.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.798, allocations: 90.62 kB / 0.6001 GB, free: 10.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.8081, allocations: 2.046 MB / 0.6021 GB, free: 8.914 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006796/0.8089, allocations: 0.9262 MB / 0.603 GB, free: 7.957 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.8092, allocations: 50.3 kB / 0.603 GB, free: 7.914 MB / 410.7 MB Notification: Performance of SimCode: time 1.313e-06/0.8092, allocations: 0 / 0.603 GB, free: 7.914 MB / 410.7 MB Notification: Performance of Templates: time 0.03244/0.8417, allocations: 16.38 MB / 0.619 GB, free: 7.613 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches