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.002055/0.002063, allocations: 102.8 kB / 16.92 MB, free: 6.191 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.002431/0.002432, allocations: 191.3 kB / 17.85 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.224/2.224, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 46.78 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1592, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00575/0.165, allocations: 3.09 MB / 353.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003089/0.1681, allocations: 1.036 MB / 354.3 MB, free: 172 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002872/0.1684, allocations: 7.938 kB / 354.3 MB, free: 164 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003944/0.1689, allocations: 87.22 kB / 354.4 MB, free: 76 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005141/0.1694, allocations: 150.7 kB / 354.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.1705, allocations: 291.5 kB / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001322/0.1718, allocations: 0.7881 MB / 355.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004364/0.1723, allocations: 137.1 kB / 355.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008463/0.1732, allocations: 347 kB / 356.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008466/0.174, allocations: 386.6 kB / 356.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001781/0.1742, allocations: 60 kB / 356.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003753/0.1746, allocations: 108 kB / 356.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002962/0.1749, allocations: 151.5 kB / 356.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005107/0.1755, allocations: 306.5 kB / 357.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.1768, allocations: 0.7011 MB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.1768, allocations: 0 / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1768, allocations: 0 / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.1769, allocations: 4 kB / 357.8 MB, free: 12.67 MB / 302.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.003141/0.18, allocations: 0.8885 MB / 358.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.682e-05/0.1801, allocations: 8.031 kB / 358.7 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001999/0.1803, allocations: 82.7 kB / 358.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002214/0.1806, allocations: 64.19 kB / 358.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007553/0.1813, allocations: 355.7 kB / 359.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.425e-05/0.1814, allocations: 41.38 kB / 359.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.1816, allocations: 52.27 kB / 359.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.1834, allocations: 0.6189 MB / 359.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.105e-05/0.1835, allocations: 0 / 359.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.33e-05/0.1836, allocations: 16 kB / 359.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.244e-05/0.1836, allocations: 15.98 kB / 359.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.1856, allocations: 0.6011 MB / 360.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003989/0.1896, allocations: 1.32 MB / 361.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.1912, allocations: 462.4 kB / 362.3 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.1924, allocations: 306.4 kB / 362.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.614e-05/0.1925, allocations: 16.55 kB / 362.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.625e-05/0.1925, allocations: 39.12 kB / 362.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 8.406e-06/0.1926, allocations: 3.984 kB / 362.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.01269/0.2053, allocations: 2.863 MB / 365.5 MB, free: 4.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.172e-05/0.2054, allocations: 63.91 kB / 365.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007677/0.2062, allocations: 329.7 kB / 365.9 MB, free: 4.203 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.2063, allocations: 49.7 kB / 365.9 MB, free: 4.148 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.2066, allocations: 201.2 kB / 366.1 MB, free: 3.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004756/0.2071, allocations: 221 kB / 366.3 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004558/0.2076, allocations: 134.5 kB / 366.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003865/0.208, allocations: 354.7 kB / 366.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.2094, allocations: 325.8 kB / 367.1 MB, free: 2.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.2108, allocations: 385 kB / 367.5 MB, free: 2.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002023/0.2128, allocations: 0.503 MB / 368 MB, free: 2.027 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2128, allocations: 0 / 368 MB, free: 2.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003685/0.2165, allocations: 0.9349 MB / 368.9 MB, free: 1.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.8e-05/0.2167, allocations: 7.984 kB / 369 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2167, allocations: 3.938 kB / 369 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002678/0.2194, allocations: 0.7229 MB / 369.7 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008216/0.2202, allocations: 99.88 kB / 369.8 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2761/0.4963, allocations: 1.089 MB / 370.9 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.4978, allocations: 102.6 kB / 371 MB, free: 25.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/0.498, allocations: 28.08 kB / 371 MB, free: 25.16 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.000622/0.4986, allocations: 183.3 kB / 371.2 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002974/0.499, allocations: 49.84 kB / 371.2 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002856/0.4993, allocations: 72.17 kB / 371.3 MB, free: 25.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/0.4993, allocations: 10.53 kB / 371.3 MB, free: 25.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.679e-05/0.4993, allocations: 1.5 kB / 371.3 MB, free: 25.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.103e-05/0.4993, allocations: 4.078 kB / 371.3 MB, free: 25.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005454/0.5048, allocations: 1.568 MB / 372.9 MB, free: 24.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.5049, allocations: 1.312 kB / 372.9 MB, free: 24.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006647/0.5055, allocations: 85.14 kB / 373 MB, free: 24.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002153/0.5077, allocations: 0.7097 MB / 373.7 MB, free: 24.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001316/0.5079, allocations: 22.75 kB / 373.7 MB, free: 24.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.5101, allocations: 1.063 MB / 374.8 MB, free: 23.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.5101, allocations: 0 / 374.8 MB, free: 23.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004549/0.5147, allocations: 1.309 MB / 376.1 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006397/0.5154, allocations: 186.8 kB / 376.2 MB, free: 23.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002464/0.5156, allocations: 21.12 kB / 376.3 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.5168, allocations: 106 kB / 376.4 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005275/0.5173, allocations: 127.2 kB / 376.5 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.5175, allocations: 30.77 kB / 376.5 MB, free: 23.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005904/0.5181, allocations: 232.5 kB / 376.7 MB, free: 22.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.194e-06/0.5181, allocations: 0 / 376.7 MB, free: 22.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001328/0.5195, allocations: 163.2 kB / 376.9 MB, free: 22.97 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.004444/0.5239, allocations: 1.889 MB / 378.8 MB, free: 21.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002762/0.5267, allocations: 0.7948 MB / 379.6 MB, free: 21.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.5267, allocations: 0 / 379.6 MB, free: 21.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.5281, allocations: 433.6 kB / 380 MB, free: 21.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.5293, allocations: 103.8 kB / 380.1 MB, free: 21.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.5428, allocations: 5.551 MB / 385.7 MB, free: 18.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.5433, allocations: 0.8412 MB / 386.5 MB, free: 17.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002899/0.5436, allocations: 50.88 kB / 386.6 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.5439, allocations: 155 kB / 386.7 MB, free: 17.59 MB / 302.1 MB Notification: Performance of SimCode: time 1.142e-06/0.544, allocations: 0 / 386.7 MB, free: 17.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06949/0.6135, allocations: 17.73 MB / 404.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.49/19.1, allocations: 22.41 kB / 404.5 MB, free: 3.551 MB / 302.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