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.001461/0.001461, allocations: 103.6 kB / 17.59 MB, free: 5.43 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.001496/0.001496, allocations: 187.3 kB / 18.51 MB, free: 4.508 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.383/1.383, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 47.06 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09681/0.09797, allocations: 49.45 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004831/0.1028, allocations: 3.08 MB / 353.8 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002291/0.1052, allocations: 1.04 MB / 354.9 MB, free: 288 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004222/0.1056, allocations: 15.94 kB / 354.9 MB, free: 272 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003834/0.1061, allocations: 79.3 kB / 354.9 MB, free: 192 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005853/0.1067, allocations: 150.6 kB / 355.1 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009462/0.1077, allocations: 283.5 kB / 355.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.1088, allocations: 0.792 MB / 356.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002903/0.1091, allocations: 129.2 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000588/0.1097, allocations: 347 kB / 356.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005512/0.1103, allocations: 386.6 kB / 357 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001775/0.1105, allocations: 60 kB / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002979/0.1108, allocations: 108 kB / 357.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.111, allocations: 155.5 kB / 357.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003963/0.1114, allocations: 298.5 kB / 357.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008516/0.1123, allocations: 0.7167 MB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1123, allocations: 0 / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1123, allocations: 0 / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.591e-05/0.1123, allocations: 0 / 358.3 MB, free: 12.79 MB / 302.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.002026/0.1144, allocations: 0.8924 MB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1144, allocations: 8.031 kB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.1146, allocations: 60.19 kB / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005148/0.1151, allocations: 363.8 kB / 359.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.958e-05/0.1151, allocations: 29.38 kB / 359.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.1153, allocations: 48.28 kB / 359.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.1165, allocations: 0.6191 MB / 360.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.596e-05/0.1165, allocations: 11.94 kB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.47e-05/0.1166, allocations: 20 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1166, allocations: 8 kB / 360.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.1179, allocations: 0.6012 MB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.1203, allocations: 1.328 MB / 362.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009848/0.1213, allocations: 458.5 kB / 362.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005674/0.1219, allocations: 310.4 kB / 363.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.771e-05/0.122, allocations: 4.562 kB / 363.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.122, allocations: 43.12 kB / 363.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.365e-06/0.1221, allocations: 0 / 363.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.006567/0.1286, allocations: 2.875 MB / 366 MB, free: 4.809 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.1287, allocations: 55.97 kB / 366 MB, free: 4.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004168/0.1291, allocations: 329.7 kB / 366.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.625e-05/0.1292, allocations: 49.7 kB / 366.4 MB, free: 4.355 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.1293, allocations: 197.2 kB / 366.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002048/0.1296, allocations: 224.9 kB / 366.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002499/0.1298, allocations: 130.5 kB / 366.9 MB, free: 3.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.13, allocations: 358.7 kB / 367.3 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006362/0.1306, allocations: 321.8 kB / 367.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006503/0.1313, allocations: 385 kB / 368 MB, free: 2.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009741/0.1323, allocations: 0.5108 MB / 368.5 MB, free: 2.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1323, allocations: 0 / 368.5 MB, free: 2.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001755/0.134, allocations: 0.9194 MB / 369.4 MB, free: 1.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.1341, allocations: 8 kB / 369.4 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1341, allocations: 3.938 kB / 369.4 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001258/0.1354, allocations: 0.7268 MB / 370.2 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.1358, allocations: 103.8 kB / 370.3 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1938/0.3296, allocations: 1.082 MB / 371.3 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008883/0.3305, allocations: 107.3 kB / 371.4 MB, free: 25.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.916e-05/0.3306, allocations: 29.39 kB / 371.5 MB, free: 25.38 MB / 302.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.0003463/0.331, allocations: 182.5 kB / 371.6 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.3311, allocations: 51.75 kB / 371.7 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001619/0.3313, allocations: 72.62 kB / 371.8 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.3313, allocations: 7.594 kB / 371.8 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.3313, allocations: 0 / 371.8 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.3313, allocations: 3.188 kB / 371.8 MB, free: 25.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.3344, allocations: 1.568 MB / 373.3 MB, free: 24.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.3344, allocations: 1.375 kB / 373.4 MB, free: 24.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004375/0.3348, allocations: 85.86 kB / 373.4 MB, free: 24.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001308/0.3361, allocations: 0.711 MB / 374.1 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.329e-05/0.3362, allocations: 25.38 kB / 374.2 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.3374, allocations: 1.062 MB / 375.2 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3374, allocations: 5.344 kB / 375.2 MB, free: 24.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002513/0.34, allocations: 1.312 MB / 376.5 MB, free: 23.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/0.3403, allocations: 188.2 kB / 376.7 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.3404, allocations: 20.03 kB / 376.8 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006539/0.3411, allocations: 102.3 kB / 376.9 MB, free: 23.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002831/0.3414, allocations: 133.1 kB / 377 MB, free: 23.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.145e-05/0.3414, allocations: 30.28 kB / 377 MB, free: 23.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000272/0.3417, allocations: 231.5 kB / 377.2 MB, free: 23.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3417, allocations: 0 / 377.2 MB, free: 23.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005755/0.3423, allocations: 159.3 kB / 377.4 MB, free: 23.19 MB / 302.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.0002461/0.3426, allocations: 152.9 kB / 377.5 MB, free: 23.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.3443, allocations: 0.7964 MB / 378.3 MB, free: 22.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.3443, allocations: 0 / 378.3 MB, free: 22.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008337/0.3452, allocations: 433.2 kB / 378.8 MB, free: 22.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006424/0.3458, allocations: 101.5 kB / 378.9 MB, free: 22.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.3482, allocations: 1.428 MB / 380.3 MB, free: 21.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.3485, allocations: 0.8452 MB / 381.1 MB, free: 21.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.3487, allocations: 49.7 kB / 381.2 MB, free: 21.09 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3487, allocations: 0 / 381.2 MB, free: 21.09 MB / 302.1 MB Notification: Performance of Templates: time 0.01159/0.3603, allocations: 8.58 MB / 389.8 MB, free: 17.72 MB / 302.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