Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001239/0.001239, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001256/0.001256, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.264, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004546/0.2686, allocations: 3.246 MB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002119/0.2708, allocations: 1.236 MB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.271, allocations: 8 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003332/0.2713, allocations: 107.1 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004737/0.2718, allocations: 218.4 kB / 413.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005623/0.2724, allocations: 279.5 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008809/0.2733, allocations: 0.8427 MB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.2736, allocations: 137.1 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005732/0.2741, allocations: 378.8 kB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005161/0.2747, allocations: 410.6 kB / 415.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.2748, allocations: 60 kB / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000271/0.2751, allocations: 124 kB / 415.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000209/0.2753, allocations: 183.4 kB / 415.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003132/0.2756, allocations: 318.5 kB / 416.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009928/0.2766, allocations: 0.7929 MB / 417 MB, free: 9.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.2766, allocations: 7.922 kB / 417.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2766, allocations: 0 / 417.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.2767, allocations: 0 / 417.1 MB, free: 9.18 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001977/0.2786, allocations: 0.9617 MB / 418 MB, free: 8.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2787, allocations: 11.97 kB / 418 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.2788, allocations: 90.7 kB / 418.1 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003493/0.2792, allocations: 80.53 kB / 418.2 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006437/0.2798, allocations: 402.2 kB / 418.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.2799, allocations: 33.38 kB / 418.6 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.28, allocations: 52.33 kB / 418.7 MB, free: 7.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.2812, allocations: 0.6189 MB / 419.3 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.2812, allocations: 8 kB / 419.3 MB, free: 6.824 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.176e-05/0.2813, allocations: 16 kB / 419.3 MB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.2813, allocations: 11.98 kB / 419.3 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.2826, allocations: 0.5855 MB / 419.9 MB, free: 6.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.2852, allocations: 1.356 MB / 421.3 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.2864, allocations: 0.5051 MB / 421.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006407/0.287, allocations: 314.4 kB / 422.1 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.717e-05/0.2871, allocations: 8.562 kB / 422.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.2871, allocations: 39.12 kB / 422.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.214e-06/0.2871, allocations: 0 / 422.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.0068/0.2939, allocations: 2.921 MB / 425 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.294, allocations: 56.06 kB / 425.1 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004322/0.2944, allocations: 365.6 kB / 425.5 MB, free: 444 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.762e-05/0.2945, allocations: 45.7 kB / 425.5 MB, free: 392 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.2947, allocations: 205.6 kB / 425.7 MB, free: 180 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002553/0.2949, allocations: 262.1 kB / 426 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.2952, allocations: 130.6 kB / 426.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.2954, allocations: 362.7 kB / 426.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006432/0.296, allocations: 309.9 kB / 426.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006668/0.2967, allocations: 369.4 kB / 427.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.2977, allocations: 496.6 kB / 427.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.2977, allocations: 4 kB / 427.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001987/0.2997, allocations: 0.9468 MB / 428.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.2998, allocations: 10.22 kB / 428.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.2998, allocations: 7.938 kB / 428.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/0.3011, allocations: 0.5746 MB / 429.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.3015, allocations: 99.83 kB / 429.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.3031, allocations: 1.092 MB / 430.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006644/0.3037, allocations: 115.9 kB / 430.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.3038, allocations: 23.98 kB / 430.5 MB, free: 11.34 MB / 350.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 (61): * Single equations (assignments): 60 * 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,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0002827/0.3041, allocations: 187.9 kB / 430.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.3042, allocations: 55.67 kB / 430.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000163/0.3044, allocations: 81.08 kB / 430.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.3044, allocations: 8 kB / 430.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3044, allocations: 0 / 430.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.3044, allocations: 3.984 kB / 430.8 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.3074, allocations: 1.626 MB / 432.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3074, allocations: 96 / 432.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.3078, allocations: 91.88 kB / 432.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001164/0.309, allocations: 0.5317 MB / 433 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.022e-05/0.3091, allocations: 27.95 kB / 433.1 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001504/0.3106, allocations: 1.078 MB / 434.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3106, allocations: 3.984 kB / 434.1 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.3134, allocations: 1.32 MB / 435.5 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002867/0.3137, allocations: 204.6 kB / 435.7 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.3138, allocations: 24 kB / 435.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006293/0.3144, allocations: 99.86 kB / 435.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.3147, allocations: 140.3 kB / 435.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.703e-05/0.3148, allocations: 27.97 kB / 435.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003095/0.3151, allocations: 259.2 kB / 436.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3151, allocations: 0 / 436.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005287/0.3156, allocations: 156 kB / 436.4 MB, free: 5.305 MB / 350.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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004081/0.3197, allocations: 2.14 MB / 438.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001704/0.3214, allocations: 0.7738 MB / 439.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3215, allocations: 3.938 kB / 439.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008934/0.3224, allocations: 440.6 kB / 439.7 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007584/0.3231, allocations: 121.1 kB / 439.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0093/0.3324, allocations: 5.592 MB / 445.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.333, allocations: 0.8597 MB / 446.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.3332, allocations: 52.39 kB / 446.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002668/0.3334, allocations: 171.4 kB / 446.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3334, allocations: 0 / 446.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04646/0.3799, allocations: 18.51 MB / 465 MB, free: 8.852 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.22, allocations: 8 kB / 465 MB, free: 8.844 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches