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.001219/0.001219, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.44/1.44, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0008223/0.0008224, allocations: 89.44 kB / 270.9 MB, free: 8.359 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.3692/0.3692, allocations: 43.56 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.0004389, allocations: 12 kB / 431.4 MB, free: 6.168 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1384, allocations: 58.84 MB / 490.2 MB, free: 11.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004616/0.143, allocations: 3.371 MB / 493.6 MB, free: 7.852 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002751/0.1458, allocations: 1.248 MB / 494.8 MB, free: 6.598 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006409/0.1465, allocations: 11.94 kB / 494.9 MB, free: 6.586 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004018/0.1469, allocations: 83.33 kB / 494.9 MB, free: 6.504 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000671/0.1476, allocations: 178.7 kB / 495.1 MB, free: 6.328 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008767/0.1485, allocations: 263.6 kB / 495.4 MB, free: 6.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001298/0.1498, allocations: 0.8975 MB / 496.3 MB, free: 5.164 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004197/0.1503, allocations: 148.9 kB / 496.4 MB, free: 5.012 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001149/0.1514, allocations: 382.7 kB / 496.8 MB, free: 4.637 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.1526, allocations: 430.4 kB / 497.2 MB, free: 4.215 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000406/0.153, allocations: 40 kB / 497.2 MB, free: 4.176 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007118/0.1537, allocations: 87.88 kB / 497.3 MB, free: 4.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005509/0.1543, allocations: 159.4 kB / 497.5 MB, free: 3.934 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003804/0.1547, allocations: 145.3 kB / 497.6 MB, free: 3.785 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.1559, allocations: 0.6431 MB / 498.3 MB, free: 3.141 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.1559, allocations: 0 / 498.3 MB, free: 3.141 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1559, allocations: 0 / 498.3 MB, free: 3.141 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.894e-05/0.156, allocations: 4 kB / 498.3 MB, free: 3.137 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.003057/0.159, allocations: 1.005 MB / 499.3 MB, free: 2.078 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.1591, allocations: 12.03 kB / 499.3 MB, free: 2.066 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.1594, allocations: 75.06 kB / 499.4 MB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008669/0.1603, allocations: 416.7 kB / 499.8 MB, free: 1.547 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.956e-05/0.1604, allocations: 49.25 kB / 499.8 MB, free: 1.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001797/0.1606, allocations: 63.91 kB / 499.9 MB, free: 1.438 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001934/0.1625, allocations: 0.8373 MB / 0.489 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.04e-05/0.1626, allocations: 15.83 kB / 0.489 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.302e-05/0.1627, allocations: 24 kB / 0.489 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.1627, allocations: 23.94 kB / 0.489 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2832/0.4459, allocations: 0.7826 MB / 0.4898 GB, free: 43.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004941/0.4509, allocations: 2.631 MB / 0.4924 GB, free: 41.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.4525, allocations: 0.6539 MB / 0.493 GB, free: 41.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008029/0.4533, allocations: 390.8 kB / 0.4934 GB, free: 41.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.599e-05/0.4534, allocations: 9.359 kB / 0.4934 GB, free: 41.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.4534, allocations: 47.64 kB / 0.4934 GB, free: 41.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 3.376e-06/0.4534, allocations: 1.031 kB / 0.4934 GB, free: 41.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=76): time 0.008425/0.4618, allocations: 3.729 MB / 0.4971 GB, free: 40.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.324e-05/0.462, allocations: 136.6 kB / 0.4972 GB, free: 40.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006049/0.4626, allocations: 424.2 kB / 0.4976 GB, free: 39.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.464e-05/0.4627, allocations: 47.92 kB / 0.4977 GB, free: 39.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.4629, allocations: 289.9 kB / 0.4979 GB, free: 39.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.4632, allocations: 264.7 kB / 0.4982 GB, free: 39.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.877e-05/0.4632, allocations: 22.62 kB / 0.4982 GB, free: 39.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.4634, allocations: 369.4 kB / 0.4986 GB, free: 39.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.4647, allocations: 402.8 kB / 0.499 GB, free: 39.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/0.4659, allocations: 0.5535 MB / 0.4995 GB, free: 39.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.4669, allocations: 344.4 kB / 0.4998 GB, free: 38.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.467, allocations: 0 / 0.4998 GB, free: 38.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002699/0.4697, allocations: 1.279 MB / 0.5011 GB, free: 38.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.4697, allocations: 14.36 kB / 0.5011 GB, free: 38.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.4697, allocations: 5.312 kB / 0.5011 GB, free: 38.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.4712, allocations: 0.762 MB / 0.5018 GB, free: 38.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005317/0.4717, allocations: 151.7 kB / 0.502 GB, free: 38.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002018/0.4738, allocations: 2.691 MB / 0.5046 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.4749, allocations: 201 kB / 0.5048 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.921e-05/0.475, allocations: 37.64 kB / 0.5048 GB, free: 35.83 MB / 378.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.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.0003585/0.4753, allocations: 214.1 kB / 0.505 GB, free: 35.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.4755, allocations: 62.12 kB / 0.5051 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.4757, allocations: 88.33 kB / 0.5052 GB, free: 35.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.4757, allocations: 11.73 kB / 0.5052 GB, free: 35.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/0.4757, allocations: 1.156 kB / 0.5052 GB, free: 35.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.4757, allocations: 5.641 kB / 0.5052 GB, free: 35.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004413/0.4802, allocations: 2.189 MB / 0.5073 GB, free: 34.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.4802, allocations: 0 / 0.5073 GB, free: 34.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005257/0.4807, allocations: 120.1 kB / 0.5075 GB, free: 34.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001066/0.4818, allocations: 0.7272 MB / 0.5082 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.942e-05/0.4819, allocations: 28.66 kB / 0.5082 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/0.4837, allocations: 2.648 MB / 0.5108 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.4837, allocations: 4.047 kB / 0.5108 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003014/0.4867, allocations: 1.807 MB / 0.5125 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000349/0.4871, allocations: 213.4 kB / 0.5127 GB, free: 30.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001408/0.4873, allocations: 32.02 kB / 0.5128 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008959/0.4882, allocations: 175.6 kB / 0.5129 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003514/0.4885, allocations: 173.3 kB / 0.5131 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.593e-05/0.4886, allocations: 32.36 kB / 0.5131 GB, free: 30.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003123/0.4889, allocations: 290 kB / 0.5134 GB, free: 30.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4889, allocations: 0 / 0.5134 GB, free: 30.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009231/0.4899, allocations: 201.2 kB / 0.5136 GB, free: 30.65 MB / 378.7 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.0003023/0.4902, allocations: 160.4 kB / 0.5138 GB, free: 30.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002151/0.4924, allocations: 0.9875 MB / 0.5147 GB, free: 30.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.4924, allocations: 0 / 0.5147 GB, free: 30.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.4935, allocations: 0.5108 MB / 0.5152 GB, free: 30.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.4946, allocations: 108.9 kB / 0.5153 GB, free: 30.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004824/0.4994, allocations: 2.608 MB / 0.5179 GB, free: 28.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.4998, allocations: 0.911 MB / 0.5188 GB, free: 27.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.5, allocations: 49.61 kB / 0.5188 GB, free: 27.78 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5001, allocations: 0 / 0.5188 GB, free: 27.78 MB / 378.7 MB Notification: Performance of Templates: time 0.02725/0.5273, allocations: 17.07 MB / 0.5355 GB, free: 23.64 MB / 378.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/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_cpp_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches