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.002097/0.002101, allocations: 187.5 kB / 16.4 MB, free: 5.625 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.197/2.197, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001546/0.001547, allocations: 94.86 kB / 270.9 MB, free: 13.38 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.3204/0.3204, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 8 kB / 431.4 MB, free: 20.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1255, allocations: 58.85 MB / 490.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005533/0.1311, allocations: 3.15 MB / 493.4 MB, free: 6.176 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003511/0.1346, allocations: 1.283 MB / 494.6 MB, free: 4.887 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005832/0.1353, allocations: 11.94 kB / 494.7 MB, free: 4.875 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000286/0.1356, allocations: 75.45 kB / 494.7 MB, free: 4.801 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009077/0.1365, allocations: 247.3 kB / 495 MB, free: 4.559 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.1376, allocations: 255.5 kB / 495.2 MB, free: 4.309 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.139, allocations: 0.6339 MB / 495.9 MB, free: 3.676 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003831/0.1394, allocations: 144.9 kB / 496 MB, free: 3.527 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000819/0.1403, allocations: 390.7 kB / 496.4 MB, free: 3.145 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000777/0.1411, allocations: 438.3 kB / 496.8 MB, free: 2.715 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.1412, allocations: 40 kB / 496.8 MB, free: 2.676 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003151/0.1416, allocations: 75.97 kB / 496.9 MB, free: 2.602 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002555/0.1418, allocations: 159.4 kB / 497.1 MB, free: 2.445 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002275/0.1421, allocations: 145.3 kB / 497.2 MB, free: 2.297 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001083/0.1432, allocations: 0.643 MB / 497.9 MB, free: 1.652 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1432, allocations: 0 / 497.9 MB, free: 1.652 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1432, allocations: 0 / 497.9 MB, free: 1.652 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.1432, allocations: 0 / 497.9 MB, free: 1.652 MB / 330.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.003498/0.1467, allocations: 1.001 MB / 498.9 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.1468, allocations: 11.97 kB / 498.9 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002466/0.147, allocations: 83.02 kB / 499 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008673/0.1479, allocations: 416.7 kB / 499.4 MB, free: 60 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.783e-05/0.148, allocations: 45.31 kB / 499.4 MB, free: 16 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002209/0.1482, allocations: 63.98 kB / 499.5 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.1508, allocations: 0.8372 MB / 0.4886 GB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.606e-05/0.1509, allocations: 11.92 kB / 0.4886 GB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.151, allocations: 24 kB / 0.4886 GB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/0.1511, allocations: 16 kB / 0.4886 GB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003091/0.1542, allocations: 0.7893 MB / 0.4894 GB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00769/0.1619, allocations: 2.644 MB / 0.492 GB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.1645, allocations: 0.6397 MB / 0.4926 GB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.1646, allocations: 16.31 kB / 0.4926 GB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/0.1647, allocations: 42.94 kB / 0.4927 GB, free: 10.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 3.977e-06/0.1647, allocations: 0 / 0.4927 GB, free: 10.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.01408/0.1788, allocations: 3.723 MB / 0.4963 GB, free: 6.742 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.1789, allocations: 140.5 kB / 0.4964 GB, free: 6.574 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007935/0.1798, allocations: 421.8 kB / 0.4968 GB, free: 6.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000214/0.18, allocations: 53.69 kB / 0.4969 GB, free: 6.094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003081/0.1803, allocations: 326.7 kB / 0.4972 GB, free: 5.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003778/0.1807, allocations: 256.5 kB / 0.4974 GB, free: 5.516 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.194e-05/0.1808, allocations: 20 kB / 0.4975 GB, free: 5.496 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002066/0.181, allocations: 358.7 kB / 0.4978 GB, free: 5.137 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.1825, allocations: 401.7 kB / 0.4982 GB, free: 4.746 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.1842, allocations: 0.553 MB / 0.4987 GB, free: 4.137 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001313/0.1855, allocations: 348.9 kB / 0.4991 GB, free: 3.797 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.1856, allocations: 4 kB / 0.4991 GB, free: 3.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004689/0.1903, allocations: 1.263 MB / 0.5003 GB, free: 2.516 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.443e-05/0.1904, allocations: 12.03 kB / 0.5003 GB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/0.1904, allocations: 4 kB / 0.5003 GB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002391/0.1928, allocations: 0.7528 MB / 0.501 GB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/0.194, allocations: 155.7 kB / 0.5012 GB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003757/0.1978, allocations: 2.698 MB / 0.5038 GB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/0.1997, allocations: 195.8 kB / 0.504 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.1998, allocations: 43.91 kB / 0.5041 GB, free: 14.55 MB / 362.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.0005493/0.2004, allocations: 219.8 kB / 0.5043 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002505/0.2007, allocations: 67.2 kB / 0.5043 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/0.2009, allocations: 79.92 kB / 0.5044 GB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.2009, allocations: 8 kB / 0.5044 GB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.201, allocations: 0 / 0.5044 GB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.201, allocations: 11.98 kB / 0.5044 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007001/0.208, allocations: 2.193 MB / 0.5066 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.2081, allocations: 4 kB / 0.5066 GB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.2092, allocations: 119.9 kB / 0.5067 GB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002239/0.2115, allocations: 0.7215 MB / 0.5074 GB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/0.2117, allocations: 27.97 kB / 0.5074 GB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003651/0.2153, allocations: 2.643 MB / 0.51 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.2154, allocations: 128 / 0.51 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005972/0.2214, allocations: 1.856 MB / 0.5118 GB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005935/0.222, allocations: 216.2 kB / 0.512 GB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/0.2223, allocations: 28 kB / 0.512 GB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/0.224, allocations: 175.8 kB / 0.5122 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006327/0.2246, allocations: 175.6 kB / 0.5124 GB, free: 5.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.2248, allocations: 27.97 kB / 0.5124 GB, free: 5.734 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005632/0.2253, allocations: 287.1 kB / 0.5127 GB, free: 5.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.2254, allocations: 0 / 0.5127 GB, free: 5.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001425/0.2268, allocations: 200 kB / 0.5129 GB, free: 5.258 MB / 362.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.0004782/0.2273, allocations: 163 kB / 0.513 GB, free: 5.086 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003787/0.2311, allocations: 0.9727 MB / 0.514 GB, free: 4.113 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.2312, allocations: 0 / 0.514 GB, free: 4.113 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002092/0.2333, allocations: 0.5139 MB / 0.5145 GB, free: 3.602 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.2345, allocations: 97.5 kB / 0.5146 GB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008969/0.2435, allocations: 2.604 MB / 0.5171 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3328/0.5763, allocations: 0.9224 MB / 0.518 GB, free: 44.37 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.5768, allocations: 49.56 kB / 0.5181 GB, free: 44.36 MB / 362.7 MB Notification: Performance of SimCode: time 1.893e-06/0.5768, allocations: 0 / 0.5181 GB, free: 44.36 MB / 362.7 MB Notification: Performance of Templates: time 0.03416/0.6109, allocations: 16.28 MB / 0.534 GB, free: 39.23 MB / 362.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