Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 106.1 kB / 17.74 MB, free: 5.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 188.2 kB / 18.67 MB, free: 4.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3076, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004191/0.3119, allocations: 3.098 MB / 404.5 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.3139, allocations: 1.036 MB / 405.5 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002217/0.3141, allocations: 7.938 kB / 405.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.3144, allocations: 79.23 kB / 405.6 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000281/0.3147, allocations: 154.7 kB / 405.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006421/0.3154, allocations: 283.5 kB / 406.1 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007408/0.3161, allocations: 0.7959 MB / 406.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002729/0.3164, allocations: 133.1 kB / 407 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004471/0.3168, allocations: 354.9 kB / 407.3 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000465/0.3173, allocations: 382.6 kB / 407.7 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.677e-05/0.3174, allocations: 60 kB / 407.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.3177, allocations: 115.9 kB / 407.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.3178, allocations: 155.5 kB / 408 MB, free: 2.215 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002758/0.3181, allocations: 306.5 kB / 408.3 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007602/0.3189, allocations: 0.7253 MB / 409 MB, free: 1.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3189, allocations: 0 / 409 MB, free: 1.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3189, allocations: 0 / 409 MB, free: 1.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.3189, allocations: 0 / 409 MB, free: 1.191 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001738/0.3207, allocations: 0.8806 MB / 409.9 MB, free: 268 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.3207, allocations: 16.02 kB / 409.9 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.3209, allocations: 56.28 kB / 410 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005705/0.3214, allocations: 375.6 kB / 410.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.3215, allocations: 29.38 kB / 410.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.3216, allocations: 48.38 kB / 410.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.3227, allocations: 0.6152 MB / 411.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.3227, allocations: 7.906 kB / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-05/0.3228, allocations: 20 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.3228, allocations: 8 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.324, allocations: 0.605 MB / 411.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.3262, allocations: 1.313 MB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009804/0.3272, allocations: 462.6 kB / 413.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005628/0.3278, allocations: 310.4 kB / 413.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.3279, allocations: 8.547 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.3279, allocations: 39.12 kB / 413.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.485e-06/0.3279, allocations: 0 / 413.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.006419/0.3343, allocations: 2.867 MB / 416.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.885e-05/0.3344, allocations: 59.97 kB / 416.7 MB, free: 9.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000387/0.3348, allocations: 329.7 kB / 417.1 MB, free: 8.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.005e-05/0.3349, allocations: 45.7 kB / 417.1 MB, free: 8.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.3351, allocations: 201.2 kB / 417.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.3353, allocations: 221 kB / 417.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.3355, allocations: 134.5 kB / 417.6 MB, free: 8.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3357, allocations: 358.7 kB / 418 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005937/0.3363, allocations: 317.8 kB / 418.3 MB, free: 7.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006495/0.3369, allocations: 381 kB / 418.7 MB, free: 7.176 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009502/0.3379, allocations: 0.5147 MB / 419.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3379, allocations: 0 / 419.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001728/0.3396, allocations: 0.9271 MB / 420.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.3397, allocations: 8 kB / 420.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3397, allocations: 8.016 kB / 420.1 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.341, allocations: 0.7281 MB / 420.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003887/0.3414, allocations: 107.8 kB / 421 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.3428, allocations: 1.085 MB / 422.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007229/0.3435, allocations: 107.9 kB / 422.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-05/0.3436, allocations: 27.94 kB / 422.2 MB, free: 3.621 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0003079/0.3439, allocations: 179.9 kB / 422.4 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001277/0.344, allocations: 51.44 kB / 422.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001688/0.3442, allocations: 72.75 kB / 422.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3442, allocations: 4 kB / 422.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.3442, allocations: 0 / 422.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.3443, allocations: 3.984 kB / 422.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00271/0.347, allocations: 1.572 MB / 424.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.347, allocations: 0 / 424.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004163/0.3474, allocations: 83.89 kB / 424.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001145/0.3486, allocations: 0.7151 MB / 424.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.469e-05/0.3486, allocations: 19.97 kB / 424.9 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.35, allocations: 1.056 MB / 425.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.35, allocations: 4.031 kB / 425.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.3524, allocations: 1.32 MB / 427.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002721/0.3527, allocations: 192.4 kB / 427.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.3528, allocations: 23.98 kB / 427.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006271/0.3534, allocations: 99.81 kB / 427.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002606/0.3537, allocations: 132.3 kB / 427.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.208e-05/0.3538, allocations: 27.97 kB / 427.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002315/0.354, allocations: 231.2 kB / 428 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.354, allocations: 0 / 428 MB, free: 13.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005163/0.3545, allocations: 160 kB / 428.1 MB, free: 13.56 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002635/0.3548, allocations: 154.4 kB / 428.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.3564, allocations: 0.7839 MB / 429 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3564, allocations: 0 / 429 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008094/0.3572, allocations: 421.8 kB / 429.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006734/0.3579, allocations: 89.86 kB / 429.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.3606, allocations: 1.425 MB / 431 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.3611, allocations: 0.8401 MB / 431.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.3613, allocations: 51.41 kB / 431.9 MB, free: 9.746 MB / 350.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3613, allocations: 4 kB / 431.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of Templates: time 0.01207/0.3734, allocations: 8.614 MB / 440.5 MB, free: 1.141 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches