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.001469/0.001469, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001733/0.001733, allocations: 194.9 kB / 18.67 MB, free: 4.406 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.377/1.377, 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.001318/0.001319, allocations: 48.41 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08332/0.08465, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004653/0.08935, allocations: 3.1 MB / 377.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.09152, allocations: 1.076 MB / 378.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003591/0.0919, allocations: 11.94 kB / 378.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000322/0.09231, allocations: 75.25 kB / 378.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004452/0.09276, allocations: 162.7 kB / 379.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008011/0.09358, allocations: 279.5 kB / 379.3 MB, free: 372 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1737/0.2673, allocations: 0.7952 MB / 380.1 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003935/0.2677, allocations: 138.2 kB / 380.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008012/0.2685, allocations: 362.5 kB / 380.6 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005784/0.2691, allocations: 383.8 kB / 381 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.2693, allocations: 59.78 kB / 381 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002795/0.2696, allocations: 114.2 kB / 381.2 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.2698, allocations: 157 kB / 381.3 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003754/0.2701, allocations: 296.9 kB / 381.6 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.2712, allocations: 0.7205 MB / 382.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2712, allocations: 0.5156 kB / 382.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2712, allocations: 0.5 kB / 382.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.122e-05/0.2712, allocations: 0 / 382.3 MB, free: 8.977 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.001826/0.2731, allocations: 0.9102 MB / 383.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.2731, allocations: 9.891 kB / 383.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.2732, allocations: 82.28 kB / 383.3 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.2734, allocations: 62.61 kB / 383.4 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.2739, allocations: 364.6 kB / 383.7 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.498e-05/0.274, allocations: 32.5 kB / 383.8 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.2741, allocations: 49.36 kB / 383.8 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.2753, allocations: 0.6228 MB / 384.4 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.954e-05/0.2753, allocations: 3.25 kB / 384.4 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.958e-05/0.2754, allocations: 17.59 kB / 384.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.2754, allocations: 11.06 kB / 384.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.2766, allocations: 0.6032 MB / 385.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.2791, allocations: 1.31 MB / 386.4 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000987/0.2801, allocations: 469 kB / 386.8 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005687/0.2807, allocations: 308.8 kB / 387.1 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.23e-05/0.2808, allocations: 5.75 kB / 387.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/0.2808, allocations: 49.98 kB / 387.2 MB, free: 7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.244e-06/0.2808, allocations: 0 / 387.2 MB, free: 7 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006277/0.2871, allocations: 2.871 MB / 390.1 MB, free: 5.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.2871, allocations: 58.41 kB / 390.1 MB, free: 5.465 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003442/0.2875, allocations: 329.6 kB / 390.5 MB, free: 5.297 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.062e-05/0.2876, allocations: 51.58 kB / 390.5 MB, free: 5.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.2877, allocations: 202.1 kB / 390.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.2879, allocations: 234.7 kB / 390.9 MB, free: 4.906 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/0.2881, allocations: 134.4 kB / 391.1 MB, free: 4.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.2882, allocations: 355 kB / 391.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.2888, allocations: 320.6 kB / 391.7 MB, free: 4.398 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006213/0.2894, allocations: 384.7 kB / 392.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009266/0.2903, allocations: 0.5028 MB / 392.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2903, allocations: 0 / 392.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001718/0.2921, allocations: 0.9301 MB / 393.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.2921, allocations: 7.062 kB / 393.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.2921, allocations: 2.656 kB / 393.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.2933, allocations: 0.7324 MB / 394.3 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/0.2938, allocations: 99.09 kB / 394.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.2951, allocations: 1.086 MB / 395.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007893/0.2959, allocations: 110.7 kB / 395.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.268e-05/0.296, allocations: 22.64 kB / 395.6 MB, free: 2.746 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.0003155/0.2963, allocations: 192.1 kB / 395.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.2964, allocations: 51.66 kB / 395.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.2966, allocations: 69.86 kB / 395.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.2966, allocations: 7.062 kB / 395.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.2966, allocations: 0 / 395.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.2966, allocations: 8.828 kB / 395.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.2994, allocations: 1.577 MB / 397.5 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.2995, allocations: 2.812 kB / 397.5 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004315/0.2999, allocations: 93.73 kB / 397.6 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001183/0.3011, allocations: 0.7008 MB / 398.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.881e-05/0.3012, allocations: 26.59 kB / 398.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.3026, allocations: 1.073 MB / 399.4 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3026, allocations: 96 / 399.4 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.3049, allocations: 1.312 MB / 400.7 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003259/0.3053, allocations: 190.8 kB / 400.9 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.3054, allocations: 20.97 kB / 400.9 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006577/0.3061, allocations: 106.6 kB / 401 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000286/0.3064, allocations: 122.2 kB / 401.1 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.913e-05/0.3064, allocations: 26.88 kB / 401.1 MB, free: 68 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002895/0.3067, allocations: 236.1 kB / 401.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3067, allocations: 0 / 401.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006283/0.3074, allocations: 159.2 kB / 401.5 MB, free: 15.92 MB / 334.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.003229/0.3106, allocations: 1.896 MB / 403.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001913/0.3126, allocations: 0.7684 MB / 404.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3126, allocations: 0 / 404.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009234/0.3135, allocations: 433.7 kB / 404.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008267/0.3144, allocations: 103.8 kB / 404.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009511/0.3239, allocations: 5.516 MB / 410.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.3244, allocations: 0.844 MB / 411.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002655/0.3246, allocations: 52.16 kB / 411.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000237/0.3249, allocations: 151.4 kB / 411.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3249, allocations: 0 / 411.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04238/0.3673, allocations: 17.93 MB / 429.2 MB, free: 7.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.32, allocations: 7.641 kB / 429.2 MB, free: 7.742 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