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.0008811/0.0008811, allocations: 173.7 kB / 16.72 MB, free: 5.086 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.238/1.238, allocations: 205.4 MB / 222.9 MB, free: 8.945 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.0006872/0.0006872, allocations: 90.34 kB / 271.2 MB, free: 8.234 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.3154/0.3154, allocations: 43.55 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003747/0.0003747, allocations: 16 kB / 432 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1198, allocations: 58.85 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.003836/0.1237, allocations: 3.367 MB / 494.2 MB, free: 7.504 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00257/0.1263, allocations: 1.252 MB / 495.4 MB, free: 6.246 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.1266, allocations: 12 kB / 495.4 MB, free: 6.234 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002425/0.1268, allocations: 83.33 kB / 495.5 MB, free: 6.152 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003462/0.1272, allocations: 174.6 kB / 495.7 MB, free: 5.98 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005846/0.1278, allocations: 259.6 kB / 495.9 MB, free: 5.727 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008234/0.1286, allocations: 0.9092 MB / 496.9 MB, free: 4.809 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.1289, allocations: 153.9 kB / 497 MB, free: 4.656 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004351/0.1293, allocations: 382.6 kB / 497.4 MB, free: 4.281 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004938/0.1298, allocations: 438.4 kB / 497.8 MB, free: 3.852 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.158e-05/0.1299, allocations: 40 kB / 497.8 MB, free: 3.812 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002227/0.1302, allocations: 79.97 kB / 497.9 MB, free: 3.734 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001769/0.1303, allocations: 159.4 kB / 498.1 MB, free: 3.578 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003697/0.1307, allocations: 372 kB / 498.4 MB, free: 3.207 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006/0.1313, allocations: 0.647 MB / 499.1 MB, free: 2.559 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1313, allocations: 0 / 499.1 MB, free: 2.559 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1314, allocations: 0 / 499.1 MB, free: 2.559 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.1314, allocations: 0 / 499.1 MB, free: 2.559 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.001855/0.1332, allocations: 0.9938 MB / 0.4884 GB, free: 1.512 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1333, allocations: 8.031 kB / 0.4884 GB, free: 1.504 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.1334, allocations: 84 kB / 0.4885 GB, free: 1.422 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00055/0.134, allocations: 437.5 kB / 0.4889 GB, free: 0.957 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.401e-05/0.134, allocations: 49.69 kB / 0.4889 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.1342, allocations: 64.12 kB / 0.489 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1804/0.3145, allocations: 0.8263 MB / 0.4898 GB, free: 42.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.08e-05/0.3147, allocations: 8.406 kB / 0.4898 GB, free: 42.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001654/0.3148, allocations: 24.38 kB / 0.4898 GB, free: 42.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.121e-05/0.3149, allocations: 17.25 kB / 0.4898 GB, free: 42.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.3165, allocations: 0.7931 MB / 0.4906 GB, free: 42.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004707/0.3212, allocations: 2.644 MB / 0.4932 GB, free: 41.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.3228, allocations: 0.6429 MB / 0.4938 GB, free: 41.65 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008568/0.3237, allocations: 391.5 kB / 0.4942 GB, free: 41.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.361e-05/0.3238, allocations: 13.47 kB / 0.4942 GB, free: 41.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.3238, allocations: 42.52 kB / 0.4942 GB, free: 41.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 3.246e-06/0.3238, allocations: 0 / 0.4942 GB, free: 41.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=76): time 0.008386/0.3322, allocations: 3.735 MB / 0.4979 GB, free: 39.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.3323, allocations: 141.8 kB / 0.498 GB, free: 39.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.3329, allocations: 422.2 kB / 0.4984 GB, free: 39.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.896e-05/0.333, allocations: 51.88 kB / 0.4985 GB, free: 39.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.3332, allocations: 291.6 kB / 0.4988 GB, free: 39.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.3334, allocations: 268.1 kB / 0.499 GB, free: 39.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.756e-05/0.3335, allocations: 21.31 kB / 0.499 GB, free: 39.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.3336, allocations: 363.4 kB / 0.4994 GB, free: 39.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008259/0.3344, allocations: 404.7 kB / 0.4998 GB, free: 38.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008029/0.3352, allocations: 0.5498 MB / 0.5003 GB, free: 38.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.3363, allocations: 0.761 MB / 0.501 GB, free: 38.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3364, allocations: 6.906 kB / 0.5011 GB, free: 38.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002188/0.3386, allocations: 1.261 MB / 0.5023 GB, free: 37.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3386, allocations: 8.844 kB / 0.5023 GB, free: 37.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3386, allocations: 10.97 kB / 0.5023 GB, free: 37.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/0.3398, allocations: 0.7627 MB / 0.503 GB, free: 37.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004905/0.3403, allocations: 156.4 kB / 0.5032 GB, free: 37.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.3421, allocations: 2.695 MB / 0.5058 GB, free: 35.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008692/0.343, allocations: 194.6 kB / 0.506 GB, free: 35.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.47e-05/0.3431, allocations: 40.89 kB / 0.5061 GB, free: 35.18 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.0003099/0.3434, allocations: 218.4 kB / 0.5063 GB, free: 35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.3435, allocations: 61.09 kB / 0.5063 GB, free: 34.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001643/0.3437, allocations: 88.11 kB / 0.5064 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3437, allocations: 9.688 kB / 0.5064 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.3437, allocations: 6.922 kB / 0.5064 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.3438, allocations: 4.469 kB / 0.5064 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003375/0.3471, allocations: 2.197 MB / 0.5086 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.3472, allocations: 0 / 0.5086 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.3477, allocations: 123.7 kB / 0.5087 GB, free: 33.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.3488, allocations: 0.7196 MB / 0.5094 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.122e-05/0.3488, allocations: 29.02 kB / 0.5094 GB, free: 33.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/0.3505, allocations: 2.645 MB / 0.512 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.3505, allocations: 7 kB / 0.512 GB, free: 31.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002659/0.3532, allocations: 1.815 MB / 0.5138 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000287/0.3535, allocations: 212.6 kB / 0.514 GB, free: 30.22 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.3536, allocations: 26.34 kB / 0.514 GB, free: 30.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000754/0.3544, allocations: 176.8 kB / 0.5142 GB, free: 30.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002873/0.3547, allocations: 174.6 kB / 0.5143 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-05/0.3548, allocations: 38.33 kB / 0.5144 GB, free: 30.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002378/0.355, allocations: 289.7 kB / 0.5147 GB, free: 30.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.355, allocations: 0 / 0.5147 GB, free: 30.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007263/0.3557, allocations: 202.4 kB / 0.5148 GB, free: 29.98 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.000219/0.356, allocations: 158.7 kB / 0.515 GB, free: 29.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001787/0.3578, allocations: 0.9694 MB / 0.5159 GB, free: 29.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3578, allocations: 0 / 0.5159 GB, free: 29.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009943/0.3588, allocations: 0.5146 MB / 0.5164 GB, free: 29.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009169/0.3597, allocations: 101.6 kB / 0.5165 GB, free: 29.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00414/0.3638, allocations: 2.618 MB / 0.5191 GB, free: 27.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.3642, allocations: 0.9088 MB / 0.52 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.3643, allocations: 50.56 kB / 0.52 GB, free: 27.13 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3643, allocations: 0 / 0.52 GB, free: 27.13 MB / 378.7 MB Notification: Performance of Templates: time 0.01779/0.3821, allocations: 17.06 MB / 0.5367 GB, free: 22.88 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