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.001503/0.001503, allocations: 185.8 kB / 16.41 MB, free: 5.723 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.879/1.879, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001105/0.001105, allocations: 97.2 kB / 270.9 MB, free: 8.383 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.545/0.545, allocations: 43.55 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000465/0.0004649, allocations: 16 kB / 431.4 MB, free: 5.969 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1249, allocations: 58.84 MB / 490.2 MB, free: 11.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4645/0.5895, allocations: 91.54 MB / 0.5681 GB, free: 11.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.5897, allocations: 67.97 kB / 0.5682 GB, free: 10.98 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05651/0.6463, allocations: 11.96 MB / 0.5799 GB, free: 15.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.6463, allocations: 0 / 0.5799 GB, free: 15.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.659e-05/0.6464, allocations: 12 kB / 0.5799 GB, free: 15.04 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.003504/0.6499, allocations: 1.004 MB / 0.5809 GB, free: 13.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.65, allocations: 8.031 kB / 0.5809 GB, free: 13.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002803/0.6502, allocations: 79.06 kB / 0.5809 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008189/0.6511, allocations: 400.7 kB / 0.5813 GB, free: 13.47 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.46e-05/0.6512, allocations: 49.31 kB / 0.5814 GB, free: 13.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002423/0.6514, allocations: 67.91 kB / 0.5814 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002447/0.6539, allocations: 0.7963 MB / 0.5822 GB, free: 12.53 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.904e-05/0.654, allocations: 7.906 kB / 0.5822 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.6541, allocations: 24 kB / 0.5822 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/0.6542, allocations: 19.95 kB / 0.5823 GB, free: 12.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002786/0.6569, allocations: 0.7294 MB / 0.583 GB, free: 11.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007154/0.6641, allocations: 2.587 MB / 0.5855 GB, free: 9.047 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002172/0.6664, allocations: 0.6193 MB / 0.5861 GB, free: 8.391 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001507/0.6665, allocations: 15.92 kB / 0.5861 GB, free: 8.375 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/0.6666, allocations: 50.55 kB / 0.5862 GB, free: 8.316 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 4.118e-06/0.6666, allocations: 0 / 0.5862 GB, free: 8.316 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.01419/0.6808, allocations: 3.687 MB / 0.5898 GB, free: 4.363 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.386e-05/0.6809, allocations: 140.5 kB / 0.5899 GB, free: 4.195 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005718/0.6815, allocations: 317.2 kB / 0.5902 GB, free: 3.883 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002133/0.6818, allocations: 53.69 kB / 0.5903 GB, free: 3.824 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.682, allocations: 303.1 kB / 0.5905 GB, free: 3.523 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003746/0.6824, allocations: 288.1 kB / 0.5908 GB, free: 3.238 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.6825, allocations: 16 kB / 0.5908 GB, free: 3.223 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.6827, allocations: 354.8 kB / 0.5912 GB, free: 2.867 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.6841, allocations: 361.8 kB / 0.5915 GB, free: 2.512 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.6856, allocations: 0.5219 MB / 0.592 GB, free: 1.934 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.6869, allocations: 310.4 kB / 0.5923 GB, free: 1.641 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.6869, allocations: 0 / 0.5923 GB, free: 1.641 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00509/0.692, allocations: 1.209 MB / 0.5935 GB, free: 432 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.6921, allocations: 10.95 kB / 0.5935 GB, free: 424 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.012e-05/0.6921, allocations: 8 kB / 0.5935 GB, free: 416 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/0.6942, allocations: 0.6088 MB / 0.5941 GB, free: 15.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.6955, allocations: 151.7 kB / 0.5943 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003245/0.6988, allocations: 2.576 MB / 0.5968 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/0.7007, allocations: 199.7 kB / 0.597 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.7009, allocations: 47.92 kB / 0.597 GB, free: 12.71 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.000579/0.7015, allocations: 220.2 kB / 0.5972 GB, free: 12.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002721/0.7018, allocations: 59.25 kB / 0.5973 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004592/0.7064, allocations: 1.127 MB / 0.5984 GB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/0.7065, allocations: 12 kB / 0.5984 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.7065, allocations: 0 / 0.5984 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/0.7065, allocations: 7.938 kB / 0.5984 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006882/0.7134, allocations: 2.121 MB / 0.6005 GB, free: 9.055 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-05/0.7135, allocations: 0 / 0.6005 GB, free: 9.055 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/0.7149, allocations: 127.9 kB / 0.6006 GB, free: 8.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001974/0.7169, allocations: 0.581 MB / 0.6012 GB, free: 8.336 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001753/0.7171, allocations: 35.95 kB / 0.6012 GB, free: 8.301 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003255/0.7204, allocations: 2.53 MB / 0.6037 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.7204, allocations: 0 / 0.6037 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005873/0.7263, allocations: 1.779 MB / 0.6054 GB, free: 3.816 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005808/0.727, allocations: 216.2 kB / 0.6056 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002162/0.7272, allocations: 28 kB / 0.6056 GB, free: 3.559 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00175/0.729, allocations: 175.8 kB / 0.6058 GB, free: 3.387 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005762/0.7296, allocations: 175.6 kB / 0.606 GB, free: 3.215 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.7297, allocations: 39.95 kB / 0.606 GB, free: 3.176 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00047/0.7302, allocations: 263.1 kB / 0.6063 GB, free: 2.922 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7302, allocations: 0 / 0.6063 GB, free: 2.922 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001256/0.7315, allocations: 204 kB / 0.6065 GB, free: 2.723 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.0004041/0.7319, allocations: 163 kB / 0.6066 GB, free: 2.555 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003824/0.7357, allocations: 1.014 MB / 0.6076 GB, free: 1.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.836e-06/0.7358, allocations: 0 / 0.6076 GB, free: 1.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002141/0.738, allocations: 0.5152 MB / 0.6081 GB, free: 1.004 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.7392, allocations: 104.4 kB / 0.6082 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008784/0.748, allocations: 2.603 MB / 0.6107 GB, free: 14.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006112/0.7486, allocations: 0.9296 MB / 0.6116 GB, free: 13.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000318/0.749, allocations: 51.42 kB / 0.6117 GB, free: 13.24 MB / 442.7 MB Notification: Performance of SimCode: time 9.32e-07/0.749, allocations: 0 / 0.6117 GB, free: 13.24 MB / 442.7 MB Notification: Performance of Templates: time 0.03098/0.78, allocations: 16.37 MB / 0.6277 GB, free: 12.88 MB / 458.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