Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction",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.002051/0.002051, allocations: 102.9 kB / 17.58 MB, free: 5.414 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.002606/0.002605, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.691/2.691, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.002489/0.00249, allocations: 48.16 kB / 280.7 MB, free: 3.105 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.157, allocations: 46.64 MB / 327.4 MB, free: 4.398 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.008707/0.1657, allocations: 3.009 MB / 330.4 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003299/0.1691, allocations: 0.9823 MB / 331.4 MB, free: 380 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005326/0.1697, allocations: 4 kB / 331.4 MB, free: 376 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004882/0.1703, allocations: 75.25 kB / 331.5 MB, free: 300 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007976/0.1711, allocations: 134.8 kB / 331.6 MB, free: 164 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.1723, allocations: 223.5 kB / 331.8 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001325/0.1736, allocations: 0.6279 MB / 332.4 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004579/0.1741, allocations: 136 kB / 332.6 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007972/0.1749, allocations: 275.1 kB / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000798/0.1758, allocations: 302.9 kB / 333.1 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002201/0.176, allocations: 48 kB / 333.2 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004253/0.1765, allocations: 87.97 kB / 333.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003124/0.1768, allocations: 127.6 kB / 333.4 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005908/0.1774, allocations: 258.7 kB / 333.6 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.1787, allocations: 0.5726 MB / 334.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.1787, allocations: 3.984 kB / 334.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1787, allocations: 4 kB / 334.2 MB, free: 13.52 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.509e-05/0.1788, allocations: 0 / 334.2 MB, free: 13.52 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00279/0.1816, allocations: 0.7835 MB / 335 MB, free: 12.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.419e-05/0.1817, allocations: 12.03 kB / 335 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002611/0.1819, allocations: 91.55 kB / 335.1 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/0.1822, allocations: 48.38 kB / 335.1 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007783/0.183, allocations: 331.2 kB / 335.5 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.061e-05/0.1831, allocations: 29.38 kB / 335.5 MB, free: 12.13 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.1832, allocations: 44.38 kB / 335.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.1849, allocations: 486.4 kB / 336 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.622e-05/0.185, allocations: 3.906 kB / 336 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.317e-05/0.1851, allocations: 20 kB / 336 MB, free: 11.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.1851, allocations: 8 kB / 336 MB, free: 11.58 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.187, allocations: 487.7 kB / 336.5 MB, free: 11.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004043/0.1911, allocations: 1.133 MB / 337.7 MB, free: 9.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/0.1927, allocations: 384.4 kB / 338 MB, free: 9.527 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.1938, allocations: 278 kB / 338.3 MB, free: 9.254 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.158e-05/0.1939, allocations: 4.438 kB / 338.3 MB, free: 9.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.476e-05/0.194, allocations: 39 kB / 338.3 MB, free: 9.203 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 7.584e-06/0.194, allocations: 3.938 kB / 338.4 MB, free: 9.199 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.01064/0.2047, allocations: 2.342 MB / 340.7 MB, free: 6.727 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.375e-05/0.2048, allocations: 55.97 kB / 340.7 MB, free: 6.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006473/0.2055, allocations: 291.3 kB / 341 MB, free: 6.371 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.2057, allocations: 37.7 kB / 341.1 MB, free: 6.328 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/0.2059, allocations: 197.2 kB / 341.3 MB, free: 6.133 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000324/0.2063, allocations: 189.4 kB / 341.4 MB, free: 5.945 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003607/0.2067, allocations: 106.2 kB / 341.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002423/0.2069, allocations: 346.8 kB / 341.9 MB, free: 5.484 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000919/0.2079, allocations: 249.1 kB / 342.1 MB, free: 5.242 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.2089, allocations: 292.8 kB / 342.4 MB, free: 4.949 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.2106, allocations: 410.3 kB / 342.8 MB, free: 4.539 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.728e-06/0.2106, allocations: 4 kB / 342.8 MB, free: 4.535 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003461/0.2141, allocations: 0.7872 MB / 343.6 MB, free: 3.734 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.2141, allocations: 4 kB / 343.6 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.2142, allocations: 0 / 343.6 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001914/0.2161, allocations: 0.5052 MB / 344.1 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007321/0.2169, allocations: 95.83 kB / 344.2 MB, free: 3.125 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/0.2193, allocations: 1.413 MB / 345.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.2203, allocations: 67.91 kB / 345.7 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.2205, allocations: 27.92 kB / 345.7 MB, free: 1.566 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004873/0.221, allocations: 177.6 kB / 345.9 MB, free: 1.383 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.2212, allocations: 39.53 kB / 345.9 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002092/0.2214, allocations: 55.73 kB / 346 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.2215, allocations: 4 kB / 346 MB, free: 1.281 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/0.2215, allocations: 7.984 kB / 346 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.2215, allocations: 0 / 346 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005542/0.2271, allocations: 1.469 MB / 347.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.2271, allocations: 0 / 347.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007798/0.2279, allocations: 88.05 kB / 347.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001652/0.2296, allocations: 477.4 kB / 348 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.2297, allocations: 15.98 kB / 348 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002236/0.232, allocations: 1.374 MB / 349.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.232, allocations: 4.031 kB / 349.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004248/0.2363, allocations: 1.088 MB / 350.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004172/0.2367, allocations: 168.6 kB / 350.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000179/0.2369, allocations: 27.94 kB / 350.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008913/0.2378, allocations: 55.92 kB / 350.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003786/0.2382, allocations: 96.28 kB / 350.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.569e-05/0.2383, allocations: 19.98 kB / 350.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003988/0.2388, allocations: 209.9 kB / 351.1 MB, free: 12 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.2388, allocations: 0 / 351.1 MB, free: 12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001032/0.2398, allocations: 132 kB / 351.2 MB, free: 11.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005029/0.2449, allocations: 1.668 MB / 352.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002946/0.2478, allocations: 0.6122 MB / 353.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.2479, allocations: 0 / 353.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001626/0.2495, allocations: 342.5 kB / 353.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.251, allocations: 85 kB / 353.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01832/0.2693, allocations: 5.047 MB / 358.9 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007316/0.2701, allocations: 0.828 MB / 359.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003882/0.2705, allocations: 47.25 kB / 359.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003642/0.2709, allocations: 131.4 kB / 359.9 MB, free: 2.941 MB / 302.1 MB Notification: Performance of SimCode: time 1.753e-06/0.271, allocations: 0 / 359.9 MB, free: 2.941 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1381/0.409, allocations: 13.67 MB / 373.6 MB, free: 5.188 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.3/18.71, allocations: 7.938 kB / 373.6 MB, free: 5.18 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches