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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001237, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 240.9 MB, free: 10.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 107.7 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008123/0.0008124, allocations: 43.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2345, allocations: 49.43 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004721/0.2393, allocations: 3.117 MB / 402.6 MB, free: 30.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.2415, allocations: 1.049 MB / 403.6 MB, free: 29.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002619/0.2418, allocations: 4 kB / 403.6 MB, free: 29.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002994/0.2421, allocations: 51.56 kB / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000364/0.2425, allocations: 135 kB / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007094/0.2432, allocations: 239.7 kB / 404.1 MB, free: 28.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007979/0.244, allocations: 0.7647 MB / 404.8 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/0.2443, allocations: 120.8 kB / 404.9 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004909/0.2448, allocations: 322.8 kB / 405.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004279/0.2453, allocations: 366.7 kB / 405.6 MB, free: 27.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.2454, allocations: 32 kB / 405.6 MB, free: 27.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.2456, allocations: 83.94 kB / 405.7 MB, free: 27.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001653/0.2458, allocations: 135.4 kB / 405.9 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002813/0.2461, allocations: 282.5 kB / 406.1 MB, free: 26.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006336/0.2467, allocations: 0.6712 MB / 406.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2468, allocations: 0 / 406.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2468, allocations: 0 / 406.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.363e-06/0.2468, allocations: 0 / 406.8 MB, free: 25.98 MB / 298.7 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.002119/0.2489, allocations: 0.8846 MB / 407.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.249, allocations: 8.031 kB / 407.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.2491, allocations: 60.22 kB / 407.8 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005274/0.2497, allocations: 367.6 kB / 408.1 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.2497, allocations: 33.38 kB / 408.1 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.2499, allocations: 44.38 kB / 408.2 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.2512, allocations: 0.6191 MB / 408.8 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.2512, allocations: 7.906 kB / 408.8 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/0.2513, allocations: 16 kB / 408.8 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.2513, allocations: 8 kB / 408.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.2527, allocations: 0.605 MB / 409.4 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.2554, allocations: 1.332 MB / 410.8 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.2566, allocations: 455 kB / 411.2 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007173/0.2573, allocations: 322.3 kB / 411.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.881e-05/0.2574, allocations: 4.562 kB / 411.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.2575, allocations: 39.12 kB / 411.6 MB, free: 21.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 3.016e-06/0.2575, allocations: 0 / 411.6 MB, free: 21.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.007585/0.2651, allocations: 2.871 MB / 414.5 MB, free: 18.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.2651, allocations: 55.97 kB / 414.5 MB, free: 17.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.2654, allocations: 329.7 kB / 414.8 MB, free: 17.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.754e-05/0.2654, allocations: 49.69 kB / 414.9 MB, free: 17.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.323e-05/0.2655, allocations: 201.2 kB / 415.1 MB, free: 17.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.2656, allocations: 217.1 kB / 415.3 MB, free: 17.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.2658, allocations: 130.6 kB / 415.4 MB, free: 17.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.521e-05/0.2659, allocations: 370.7 kB / 415.8 MB, free: 16.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005083/0.2664, allocations: 313.8 kB / 416.1 MB, free: 16.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005158/0.2669, allocations: 381 kB / 416.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007847/0.2677, allocations: 0.5109 MB / 417 MB, free: 15.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2677, allocations: 3.938 kB / 417 MB, free: 15.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001471/0.2692, allocations: 0.9232 MB / 417.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.2692, allocations: 8 kB / 417.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2693, allocations: 0 / 417.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009688/0.2702, allocations: 0.7346 MB / 418.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003494/0.2706, allocations: 95.89 kB / 418.7 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.2717, allocations: 1.091 MB / 419.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006147/0.2723, allocations: 107.9 kB / 419.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.988e-05/0.2723, allocations: 27.98 kB / 420 MB, free: 12.42 MB / 298.7 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.0002123/0.2726, allocations: 186.1 kB / 420.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.404e-05/0.2727, allocations: 51.38 kB / 420.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001463/0.2728, allocations: 68.75 kB / 420.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.2728, allocations: 12.09 kB / 420.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2728, allocations: 0 / 420.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.2728, allocations: 7.969 kB / 420.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00208/0.2749, allocations: 1.575 MB / 421.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2749, allocations: 0 / 421.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003726/0.2753, allocations: 87.88 kB / 421.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008743/0.2762, allocations: 0.7034 MB / 422.6 MB, free: 9.652 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.146e-05/0.2763, allocations: 27.95 kB / 422.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009916/0.2773, allocations: 1.056 MB / 423.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2773, allocations: 4 kB / 423.7 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01689/0.2942, allocations: 10.24 MB / 434 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002564/0.2945, allocations: 188.4 kB / 434.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.757e-05/0.2946, allocations: 23.98 kB / 434.2 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006098/0.2952, allocations: 103.8 kB / 434.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/0.2955, allocations: 124.3 kB / 434.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.355e-05/0.2956, allocations: 23.97 kB / 434.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002503/0.2958, allocations: 243.2 kB / 434.6 MB, free: 13.26 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2958, allocations: 0 / 434.6 MB, free: 13.26 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008791/0.2967, allocations: 252 kB / 434.9 MB, free: 13.02 MB / 314.7 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.000339/0.2971, allocations: 169.5 kB / 435.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.2988, allocations: 0.7722 MB / 435.8 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2988, allocations: 0 / 435.8 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008624/0.2996, allocations: 429.8 kB / 436.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000704/0.3004, allocations: 88.33 kB / 436.3 MB, free: 11.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.304, allocations: 2.157 MB / 438.5 MB, free: 9.355 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.3045, allocations: 0.8637 MB / 439.4 MB, free: 8.469 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002287/0.3048, allocations: 60.16 kB / 439.4 MB, free: 8.406 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.3049, allocations: 43.41 kB / 439.5 MB, free: 8.363 MB / 314.7 MB Notification: Performance of SimCode: time 7.71e-07/0.3049, allocations: 0 / 439.5 MB, free: 8.363 MB / 314.7 MB Notification: Performance of Templates: time 0.02397/0.3289, allocations: 16.78 MB / 456.2 MB, free: 7.648 MB / 330.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches