Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001492/0.001492, allocations: 198.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 226.6 MB / 243.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000886/0.000886, allocations: 93.53 kB / 295.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3212/0.3212, allocations: 44.81 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000352/0.0003522, allocations: 8 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3674, allocations: 62.96 MB / 0.5159 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.0034/0.3709, allocations: 3.53 MB / 0.5193 GB, free: 34.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.3728, allocations: 1.346 MB / 0.5206 GB, free: 33.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.3731, allocations: 8.688 kB / 0.5206 GB, free: 33.68 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002985/0.3734, allocations: 106.7 kB / 0.5207 GB, free: 33.63 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004019/0.3738, allocations: 232.3 kB / 0.521 GB, free: 33.49 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.3742, allocations: 240.7 kB / 0.5212 GB, free: 33.36 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006136/0.3749, allocations: 0.9347 MB / 0.5221 GB, free: 32.91 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002208/0.3751, allocations: 164.7 kB / 0.5223 GB, free: 32.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004036/0.3755, allocations: 421.3 kB / 0.5227 GB, free: 32.66 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003783/0.3759, allocations: 455.1 kB / 0.5231 GB, free: 32.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.198e-05/0.376, allocations: 42.84 kB / 0.5231 GB, free: 32.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.3762, allocations: 90.81 kB / 0.5232 GB, free: 32.47 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.3764, allocations: 188.3 kB / 0.5234 GB, free: 32.38 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002471/0.3766, allocations: 386.1 kB / 0.5238 GB, free: 32.14 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004758/0.3771, allocations: 0.7037 MB / 0.5245 GB, free: 31.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3771, allocations: 0 / 0.5245 GB, free: 31.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3771, allocations: 0 / 0.5245 GB, free: 31.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.3771, allocations: 0 / 0.5245 GB, free: 31.97 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001624/0.3788, allocations: 1.047 MB / 0.5255 GB, free: 31.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.3788, allocations: 10.41 kB / 0.5255 GB, free: 31.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004001/0.3792, allocations: 132.2 kB / 0.5256 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004653/0.3797, allocations: 458.4 kB / 0.5261 GB, free: 30.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.012e-05/0.3797, allocations: 53.72 kB / 0.5261 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.3798, allocations: 73.27 kB / 0.5262 GB, free: 30.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.381, allocations: 0.8181 MB / 0.527 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.3811, allocations: 2.531 kB / 0.527 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.344e-05/0.3811, allocations: 25.03 kB / 0.527 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.3812, allocations: 15.38 kB / 0.527 GB, free: 30.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.3825, allocations: 0.7421 MB / 0.5277 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003403/0.3859, allocations: 2.666 MB / 0.5303 GB, free: 28.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.3871, allocations: 0.6718 MB / 0.531 GB, free: 28.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005998/0.3877, allocations: 378.1 kB / 0.5314 GB, free: 28.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.608e-05/0.3878, allocations: 16.72 kB / 0.5314 GB, free: 28.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.3878, allocations: 43.69 kB / 0.5314 GB, free: 28.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=79): time 3.005e-06/0.3878, allocations: 0 / 0.5314 GB, free: 28.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.006441/0.3943, allocations: 3.696 MB / 0.535 GB, free: 25.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.3943, allocations: 143 kB / 0.5352 GB, free: 25.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004165/0.3947, allocations: 463.9 kB / 0.5356 GB, free: 25.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.295e-05/0.3948, allocations: 52.91 kB / 0.5357 GB, free: 25.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.3949, allocations: 278.8 kB / 0.5359 GB, free: 25.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.3951, allocations: 283.2 kB / 0.5362 GB, free: 24.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.106e-05/0.3951, allocations: 20.97 kB / 0.5362 GB, free: 24.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.469e-05/0.3952, allocations: 372.8 kB / 0.5366 GB, free: 24.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000648/0.3959, allocations: 364.9 kB / 0.5369 GB, free: 24.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007002/0.3966, allocations: 0.5227 MB / 0.5374 GB, free: 24.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.3977, allocations: 0.7018 MB / 0.5381 GB, free: 23.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.3977, allocations: 2.812 kB / 0.5381 GB, free: 23.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002293/0.4, allocations: 1.225 MB / 0.5393 GB, free: 23.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.4, allocations: 6.594 kB / 0.5393 GB, free: 23.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.4, allocations: 4.969 kB / 0.5393 GB, free: 23.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001136/0.4012, allocations: 0.5054 MB / 0.5398 GB, free: 23.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005304/0.4017, allocations: 155.5 kB / 0.54 GB, free: 22.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002744/0.4045, allocations: 3.659 MB / 0.5435 GB, free: 19.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009416/0.4054, allocations: 203 kB / 0.5437 GB, free: 19.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.285e-05/0.4055, allocations: 36.33 kB / 0.5438 GB, free: 19.65 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 (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,$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 (88): * Single equations (assignments): 84 * 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 8,1 10,1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003229/0.4059, allocations: 222.8 kB / 0.544 GB, free: 19.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.406, allocations: 64 kB / 0.544 GB, free: 19.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001625/0.4062, allocations: 97.06 kB / 0.5441 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-06/0.4062, allocations: 8.875 kB / 0.5441 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.4062, allocations: 5.922 kB / 0.5441 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.4062, allocations: 9.703 kB / 0.5442 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003826/0.4101, allocations: 2.15 MB / 0.5463 GB, free: 18.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.4101, allocations: 1.312 kB / 0.5463 GB, free: 18.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005527/0.4107, allocations: 120.1 kB / 0.5464 GB, free: 18.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.4117, allocations: 491.3 kB / 0.5468 GB, free: 17.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.819e-05/0.4118, allocations: 28.34 kB / 0.5469 GB, free: 17.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002592/0.4144, allocations: 3.527 MB / 0.5503 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4144, allocations: 1.344 kB / 0.5503 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003067/0.4175, allocations: 1.743 MB / 0.552 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003817/0.4179, allocations: 224.9 kB / 0.5522 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.418, allocations: 31.62 kB / 0.5523 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00087/0.4189, allocations: 178 kB / 0.5524 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005077/0.4194, allocations: 214 kB / 0.5526 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.047e-05/0.4195, allocations: 34.22 kB / 0.5527 GB, free: 13.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003843/0.4199, allocations: 315.9 kB / 0.553 GB, free: 13.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4199, allocations: 0 / 0.553 GB, free: 13.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009305/0.4208, allocations: 210.2 kB / 0.5532 GB, free: 13.46 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 (54): * Single equations (assignments): 50 * 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 10,1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009402/0.4218, allocations: 390.7 kB / 0.5535 GB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.4242, allocations: 1.049 MB / 0.5546 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4242, allocations: 4.125 kB / 0.5546 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.4255, allocations: 0.6231 MB / 0.5552 GB, free: 12.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.4266, allocations: 134.2 kB / 0.5553 GB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004601/0.4312, allocations: 2.653 MB / 0.5579 GB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.4317, allocations: 0.9216 MB / 0.5588 GB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.432, allocations: 57.42 kB / 0.5589 GB, free: 10.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.583e-06/0.432, allocations: 1.156 kB / 0.5589 GB, free: 10.2 MB / 378.7 MB Notification: Performance of Templates: time 0.01944/0.4514, allocations: 18.2 MB / 0.5766 GB, free: 9.93 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches