Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001541/0.001541, allocations: 104.8 kB / 17.72 MB, free: 5.242 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.001781/0.001781, allocations: 188.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 47.94 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1032, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004363/0.1076, allocations: 3.096 MB / 378.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.1096, allocations: 1.076 MB / 379.3 MB, free: 392 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.1098, allocations: 7.938 kB / 379.3 MB, free: 384 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.1101, allocations: 75.25 kB / 379.4 MB, free: 308 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.1104, allocations: 158.7 kB / 379.5 MB, free: 148 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2231/0.3335, allocations: 282 kB / 379.8 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.3351, allocations: 0.8009 MB / 380.6 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003942/0.3355, allocations: 135.8 kB / 380.8 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007898/0.3363, allocations: 360.6 kB / 381.1 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005666/0.3369, allocations: 384.9 kB / 381.5 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000158/0.3371, allocations: 59.94 kB / 381.5 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003333/0.3374, allocations: 106.3 kB / 381.6 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000211/0.3376, allocations: 157.6 kB / 381.8 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003884/0.338, allocations: 299.2 kB / 382.1 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.3391, allocations: 0.7202 MB / 382.8 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3391, allocations: 0 / 382.8 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3391, allocations: 0.5156 kB / 382.8 MB, free: 9.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.652e-05/0.3392, allocations: 1.531 kB / 382.8 MB, free: 9.445 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.0017/0.3409, allocations: 0.892 MB / 383.7 MB, free: 8.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3409, allocations: 9.094 kB / 383.7 MB, free: 8.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.3411, allocations: 61.59 kB / 383.8 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004692/0.3415, allocations: 365.7 kB / 384.1 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/0.3416, allocations: 32.11 kB / 384.2 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.3417, allocations: 50.47 kB / 384.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.3429, allocations: 0.6247 MB / 384.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.343, allocations: 2.375 kB / 384.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.55e-05/0.343, allocations: 20.06 kB / 384.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.343, allocations: 10.66 kB / 384.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.3443, allocations: 0.5998 MB / 385.5 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002335/0.3466, allocations: 1.314 MB / 386.8 MB, free: 7.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.3477, allocations: 461.9 kB / 387.2 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006122/0.3483, allocations: 307.6 kB / 387.5 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.028e-05/0.3484, allocations: 10.47 kB / 387.5 MB, free: 7.402 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.3484, allocations: 42.41 kB / 387.6 MB, free: 7.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 3.226e-06/0.3484, allocations: 5.906 kB / 387.6 MB, free: 7.355 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006497/0.3549, allocations: 2.866 MB / 390.5 MB, free: 5.891 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.355, allocations: 59.19 kB / 390.5 MB, free: 5.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/0.3554, allocations: 326.4 kB / 390.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.83e-05/0.3554, allocations: 55.25 kB / 390.9 MB, free: 5.609 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.3556, allocations: 194.1 kB / 391.1 MB, free: 5.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.3558, allocations: 226.7 kB / 391.3 MB, free: 5.277 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002713/0.3561, allocations: 129.9 kB / 391.4 MB, free: 5.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.3562, allocations: 354.6 kB / 391.8 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000661/0.3569, allocations: 318.7 kB / 392.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006368/0.3575, allocations: 388.2 kB / 392.5 MB, free: 4.617 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009769/0.3585, allocations: 0.5041 MB / 393 MB, free: 4.414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3585, allocations: 1.094 kB / 393 MB, free: 4.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001847/0.3604, allocations: 0.9366 MB / 393.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.3604, allocations: 6.562 kB / 393.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3604, allocations: 0 / 393.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.3618, allocations: 0.7267 MB / 394.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004674/0.3623, allocations: 100.3 kB / 394.7 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.3636, allocations: 1.086 MB / 395.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007411/0.3643, allocations: 110.7 kB / 395.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-05/0.3644, allocations: 23.66 kB / 396 MB, free: 3.125 MB / 318.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.0003428/0.3648, allocations: 191.4 kB / 396.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.3649, allocations: 46.19 kB / 396.2 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001727/0.3651, allocations: 70.58 kB / 396.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.3651, allocations: 6.562 kB / 396.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/0.3651, allocations: 5.062 kB / 396.3 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.3651, allocations: 3.844 kB / 396.3 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003622/0.3688, allocations: 1.571 MB / 397.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.3688, allocations: 0.6562 kB / 397.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/0.3692, allocations: 89.45 kB / 397.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.3704, allocations: 0.7058 MB / 398.6 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-05/0.3705, allocations: 27.66 kB / 398.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.3718, allocations: 1.068 MB / 399.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3718, allocations: 1.125 kB / 399.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.3743, allocations: 1.299 MB / 401 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002848/0.3746, allocations: 187 kB / 401.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.3747, allocations: 24.41 kB / 401.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006604/0.3754, allocations: 105.9 kB / 401.3 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003263/0.3757, allocations: 122.5 kB / 401.5 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.03e-05/0.3758, allocations: 32.12 kB / 401.5 MB, free: 476 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002807/0.3761, allocations: 232.5 kB / 401.7 MB, free: 352 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3761, allocations: 0 / 401.7 MB, free: 352 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007308/0.3768, allocations: 162.7 kB / 401.9 MB, free: 328 kB / 318.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.0002476/0.3771, allocations: 151.1 kB / 402 MB, free: 208 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001763/0.3788, allocations: 0.7733 MB / 402.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.3788, allocations: 1.094 kB / 402.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008777/0.3797, allocations: 434.3 kB / 403.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006864/0.3804, allocations: 88.81 kB / 403.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.3833, allocations: 1.394 MB / 404.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000434/0.3837, allocations: 0.8418 MB / 405.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002261/0.3839, allocations: 53.69 kB / 405.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.3841, allocations: 45.64 kB / 405.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3841, allocations: 4 kB / 405.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of Templates: time 0.02154/0.4056, allocations: 13.64 MB / 419.3 MB, free: 2.07 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches