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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001883/0.001884, allocations: 187 kB / 18.66 MB, free: 4.395 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.361/1.361, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001492/0.001493, allocations: 51.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08482/0.08632, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004509/0.09088, allocations: 3.092 MB / 377.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.09301, allocations: 1.084 MB / 378.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003406/0.09338, allocations: 7.938 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003427/0.09377, allocations: 75.23 kB / 378.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004722/0.09426, allocations: 158.7 kB / 379.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007881/0.09505, allocations: 275.5 kB / 379.3 MB, free: 372 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1869/0.282, allocations: 0.7967 MB / 380.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.2824, allocations: 133.8 kB / 380.2 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007432/0.2832, allocations: 354.6 kB / 380.6 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005026/0.2837, allocations: 386.3 kB / 381 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.2838, allocations: 59.47 kB / 381 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002559/0.2841, allocations: 109.8 kB / 381.1 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.2843, allocations: 155.1 kB / 381.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.2846, allocations: 300.1 kB / 381.6 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.2858, allocations: 0.7193 MB / 382.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2858, allocations: 1.281 kB / 382.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2858, allocations: 3.5 kB / 382.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.031e-05/0.2859, allocations: 0.5 kB / 382.3 MB, free: 8.984 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.002023/0.2879, allocations: 0.896 MB / 383.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.2879, allocations: 9.5 kB / 383.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.2881, allocations: 78.27 kB / 383.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.2882, allocations: 61.48 kB / 383.3 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006201/0.2888, allocations: 364.3 kB / 383.7 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.2889, allocations: 36.27 kB / 383.7 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.289, allocations: 46.84 kB / 383.8 MB, free: 8.129 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.2903, allocations: 0.6255 MB / 384.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/0.2904, allocations: 3.438 kB / 384.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.2904, allocations: 15 kB / 384.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.2904, allocations: 11.03 kB / 384.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.2917, allocations: 0.6005 MB / 385 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.2942, allocations: 1.308 MB / 386.3 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009747/0.2952, allocations: 469.1 kB / 386.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000575/0.2958, allocations: 310.3 kB / 387.1 MB, free: 7.082 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/0.2959, allocations: 13.81 kB / 387.1 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.2959, allocations: 42.28 kB / 387.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 3.176e-06/0.2959, allocations: 0 / 387.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006452/0.3024, allocations: 2.868 MB / 390 MB, free: 5.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.3025, allocations: 60.03 kB / 390.1 MB, free: 5.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003613/0.3028, allocations: 329 kB / 390.4 MB, free: 5.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.974e-05/0.3029, allocations: 56.92 kB / 390.5 MB, free: 5.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.303, allocations: 188.7 kB / 390.7 MB, free: 5.125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000152/0.3032, allocations: 228 kB / 390.9 MB, free: 4.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.3034, allocations: 129.4 kB / 391 MB, free: 4.895 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.504e-05/0.3035, allocations: 358.9 kB / 391.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006172/0.3041, allocations: 321.8 kB / 391.7 MB, free: 4.449 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006474/0.3048, allocations: 384.4 kB / 392 MB, free: 4.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009567/0.3057, allocations: 0.5007 MB / 392.5 MB, free: 4.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3058, allocations: 0 / 392.5 MB, free: 4.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001897/0.3077, allocations: 0.9307 MB / 393.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.3077, allocations: 6.266 kB / 393.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3077, allocations: 1.062 kB / 393.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001476/0.3092, allocations: 0.7242 MB / 394.2 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.3097, allocations: 102.1 kB / 394.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.311, allocations: 1.091 MB / 395.4 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008247/0.3119, allocations: 113.5 kB / 395.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.828e-05/0.312, allocations: 22.8 kB / 395.5 MB, free: 2.797 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.0003293/0.3123, allocations: 189.1 kB / 395.7 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.3124, allocations: 43.77 kB / 395.8 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001616/0.3126, allocations: 69.84 kB / 395.8 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.3126, allocations: 14.89 kB / 395.8 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/0.3126, allocations: 0.875 kB / 395.8 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3127, allocations: 4.875 kB / 395.8 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/0.3156, allocations: 1.575 MB / 397.4 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.3156, allocations: 0 / 397.4 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004495/0.3161, allocations: 90.06 kB / 397.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/0.3174, allocations: 0.7026 MB / 398.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.3175, allocations: 30.91 kB / 398.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.3188, allocations: 1.068 MB / 399.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3188, allocations: 1.562 kB / 399.3 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/0.3212, allocations: 1.3 MB / 400.6 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.3216, allocations: 188 kB / 400.8 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.3217, allocations: 25 kB / 400.8 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006525/0.3224, allocations: 105.8 kB / 400.9 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000293/0.3227, allocations: 124.3 kB / 401 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.072e-05/0.3227, allocations: 27.16 kB / 401.1 MB, free: 140 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002559/0.323, allocations: 230.2 kB / 401.3 MB, free: 16 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.323, allocations: 1 kB / 401.3 MB, free: 16 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007031/0.3237, allocations: 159.3 kB / 401.4 MB, free: 0 / 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.00315/0.3269, allocations: 1.901 MB / 403.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.3288, allocations: 0.7726 MB / 404.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3288, allocations: 0 / 404.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009401/0.3298, allocations: 430.2 kB / 404.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008158/0.3306, allocations: 100.4 kB / 404.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009772/0.3404, allocations: 5.501 MB / 410.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/0.3409, allocations: 0.8401 MB / 411 MB, free: 9.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002631/0.3411, allocations: 52.16 kB / 411 MB, free: 9.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.3414, allocations: 151.4 kB / 411.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3414, allocations: 0 / 411.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04418/0.3856, allocations: 17.93 MB / 429.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.34, allocations: 7.641 kB / 429.1 MB, free: 7.812 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/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