Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001235/0.001235, allocations: 109 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001316, allocations: 214.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2086/0.2086, allocations: 46.09 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 71.88 kB / 482 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.339, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006085/0.3452, allocations: 4.116 MB / 0.5357 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.3483, allocations: 1.48 MB / 0.5371 GB, free: 9.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004177/0.3488, allocations: 14.25 kB / 0.5371 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005361/0.3493, allocations: 131.4 kB / 0.5372 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006465/0.35, allocations: 280.2 kB / 0.5375 GB, free: 8.801 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007654/0.3508, allocations: 356.7 kB / 0.5378 GB, free: 8.492 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.3519, allocations: 1.088 MB / 0.5389 GB, free: 7.844 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003561/0.3523, allocations: 191.9 kB / 0.5391 GB, free: 7.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007098/0.353, allocations: 491.8 kB / 0.5396 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006095/0.3536, allocations: 0.5069 MB / 0.5401 GB, free: 7.105 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.3538, allocations: 81.97 kB / 0.5401 GB, free: 7.105 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003452/0.3542, allocations: 138.2 kB / 0.5403 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000264/0.3544, allocations: 234.2 kB / 0.5405 GB, free: 6.895 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004039/0.3548, allocations: 431.2 kB / 0.5409 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001257/0.3561, allocations: 1.018 MB / 0.5419 GB, free: 5.836 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3561, allocations: 1.5 kB / 0.5419 GB, free: 5.836 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3561, allocations: 0 / 0.5419 GB, free: 5.836 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.729e-05/0.3562, allocations: 3.984 kB / 0.5419 GB, free: 5.832 MB / 398.1 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.002527/0.3587, allocations: 1.159 MB / 0.543 GB, free: 4.926 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.3587, allocations: 9.656 kB / 0.543 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005229/0.3593, allocations: 116.2 kB / 0.5431 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008178/0.3601, allocations: 492.9 kB / 0.5436 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.189e-05/0.3602, allocations: 48.22 kB / 0.5437 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.3603, allocations: 73.41 kB / 0.5437 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.3619, allocations: 0.8145 MB / 0.5445 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.3619, allocations: 7.234 kB / 0.5445 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.718e-05/0.362, allocations: 29.41 kB / 0.5446 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.26e-05/0.362, allocations: 16.38 kB / 0.5446 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.3637, allocations: 0.7375 MB / 0.5453 GB, free: 3.461 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004658/0.3683, allocations: 2.569 MB / 0.5478 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.3698, allocations: 0.671 MB / 0.5485 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008121/0.3706, allocations: 381.5 kB / 0.5488 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.632e-05/0.3707, allocations: 8 kB / 0.5488 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.3707, allocations: 54.48 kB / 0.5489 GB, free: 15.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.875e-06/0.3707, allocations: 0 / 0.5489 GB, free: 15.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.008317/0.3791, allocations: 3.531 MB / 0.5523 GB, free: 11.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.062e-05/0.3792, allocations: 136.5 kB / 0.5525 GB, free: 11.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006935/0.3799, allocations: 481.8 kB / 0.5529 GB, free: 11.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.346e-05/0.38, allocations: 53.7 kB / 0.553 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.3802, allocations: 276.6 kB / 0.5532 GB, free: 10.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002488/0.3805, allocations: 292.1 kB / 0.5535 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003125/0.3808, allocations: 170.5 kB / 0.5537 GB, free: 10.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.381, allocations: 374.8 kB / 0.554 GB, free: 10.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007826/0.3817, allocations: 365.8 kB / 0.5544 GB, free: 9.793 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009489/0.3827, allocations: 0.5137 MB / 0.5549 GB, free: 9.223 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001423/0.3841, allocations: 0.6969 MB / 0.5556 GB, free: 8.473 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.3842, allocations: 4 kB / 0.5556 GB, free: 8.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002829/0.387, allocations: 1.211 MB / 0.5568 GB, free: 7.238 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.387, allocations: 8 kB / 0.5568 GB, free: 7.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.3871, allocations: 4 kB / 0.5568 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/0.3884, allocations: 0.5775 MB / 0.5573 GB, free: 6.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005565/0.389, allocations: 155.7 kB / 0.5575 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004021/0.393, allocations: 3.85 MB / 0.5612 GB, free: 2.414 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.3941, allocations: 147.7 kB / 0.5614 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.3943, allocations: 39.98 kB / 0.5614 GB, free: 2.23 MB / 414.1 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.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004686/0.3947, allocations: 212.3 kB / 0.5616 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002797/0.395, allocations: 79.14 kB / 0.5617 GB, free: 1.934 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002149/0.3953, allocations: 88.91 kB / 0.5618 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.3953, allocations: 15.94 kB / 0.5618 GB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.3953, allocations: 4 kB / 0.5618 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.3953, allocations: 3.984 kB / 0.5618 GB, free: 1.824 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004288/0.3996, allocations: 2.154 MB / 0.5639 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.3996, allocations: 4 kB / 0.5639 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005667/0.4002, allocations: 115.9 kB / 0.564 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.4015, allocations: 0.5302 MB / 0.5645 GB, free: 14.94 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.116e-05/0.4016, allocations: 39.89 kB / 0.5646 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003593/0.4052, allocations: 3.651 MB / 0.5681 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4052, allocations: 0 / 0.5681 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.4089, allocations: 1.727 MB / 0.5698 GB, free: 9.281 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004419/0.4093, allocations: 224.1 kB / 0.57 GB, free: 9.043 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/0.4096, allocations: 35.98 kB / 0.5701 GB, free: 9.008 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.4106, allocations: 119.8 kB / 0.5702 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004439/0.411, allocations: 191.6 kB / 0.5704 GB, free: 8.703 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.873e-05/0.4111, allocations: 35.97 kB / 0.5704 GB, free: 8.668 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000427/0.4116, allocations: 326.9 kB / 0.5707 GB, free: 8.352 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4116, allocations: 4 kB / 0.5707 GB, free: 8.348 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001044/0.4126, allocations: 204 kB / 0.5709 GB, free: 8.148 MB / 430.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001025/0.4137, allocations: 413.8 kB / 0.5713 GB, free: 7.855 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002581/0.4163, allocations: 1.044 MB / 0.5723 GB, free: 6.801 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.4163, allocations: 0 / 0.5723 GB, free: 6.801 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001566/0.4179, allocations: 0.6274 MB / 0.5729 GB, free: 6.164 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.4193, allocations: 133.9 kB / 0.5731 GB, free: 6.031 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005238/0.4245, allocations: 2.167 MB / 0.5752 GB, free: 3.82 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006345/0.4252, allocations: 0.9341 MB / 0.5761 GB, free: 2.859 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.4255, allocations: 67.41 kB / 0.5762 GB, free: 2.793 MB / 430.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4255, allocations: 0 / 0.5762 GB, free: 2.793 MB / 430.1 MB Notification: Performance of Templates: time 0.0235/0.449, allocations: 18.63 MB / 0.5944 GB, free: 176 kB / 446.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches