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.00123/0.00123, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 206 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 227.4 MB / 247.6 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1911/0.1911, allocations: 46.11 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 76.16 kB / 482 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2794, allocations: 62.44 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005056/0.2845, allocations: 4.115 MB / 0.5357 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002796/0.2873, allocations: 1.48 MB / 0.5371 GB, free: 9.145 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005735/0.2879, allocations: 13.56 kB / 0.5371 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004375/0.2884, allocations: 135.8 kB / 0.5373 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007626/0.2891, allocations: 289.3 kB / 0.5375 GB, free: 8.797 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007522/0.2899, allocations: 348.8 kB / 0.5379 GB, free: 8.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.2911, allocations: 1.089 MB / 0.5389 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003143/0.2915, allocations: 184.4 kB / 0.5391 GB, free: 7.742 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006924/0.2922, allocations: 491.2 kB / 0.5396 GB, free: 7.457 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005832/0.2927, allocations: 0.5113 MB / 0.5401 GB, free: 7.113 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.2929, allocations: 81.75 kB / 0.5401 GB, free: 7.113 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003248/0.2932, allocations: 141.6 kB / 0.5403 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002414/0.2935, allocations: 230.5 kB / 0.5405 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003865/0.2939, allocations: 427.4 kB / 0.5409 GB, free: 6.598 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001125/0.295, allocations: 1.03 MB / 0.5419 GB, free: 5.836 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.295, allocations: 0 / 0.5419 GB, free: 5.836 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.295, allocations: 0 / 0.5419 GB, free: 5.836 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.295, allocations: 0.5938 kB / 0.5419 GB, free: 5.836 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.002232/0.2973, allocations: 1.16 MB / 0.543 GB, free: 4.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.2973, allocations: 9.375 kB / 0.5431 GB, free: 4.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004938/0.2978, allocations: 119.6 kB / 0.5432 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007234/0.2986, allocations: 481.7 kB / 0.5436 GB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.891e-05/0.2986, allocations: 48.5 kB / 0.5437 GB, free: 4.426 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.2988, allocations: 73.2 kB / 0.5437 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.3002, allocations: 0.8217 MB / 0.5445 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.3003, allocations: 7.062 kB / 0.5446 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.022e-05/0.3003, allocations: 29.8 kB / 0.5446 GB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.3004, allocations: 15.28 kB / 0.5446 GB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.3019, allocations: 0.7345 MB / 0.5453 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003885/0.3058, allocations: 2.567 MB / 0.5478 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.3071, allocations: 0.6733 MB / 0.5485 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006866/0.3078, allocations: 371.2 kB / 0.5488 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.393e-05/0.3079, allocations: 23.86 kB / 0.5489 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/0.308, allocations: 46.56 kB / 0.5489 GB, free: 15.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.846e-06/0.308, allocations: 0 / 0.5489 GB, free: 15.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.007139/0.3151, allocations: 3.536 MB / 0.5524 GB, free: 11.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.3152, allocations: 136.5 kB / 0.5525 GB, free: 11.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000497/0.3157, allocations: 481.8 kB / 0.5529 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.735e-05/0.3158, allocations: 49.7 kB / 0.553 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.316, allocations: 280.6 kB / 0.5533 GB, free: 10.97 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.3162, allocations: 292 kB / 0.5535 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002601/0.3165, allocations: 170.5 kB / 0.5537 GB, free: 10.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.3166, allocations: 374.8 kB / 0.5541 GB, free: 10.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007226/0.3173, allocations: 357.8 kB / 0.5544 GB, free: 9.781 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007964/0.3181, allocations: 0.5215 MB / 0.5549 GB, free: 9.203 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.3193, allocations: 0.6965 MB / 0.5556 GB, free: 8.449 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3194, allocations: 0 / 0.5556 GB, free: 8.449 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002622/0.322, allocations: 1.21 MB / 0.5568 GB, free: 7.223 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.322, allocations: 8 kB / 0.5568 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.322, allocations: 4.094 kB / 0.5568 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/0.3232, allocations: 0.5814 MB / 0.5573 GB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005056/0.3238, allocations: 151.7 kB / 0.5575 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003531/0.3273, allocations: 3.842 MB / 0.5612 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000884/0.3282, allocations: 147.7 kB / 0.5614 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.614e-05/0.3283, allocations: 32 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.0003766/0.3287, allocations: 224.2 kB / 0.5616 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002118/0.3289, allocations: 67.16 kB / 0.5617 GB, free: 1.934 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001595/0.3291, allocations: 96.83 kB / 0.5618 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.3291, allocations: 11.94 kB / 0.5618 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.3291, allocations: 0 / 0.5618 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.619e-06/0.3291, allocations: 8.078 kB / 0.5618 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003797/0.3329, allocations: 2.165 MB / 0.5639 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.3329, allocations: 64 / 0.5639 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005368/0.3335, allocations: 123.9 kB / 0.564 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/0.3346, allocations: 0.5422 MB / 0.5646 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.21e-05/0.3347, allocations: 35.91 kB / 0.5646 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003126/0.3378, allocations: 3.638 MB / 0.5682 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3378, allocations: 0 / 0.5682 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/0.3409, allocations: 1.734 MB / 0.5698 GB, free: 9.258 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004071/0.3413, allocations: 228.1 kB / 0.5701 GB, free: 9.016 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/0.3415, allocations: 28 kB / 0.5701 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008571/0.3424, allocations: 123.8 kB / 0.5702 GB, free: 8.867 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004146/0.3428, allocations: 187.7 kB / 0.5704 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.478e-05/0.3429, allocations: 31.97 kB / 0.5704 GB, free: 8.652 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003681/0.3433, allocations: 330.9 kB / 0.5707 GB, free: 8.332 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3433, allocations: 4 kB / 0.5707 GB, free: 8.328 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008875/0.3442, allocations: 208 kB / 0.5709 GB, free: 8.125 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.0008866/0.3451, allocations: 395.9 kB / 0.5713 GB, free: 7.844 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002138/0.3472, allocations: 1.044 MB / 0.5723 GB, free: 6.789 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3472, allocations: 0 / 0.5723 GB, free: 6.789 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001212/0.3485, allocations: 0.6242 MB / 0.5729 GB, free: 6.152 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.3495, allocations: 139.5 kB / 0.5731 GB, free: 6.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00442/0.3539, allocations: 2.17 MB / 0.5752 GB, free: 3.809 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/0.3545, allocations: 0.9341 MB / 0.5761 GB, free: 2.848 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002212/0.3547, allocations: 63.41 kB / 0.5762 GB, free: 2.785 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3547, allocations: 4 kB / 0.5762 GB, free: 2.781 MB / 430.1 MB Notification: Performance of Templates: time 0.02107/0.3758, allocations: 18.63 MB / 0.5944 GB, free: 160 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