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.001036/0.001036, allocations: 200.9 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007022/0.0007022, allocations: 91.12 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1769/0.1769, allocations: 44.85 MB / 392 MB, free: 9.309 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002404/0.0002405, allocations: 11.98 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08403/0.08429, allocations: 62.95 MB / 0.5153 GB, free: 2.762 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.1717/0.256, allocations: 3.514 MB / 0.5187 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002232/0.2583, allocations: 1.35 MB / 0.5201 GB, free: 9.656 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002265/0.2586, allocations: 12.69 kB / 0.5201 GB, free: 9.652 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000313/0.2589, allocations: 96.17 kB / 0.5202 GB, free: 9.613 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004216/0.2593, allocations: 243.7 kB / 0.5204 GB, free: 9.527 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.2597, allocations: 239.5 kB / 0.5206 GB, free: 9.52 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009102/0.2606, allocations: 0.9361 MB / 0.5215 GB, free: 9.258 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000259/0.2609, allocations: 154.7 kB / 0.5217 GB, free: 9.184 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005506/0.2615, allocations: 416.7 kB / 0.5221 GB, free: 9.043 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005212/0.262, allocations: 456.4 kB / 0.5225 GB, free: 8.883 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001098/0.2621, allocations: 41.44 kB / 0.5226 GB, free: 8.883 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002453/0.2624, allocations: 88.58 kB / 0.5227 GB, free: 8.875 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.2626, allocations: 184.3 kB / 0.5228 GB, free: 8.789 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.2627, allocations: 152.9 kB / 0.523 GB, free: 8.695 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007501/0.2635, allocations: 0.7027 MB / 0.5237 GB, free: 8.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2635, allocations: 0.75 kB / 0.5237 GB, free: 8.555 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2635, allocations: 0 / 0.5237 GB, free: 8.555 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.2635, allocations: 1 kB / 0.5237 GB, free: 8.555 MB / 346.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.0019/0.2654, allocations: 1.056 MB / 0.5247 GB, free: 7.883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.2654, allocations: 9.719 kB / 0.5247 GB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000444/0.2659, allocations: 132.9 kB / 0.5248 GB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/0.2664, allocations: 450.3 kB / 0.5253 GB, free: 7.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.763e-05/0.2665, allocations: 48.31 kB / 0.5253 GB, free: 7.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.2666, allocations: 62.78 kB / 0.5254 GB, free: 7.461 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.268, allocations: 0.8195 MB / 0.5262 GB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/0.2681, allocations: 11.5 kB / 0.5262 GB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-05/0.2681, allocations: 30.81 kB / 0.5262 GB, free: 7.066 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/0.2682, allocations: 15.56 kB / 0.5262 GB, free: 7.066 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001526/0.2697, allocations: 0.7388 MB / 0.5269 GB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003866/0.2736, allocations: 2.656 MB / 0.5295 GB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.2749, allocations: 0.6673 MB / 0.5302 GB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000655/0.2756, allocations: 378.2 kB / 0.5305 GB, free: 4.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.346e-05/0.2756, allocations: 15.58 kB / 0.5306 GB, free: 4.703 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.2756, allocations: 43.03 kB / 0.5306 GB, free: 4.656 MB / 346.7 MB Notification: Performance of pre-optimization done (n=79): time 2.445e-06/0.2757, allocations: 0 / 0.5306 GB, free: 4.656 MB / 346.7 MB Notification: Performance of matching and sorting (n=83): time 0.007085/0.2827, allocations: 3.705 MB / 0.5342 GB, free: 2.453 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.2828, allocations: 137.9 kB / 0.5344 GB, free: 2.297 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004872/0.2833, allocations: 466.4 kB / 0.5348 GB, free: 2.078 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.012e-05/0.2834, allocations: 52.12 kB / 0.5348 GB, free: 2.031 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.2835, allocations: 278.4 kB / 0.5351 GB, free: 1.805 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/0.2837, allocations: 290 kB / 0.5354 GB, free: 1.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.942e-05/0.2838, allocations: 21.23 kB / 0.5354 GB, free: 1.574 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.074e-05/0.2839, allocations: 372.2 kB / 0.5358 GB, free: 1.234 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007492/0.2846, allocations: 366.5 kB / 0.5361 GB, free: 1.105 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007955/0.2854, allocations: 0.5246 MB / 0.5366 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006189/0.286, allocations: 309.9 kB / 0.5369 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.2861, allocations: 0 / 0.5369 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002398/0.2885, allocations: 1.2 MB / 0.5381 GB, free: 172 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.2885, allocations: 7.438 kB / 0.5381 GB, free: 172 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.2885, allocations: 9.016 kB / 0.5381 GB, free: 168 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/0.2897, allocations: 0.5113 MB / 0.5386 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005334/0.2902, allocations: 150.2 kB / 0.5388 GB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003507/0.2937, allocations: 3.672 MB / 0.5423 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.2947, allocations: 199.7 kB / 0.5425 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.572e-05/0.2948, allocations: 40.31 kB / 0.5426 GB, free: 12.63 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 (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.0003885/0.2952, allocations: 224.7 kB / 0.5428 GB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.2954, allocations: 64.03 kB / 0.5428 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001523/0.2956, allocations: 93.56 kB / 0.5429 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.2956, allocations: 9.844 kB / 0.5429 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.2956, allocations: 1.922 kB / 0.5429 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.2956, allocations: 4.5 kB / 0.5429 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003735/0.2993, allocations: 2.167 MB / 0.5451 GB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.2994, allocations: 1 kB / 0.5451 GB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005508/0.2999, allocations: 120.7 kB / 0.5452 GB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00103/0.301, allocations: 484.5 kB / 0.5456 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.498e-05/0.3011, allocations: 32.02 kB / 0.5457 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003/0.3041, allocations: 3.522 MB / 0.5491 GB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3041, allocations: 6.016 kB / 0.5491 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.3072, allocations: 1.737 MB / 0.5508 GB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003486/0.3076, allocations: 227.8 kB / 0.551 GB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.3077, allocations: 30.75 kB / 0.5511 GB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008838/0.3086, allocations: 180.7 kB / 0.5512 GB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000366/0.3089, allocations: 210 kB / 0.5514 GB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-05/0.309, allocations: 39.98 kB / 0.5515 GB, free: 5.789 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000372/0.3094, allocations: 319.1 kB / 0.5518 GB, free: 5.602 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3094, allocations: 0 / 0.5518 GB, free: 5.602 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008809/0.3103, allocations: 201.8 kB / 0.552 GB, free: 5.578 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 (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.0007781/0.3111, allocations: 393.8 kB / 0.5523 GB, free: 5.371 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0021/0.3132, allocations: 1.051 MB / 0.5534 GB, free: 4.832 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3132, allocations: 4.062 kB / 0.5534 GB, free: 4.828 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.3144, allocations: 0.6251 MB / 0.554 GB, free: 4.473 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009571/0.3154, allocations: 134.5 kB / 0.5541 GB, free: 4.391 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004638/0.32, allocations: 2.655 MB / 0.5567 GB, free: 1.801 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.3205, allocations: 0.9185 MB / 0.5576 GB, free: 0.8555 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.3207, allocations: 59.39 kB / 0.5577 GB, free: 0.7969 MB / 362.7 MB Notification: Performance of SimCode: time 6.51e-07/0.3207, allocations: 4 kB / 0.5577 GB, free: 0.793 MB / 362.7 MB Notification: Performance of Templates: time 0.01991/0.3407, allocations: 18.19 MB / 0.5754 GB, free: 14.61 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