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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_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.001296/0.001296, allocations: 105.5 kB / 17.06 MB, free: 6.098 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.001306/0.001306, allocations: 194.9 kB / 18 MB, free: 5.172 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.311/1.311, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009684/0.0009684, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2363, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004172/0.2405, allocations: 3.095 MB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.2423, allocations: 1.036 MB / 404.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.2426, allocations: 4 kB / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002869/0.2429, allocations: 79.23 kB / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003049/0.2432, allocations: 166.6 kB / 404.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006463/0.2439, allocations: 275.5 kB / 404.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006519/0.2445, allocations: 0.7998 MB / 405.7 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002197/0.2448, allocations: 133.2 kB / 405.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003737/0.2452, allocations: 351 kB / 406.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004058/0.2456, allocations: 390.6 kB / 406.5 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.841e-05/0.2457, allocations: 60 kB / 406.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.2459, allocations: 107.9 kB / 406.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.2461, allocations: 155.5 kB / 406.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000338/0.2464, allocations: 310.5 kB / 407.1 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007683/0.2472, allocations: 0.7228 MB / 407.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2472, allocations: 0 / 407.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.317e-06/0.2472, allocations: 4 kB / 407.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.2472, allocations: 0 / 407.9 MB, free: 1.137 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.001754/0.249, allocations: 0.9034 MB / 408.8 MB, free: 188 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.249, allocations: 8.031 kB / 408.8 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.2492, allocations: 78.72 kB / 408.9 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.2493, allocations: 64.56 kB / 408.9 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005637/0.2499, allocations: 368 kB / 409.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.2499, allocations: 29.38 kB / 409.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.25, allocations: 48.33 kB / 409.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.2511, allocations: 0.6228 MB / 410 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.2511, allocations: 4 kB / 410 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.492e-05/0.2512, allocations: 16 kB / 410 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2512, allocations: 8 kB / 410 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.2524, allocations: 0.6051 MB / 410.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/0.2547, allocations: 1.325 MB / 411.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.2557, allocations: 458.7 kB / 412.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005776/0.2563, allocations: 310.4 kB / 412.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.2564, allocations: 4.562 kB / 412.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.2564, allocations: 43.06 kB / 412.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.174e-06/0.2564, allocations: 0 / 412.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.006524/0.2629, allocations: 2.876 MB / 415.6 MB, free: 9.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.263, allocations: 59.97 kB / 415.7 MB, free: 8.992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003508/0.2634, allocations: 329.7 kB / 416 MB, free: 8.664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.879e-05/0.2635, allocations: 49.69 kB / 416 MB, free: 8.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002084/0.2637, allocations: 201.5 kB / 416.2 MB, free: 8.406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.2639, allocations: 226.2 kB / 416.5 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.2641, allocations: 134.6 kB / 416.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.2643, allocations: 366.7 kB / 417 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006459/0.265, allocations: 317.8 kB / 417.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006379/0.2656, allocations: 389 kB / 417.6 MB, free: 6.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009777/0.2666, allocations: 0.507 MB / 418.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2666, allocations: 0 / 418.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001767/0.2684, allocations: 0.9196 MB / 419.1 MB, free: 5.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.2684, allocations: 12.03 kB / 419.1 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2684, allocations: 0 / 419.1 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001229/0.2697, allocations: 0.7362 MB / 419.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004123/0.2701, allocations: 99.89 kB / 419.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001398/0.2715, allocations: 1.089 MB / 421 MB, free: 3.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007289/0.2723, allocations: 107.9 kB / 421.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.193e-05/0.2723, allocations: 27.98 kB / 421.1 MB, free: 3.438 MB / 334.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.0002679/0.2726, allocations: 176 kB / 421.3 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.2727, allocations: 55.67 kB / 421.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.2729, allocations: 72.69 kB / 421.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2729, allocations: 8 kB / 421.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.2729, allocations: 0 / 421.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2729, allocations: 3.984 kB / 421.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002791/0.2757, allocations: 1.568 MB / 423 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.2757, allocations: 0 / 423 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004179/0.2762, allocations: 91.88 kB / 423.1 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.2772, allocations: 0.7112 MB / 423.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.924e-05/0.2773, allocations: 27.95 kB / 423.8 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001368/0.2787, allocations: 1.06 MB / 424.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2787, allocations: 0 / 424.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/0.2812, allocations: 1.309 MB / 426.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003072/0.2815, allocations: 192.7 kB / 426.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.2816, allocations: 23.94 kB / 426.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006951/0.2823, allocations: 99.86 kB / 426.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/0.2826, allocations: 132.3 kB / 426.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.2827, allocations: 31.97 kB / 426.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002406/0.283, allocations: 231.2 kB / 426.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.283, allocations: 0 / 426.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005525/0.2835, allocations: 163.9 kB / 427.1 MB, free: 13.36 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003135/0.2867, allocations: 1.901 MB / 429 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.2885, allocations: 0.7803 MB / 429.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.2886, allocations: 0 / 429.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000864/0.2894, allocations: 425.8 kB / 430.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008298/0.2903, allocations: 97.52 kB / 430.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009309/0.2996, allocations: 5.513 MB / 435.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004003/0.3, allocations: 0.8516 MB / 436.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002166/0.3003, allocations: 56.09 kB / 436.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002335/0.3005, allocations: 155.3 kB / 436.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3005, allocations: 8 kB / 436.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04143/0.342, allocations: 17.93 MB / 454.8 MB, free: 1.715 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.39, allocations: 11.83 kB / 454.8 MB, free: 1.703 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.csv","/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