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.001141/0.001141, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.001259, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 64.23 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09464/0.09589, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004723/0.1006, allocations: 3.236 MB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002265/0.1029, allocations: 1.263 MB / 362.1 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003601/0.1033, allocations: 8 kB / 362.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003817/0.1037, allocations: 95.08 kB / 362.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006334/0.1044, allocations: 226.4 kB / 362.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006752/0.1051, allocations: 259.5 kB / 362.7 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009297/0.106, allocations: 0.8427 MB / 363.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000269/0.1063, allocations: 137.1 kB / 363.6 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006036/0.1069, allocations: 374.9 kB / 364 MB, free: 7.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000571/0.1075, allocations: 410.6 kB / 364.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001645/0.1077, allocations: 64 kB / 364.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002724/0.108, allocations: 123.9 kB / 364.6 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.1082, allocations: 175.4 kB / 364.8 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003277/0.1085, allocations: 326.5 kB / 365.1 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007911/0.1093, allocations: 0.7829 MB / 365.9 MB, free: 5.711 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1093, allocations: 4 kB / 365.9 MB, free: 5.707 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1093, allocations: 0 / 365.9 MB, free: 5.707 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.236e-05/0.1094, allocations: 0 / 365.9 MB, free: 5.707 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001933/0.1113, allocations: 0.9468 MB / 366.8 MB, free: 4.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1114, allocations: 12.03 kB / 366.8 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.1115, allocations: 82.7 kB / 366.9 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003504/0.1118, allocations: 80.17 kB / 367 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004994/0.1123, allocations: 393.9 kB / 367.4 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.1124, allocations: 37.38 kB / 367.4 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.1125, allocations: 52.28 kB / 367.4 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.1137, allocations: 0.615 MB / 368.1 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.1137, allocations: 4 kB / 368.1 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.394e-05/0.1138, allocations: 20 kB / 368.1 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1138, allocations: 8 kB / 368.1 MB, free: 3.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.115, allocations: 0.5894 MB / 368.7 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.1174, allocations: 1.352 MB / 370 MB, free: 1.359 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.1185, allocations: 0.509 MB / 370.5 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005761/0.1191, allocations: 314.4 kB / 370.9 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.09e-05/0.1191, allocations: 4.562 kB / 370.9 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.1191, allocations: 43.12 kB / 370.9 MB, free: 484 kB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.294e-06/0.1192, allocations: 0 / 370.9 MB, free: 484 kB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.1902/0.3093, allocations: 2.891 MB / 373.8 MB, free: 19.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/0.3094, allocations: 63.45 kB / 373.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004395/0.3098, allocations: 365.7 kB / 374.2 MB, free: 19.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.69e-05/0.3099, allocations: 46.66 kB / 374.3 MB, free: 19.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.31, allocations: 200.6 kB / 374.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.3102, allocations: 248.8 kB / 374.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/0.3104, allocations: 135.8 kB / 374.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.414e-05/0.3105, allocations: 361.3 kB / 375.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006292/0.3112, allocations: 305 kB / 375.5 MB, free: 18.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006248/0.3118, allocations: 378.9 kB / 375.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009464/0.3128, allocations: 495 kB / 376.3 MB, free: 17.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3128, allocations: 3.625 kB / 376.3 MB, free: 17.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001851/0.3146, allocations: 0.9439 MB / 377.3 MB, free: 17.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.3147, allocations: 7.844 kB / 377.3 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3147, allocations: 2.281 kB / 377.3 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.316, allocations: 0.5775 MB / 377.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003648/0.3164, allocations: 97.91 kB / 378 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.3177, allocations: 1.102 MB / 379.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007078/0.3185, allocations: 109.7 kB / 379.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.794e-05/0.3185, allocations: 26.55 kB / 379.2 MB, free: 16.53 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 (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.0002401/0.3188, allocations: 197.5 kB / 379.4 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.3189, allocations: 49.98 kB / 379.4 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001456/0.319, allocations: 77.17 kB / 379.5 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.3191, allocations: 10.5 kB / 379.5 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.3191, allocations: 0.6875 kB / 379.5 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.3191, allocations: 4.969 kB / 379.5 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002679/0.3218, allocations: 1.634 MB / 381.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3218, allocations: 1.375 kB / 381.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004284/0.3222, allocations: 95.48 kB / 381.3 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00129/0.3235, allocations: 0.5366 MB / 381.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.901e-05/0.3236, allocations: 28.53 kB / 381.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.325, allocations: 1.071 MB / 382.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.325, allocations: 1.125 kB / 382.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002512/0.3275, allocations: 1.319 MB / 384.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002445/0.3278, allocations: 195 kB / 384.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.3279, allocations: 26.19 kB / 384.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006775/0.3286, allocations: 101.5 kB / 384.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/0.3289, allocations: 133.1 kB / 384.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.006e-05/0.329, allocations: 35.08 kB / 384.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002977/0.3293, allocations: 255 kB / 384.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3293, allocations: 7.719 kB / 384.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006678/0.33, allocations: 156.4 kB / 385.1 MB, free: 13.54 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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003364/0.3334, allocations: 2.128 MB / 387.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.3355, allocations: 0.8079 MB / 388 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3355, allocations: 3.938 kB / 388 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009749/0.3365, allocations: 442.4 kB / 388.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008265/0.3374, allocations: 116.2 kB / 388.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008552/0.3459, allocations: 5.641 MB / 394.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.3462, allocations: 0.87 MB / 395.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002328/0.3465, allocations: 52.52 kB / 395.1 MB, free: 7.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.3467, allocations: 170 kB / 395.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3467, allocations: 1.219 kB / 395.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03571/0.3824, allocations: 18.26 MB / 413.6 MB, free: 7.117 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.96, allocations: 11.67 kB / 413.6 MB, free: 7.109 MB / 318.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.0.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