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.001158/0.001158, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2232/0.2232, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 71.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3934, allocations: 62.44 MB / 0.531 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005968/0.3995, allocations: 4.118 MB / 0.535 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.4028, allocations: 1.479 MB / 0.5364 GB, free: 9.105 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004593/0.4033, allocations: 14.34 kB / 0.5365 GB, free: 9.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004692/0.4038, allocations: 135.5 kB / 0.5366 GB, free: 8.988 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007318/0.4045, allocations: 279.9 kB / 0.5368 GB, free: 8.766 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008198/0.4054, allocations: 348.3 kB / 0.5372 GB, free: 8.465 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001267/0.4067, allocations: 1.093 MB / 0.5382 GB, free: 7.812 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003624/0.407, allocations: 191.2 kB / 0.5384 GB, free: 7.699 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007256/0.4078, allocations: 480.1 kB / 0.5389 GB, free: 7.422 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000824/0.4086, allocations: 0.5024 MB / 0.5394 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001784/0.4088, allocations: 83 kB / 0.5395 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004577/0.4093, allocations: 146.2 kB / 0.5396 GB, free: 7.059 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002945/0.4096, allocations: 229.7 kB / 0.5398 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004331/0.41, allocations: 428.5 kB / 0.5402 GB, free: 6.566 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.4113, allocations: 1.035 MB / 0.5412 GB, free: 5.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.4114, allocations: 0 / 0.5412 GB, free: 5.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4114, allocations: 0 / 0.5412 GB, free: 5.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.4114, allocations: 1.219 kB / 0.5412 GB, free: 5.797 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.002754/0.4141, allocations: 1.174 MB / 0.5424 GB, free: 4.875 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.292e-05/0.4142, allocations: 9.031 kB / 0.5424 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007529/0.415, allocations: 128.2 kB / 0.5425 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.4161, allocations: 488.8 kB / 0.543 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.814e-05/0.4162, allocations: 49.12 kB / 0.543 GB, free: 4.355 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.4164, allocations: 73.64 kB / 0.5431 GB, free: 4.324 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/0.4182, allocations: 0.8176 MB / 0.5439 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.082e-05/0.4182, allocations: 4.375 kB / 0.5439 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.972e-05/0.4183, allocations: 33.41 kB / 0.5439 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.109e-05/0.4184, allocations: 15.41 kB / 0.5439 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.42, allocations: 0.7381 MB / 0.5447 GB, free: 3.398 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004163/0.4242, allocations: 2.577 MB / 0.5472 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/0.4256, allocations: 0.6664 MB / 0.5478 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007369/0.4263, allocations: 381.5 kB / 0.5482 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.01e-05/0.4264, allocations: 15.89 kB / 0.5482 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.4264, allocations: 46.5 kB / 0.5483 GB, free: 15.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.254e-06/0.4265, allocations: 0 / 0.5483 GB, free: 15.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.007991/0.4345, allocations: 3.562 MB / 0.5517 GB, free: 11.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.024e-05/0.4346, allocations: 136.5 kB / 0.5519 GB, free: 11.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005935/0.4352, allocations: 481.9 kB / 0.5523 GB, free: 11.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.244e-05/0.4353, allocations: 57.69 kB / 0.5524 GB, free: 11.15 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.4355, allocations: 285.1 kB / 0.5527 GB, free: 10.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002304/0.4357, allocations: 305.6 kB / 0.5529 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/0.436, allocations: 174.5 kB / 0.5531 GB, free: 10.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.4363, allocations: 370.8 kB / 0.5535 GB, free: 10.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007747/0.437, allocations: 361.8 kB / 0.5538 GB, free: 9.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008741/0.4379, allocations: 0.5176 MB / 0.5543 GB, free: 9.086 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.4392, allocations: 0.693 MB / 0.555 GB, free: 8.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.4393, allocations: 0 / 0.555 GB, free: 8.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002608/0.4419, allocations: 1.212 MB / 0.5562 GB, free: 7.109 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.4419, allocations: 8 kB / 0.5562 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4419, allocations: 4 kB / 0.5562 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.4432, allocations: 0.5811 MB / 0.5568 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/0.4437, allocations: 147.7 kB / 0.5569 GB, free: 6.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003703/0.4474, allocations: 3.848 MB / 0.5607 GB, free: 2.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.4486, allocations: 147.8 kB / 0.5608 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-05/0.4486, allocations: 39.98 kB / 0.5608 GB, free: 2.109 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.0004409/0.4491, allocations: 220.2 kB / 0.561 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.4493, allocations: 75.53 kB / 0.5611 GB, free: 1.809 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001953/0.4495, allocations: 92.83 kB / 0.5612 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.4495, allocations: 15.94 kB / 0.5612 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4495, allocations: 64 / 0.5612 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.4495, allocations: 7.984 kB / 0.5612 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003847/0.4534, allocations: 2.158 MB / 0.5633 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.4534, allocations: 7.938 kB / 0.5633 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005581/0.454, allocations: 111.9 kB / 0.5634 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001145/0.4551, allocations: 0.5382 MB / 0.564 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.919e-05/0.4552, allocations: 39.89 kB / 0.564 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003284/0.4585, allocations: 3.639 MB / 0.5676 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.4586, allocations: 0 / 0.5676 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003337/0.4619, allocations: 1.75 MB / 0.5693 GB, free: 9.129 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000392/0.4623, allocations: 228.5 kB / 0.5695 GB, free: 8.887 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.4625, allocations: 32 kB / 0.5695 GB, free: 8.855 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009447/0.4634, allocations: 119.8 kB / 0.5696 GB, free: 8.738 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004611/0.4639, allocations: 191.7 kB / 0.5698 GB, free: 8.551 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.072e-05/0.464, allocations: 35.95 kB / 0.5699 GB, free: 8.516 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004642/0.4644, allocations: 322.9 kB / 0.5702 GB, free: 8.203 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4645, allocations: 0 / 0.5702 GB, free: 8.203 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009244/0.4654, allocations: 215.9 kB / 0.5704 GB, free: 7.992 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.001194/0.4666, allocations: 395.3 kB / 0.5707 GB, free: 7.715 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002441/0.469, allocations: 1.051 MB / 0.5718 GB, free: 6.652 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4691, allocations: 0.8125 kB / 0.5718 GB, free: 6.652 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.4705, allocations: 0.6319 MB / 0.5724 GB, free: 6.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.4717, allocations: 144.3 kB / 0.5725 GB, free: 5.871 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004878/0.4765, allocations: 2.152 MB / 0.5746 GB, free: 3.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005654/0.4771, allocations: 0.9303 MB / 0.5755 GB, free: 2.723 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003309/0.4775, allocations: 77.02 kB / 0.5756 GB, free: 2.645 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.4777, allocations: 59.41 kB / 0.5757 GB, free: 2.586 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4777, allocations: 0 / 0.5757 GB, free: 2.586 MB / 430.1 MB Notification: Performance of Templates: time 0.02604/0.5037, allocations: 16.19 MB / 0.5915 GB, free: 2.465 MB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches