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.001662/0.001662, allocations: 104 kB / 17.58 MB, free: 5.438 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.001779/0.001779, allocations: 187.9 kB / 18.51 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.679/2.679, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002396/0.002396, allocations: 55.92 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1523, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.007601/0.16, allocations: 3.088 MB / 330.5 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003255/0.1634, allocations: 1.076 MB / 331.5 MB, free: 184 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003254/0.1637, allocations: 11.94 kB / 331.6 MB, free: 172 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000397/0.1642, allocations: 79.23 kB / 331.6 MB, free: 92 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005024/0.1647, allocations: 154.7 kB / 331.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009974/0.1657, allocations: 283.4 kB / 332.1 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001185/0.1669, allocations: 0.7921 MB / 332.9 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000381/0.1673, allocations: 140.7 kB / 333 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000701/0.168, allocations: 346.9 kB / 333.3 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006664/0.1687, allocations: 386.7 kB / 333.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.1689, allocations: 60 kB / 333.8 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003173/0.1692, allocations: 104 kB / 333.9 MB, free: 13.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002485/0.1695, allocations: 159.5 kB / 334 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004396/0.17, allocations: 298.5 kB / 334.3 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.1711, allocations: 0.7167 MB / 335 MB, free: 12.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.1711, allocations: 4 kB / 335 MB, free: 12.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1711, allocations: 0 / 335 MB, free: 12.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.1711, allocations: 0 / 335 MB, free: 12.68 MB / 286.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.002783/0.1739, allocations: 0.8846 MB / 335.9 MB, free: 11.74 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.174, allocations: 8.031 kB / 335.9 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001767/0.1742, allocations: 82.7 kB / 336 MB, free: 11.64 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/0.1744, allocations: 56.28 kB / 336.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007207/0.1752, allocations: 375.6 kB / 336.4 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.466e-05/0.1752, allocations: 29.38 kB / 336.5 MB, free: 11.15 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.1754, allocations: 44.38 kB / 336.5 MB, free: 11.11 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/0.1772, allocations: 0.6189 MB / 337.1 MB, free: 10.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.667e-05/0.1773, allocations: 7.906 kB / 337.1 MB, free: 10.47 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.594e-05/0.1774, allocations: 12 kB / 337.1 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.1774, allocations: 12 kB / 337.2 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002052/0.1795, allocations: 0.605 MB / 337.8 MB, free: 9.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003787/0.1833, allocations: 1.317 MB / 339.1 MB, free: 8.465 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.185, allocations: 461.3 kB / 339.5 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009817/0.186, allocations: 322.3 kB / 339.8 MB, free: 7.688 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.945e-05/0.1861, allocations: 4.562 kB / 339.8 MB, free: 7.684 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.1861, allocations: 39.12 kB / 339.9 MB, free: 7.637 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 3.888e-06/0.1861, allocations: 0 / 339.9 MB, free: 7.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.01078/0.1969, allocations: 2.871 MB / 342.8 MB, free: 4.625 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/0.197, allocations: 59.97 kB / 342.8 MB, free: 4.555 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000622/0.1977, allocations: 333.6 kB / 343.1 MB, free: 4.219 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001231/0.1978, allocations: 45.7 kB / 343.2 MB, free: 4.168 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002123/0.1981, allocations: 205.1 kB / 343.4 MB, free: 3.965 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002983/0.1984, allocations: 213.1 kB / 343.6 MB, free: 3.754 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003889/0.1988, allocations: 138.6 kB / 343.7 MB, free: 3.613 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.199, allocations: 354.7 kB / 344.1 MB, free: 3.258 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.2001, allocations: 321.8 kB / 344.4 MB, free: 2.941 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.2012, allocations: 381 kB / 344.8 MB, free: 2.562 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.2029, allocations: 0.5031 MB / 345.3 MB, free: 2.047 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.203, allocations: 7.938 kB / 345.3 MB, free: 2.039 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003164/0.2061, allocations: 0.9232 MB / 346.2 MB, free: 1.105 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.2062, allocations: 4 kB / 346.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.2062, allocations: 8.031 kB / 346.2 MB, free: 1.094 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002213/0.2085, allocations: 0.7346 MB / 346.9 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006749/0.2092, allocations: 95.89 kB / 347 MB, free: 268 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002431/0.2116, allocations: 1.087 MB / 348.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.2129, allocations: 107.9 kB / 348.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.213, allocations: 23.98 kB / 348.2 MB, free: 15.02 MB / 302.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.0005323/0.2136, allocations: 180 kB / 348.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002446/0.2138, allocations: 59.36 kB / 348.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002342/0.2141, allocations: 68.75 kB / 348.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/0.2141, allocations: 11.94 kB / 348.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.301e-05/0.2141, allocations: 0 / 348.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.2142, allocations: 3.984 kB / 348.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004704/0.2189, allocations: 1.567 MB / 350.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.2189, allocations: 0 / 350.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007442/0.2197, allocations: 91.88 kB / 350.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001952/0.2217, allocations: 0.7034 MB / 350.9 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.2218, allocations: 31.97 kB / 351 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002312/0.2241, allocations: 1.064 MB / 352 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2242, allocations: 0 / 352 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00432/0.2285, allocations: 1.308 MB / 353.3 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005168/0.2291, allocations: 192.4 kB / 353.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/0.2293, allocations: 23.94 kB / 353.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.2303, allocations: 103.9 kB / 353.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004304/0.2308, allocations: 120.4 kB / 353.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.126e-05/0.2309, allocations: 27.95 kB / 353.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003961/0.2313, allocations: 235.2 kB / 354 MB, free: 9.109 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2313, allocations: 0 / 354 MB, free: 9.109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009716/0.2323, allocations: 160 kB / 354.2 MB, free: 8.953 MB / 302.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.00483/0.2372, allocations: 1.892 MB / 356.1 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002908/0.2401, allocations: 0.7916 MB / 356.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2401, allocations: 0 / 356.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00133/0.2415, allocations: 433.9 kB / 357.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.2427, allocations: 89.98 kB / 357.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.2578, allocations: 5.556 MB / 362.9 MB, free: 76 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000789/0.2587, allocations: 0.8439 MB / 363.8 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004362/0.2592, allocations: 48.17 kB / 363.8 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000432/0.2596, allocations: 159.3 kB / 364 MB, free: 15 MB / 318.1 MB Notification: Performance of SimCode: time 2.304e-06/0.2597, allocations: 0 / 364 MB, free: 15 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4421/0.7017, allocations: 17.71 MB / 381.7 MB, free: 54.7 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.62/19.32, allocations: 8.672 kB / 381.7 MB, free: 54.69 MB / 318.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