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.001224/0.001223, allocations: 111.7 kB / 17.73 MB, free: 5.355 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.001202/0.001202, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001345/0.001345, allocations: 56.34 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08616/0.08751, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004288/0.09184, allocations: 3.024 MB / 377.7 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.09368, allocations: 0.9824 MB / 378.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002876/0.09399, allocations: 4 kB / 378.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002982/0.09437, allocations: 79.3 kB / 378.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003828/0.09477, allocations: 126.8 kB / 378.9 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006155/0.0954, allocations: 223.6 kB / 379.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1829/0.2783, allocations: 0.6353 MB / 379.7 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003685/0.2787, allocations: 131.1 kB / 379.8 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006399/0.2794, allocations: 280 kB / 380.1 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000581/0.28, allocations: 300.5 kB / 380.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001952/0.2802, allocations: 50.55 kB / 380.5 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003565/0.2806, allocations: 100.9 kB / 380.6 MB, free: 9.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.2808, allocations: 123.2 kB / 380.7 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004171/0.2812, allocations: 252.1 kB / 380.9 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.2822, allocations: 0.594 MB / 381.5 MB, free: 9.031 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2822, allocations: 0 / 381.5 MB, free: 9.031 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2822, allocations: 0 / 381.5 MB, free: 9.031 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.401e-05/0.2823, allocations: 1.344 kB / 381.5 MB, free: 9.031 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001876/0.2841, allocations: 0.7956 MB / 382.3 MB, free: 8.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.2842, allocations: 10.59 kB / 382.3 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/0.2844, allocations: 89.7 kB / 382.4 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.2846, allocations: 54.17 kB / 382.5 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005956/0.2852, allocations: 333.5 kB / 382.8 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.549e-05/0.2853, allocations: 34.45 kB / 382.8 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.2854, allocations: 39.25 kB / 382.9 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.2864, allocations: 490.5 kB / 383.3 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.2865, allocations: 9.906 kB / 383.3 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.985e-05/0.2865, allocations: 15.16 kB / 383.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.2865, allocations: 9.719 kB / 383.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.2876, allocations: 483.8 kB / 383.8 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00232/0.2899, allocations: 1.132 MB / 385 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008483/0.2908, allocations: 396.1 kB / 385.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005219/0.2913, allocations: 264.6 kB / 385.6 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.2913, allocations: 8.156 kB / 385.6 MB, free: 7.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.2914, allocations: 41 kB / 385.7 MB, free: 7.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.2914, allocations: 1.438 kB / 385.7 MB, free: 7.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.00519/0.2966, allocations: 2.348 MB / 388 MB, free: 6.367 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.2966, allocations: 58.34 kB / 388.1 MB, free: 6.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.297, allocations: 285.4 kB / 388.4 MB, free: 6.148 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/0.2971, allocations: 44.78 kB / 388.4 MB, free: 6.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.2972, allocations: 188.1 kB / 388.6 MB, free: 5.945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.2973, allocations: 202 kB / 388.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/0.2976, allocations: 111.7 kB / 388.9 MB, free: 5.734 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.01e-05/0.2976, allocations: 354.3 kB / 389.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004791/0.2981, allocations: 237.8 kB / 389.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000504/0.2986, allocations: 289.4 kB / 389.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007265/0.2994, allocations: 422.1 kB / 390.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2994, allocations: 0 / 390.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001641/0.301, allocations: 0.7869 MB / 390.9 MB, free: 4.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.3011, allocations: 5.062 kB / 391 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3011, allocations: 0 / 391 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000866/0.3019, allocations: 0.4946 MB / 391.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003516/0.3023, allocations: 93.39 kB / 391.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.3034, allocations: 1.408 MB / 392.9 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000559/0.304, allocations: 72 kB / 393 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.468e-05/0.304, allocations: 23.05 kB / 393 MB, free: 3.398 MB / 318.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.0002428/0.3043, allocations: 182 kB / 393.2 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.3044, allocations: 41.45 kB / 393.3 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.3045, allocations: 58.62 kB / 393.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.3045, allocations: 6.188 kB / 393.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/0.3045, allocations: 1.531 kB / 393.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.3046, allocations: 2.672 kB / 393.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002856/0.3074, allocations: 1.461 MB / 394.8 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.3074, allocations: 6.828 kB / 394.8 MB, free: 2.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003521/0.3078, allocations: 84.78 kB / 394.9 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007687/0.3086, allocations: 479.1 kB / 395.3 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.783e-05/0.3086, allocations: 23.83 kB / 395.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009848/0.3096, allocations: 1.377 MB / 396.7 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3097, allocations: 1.875 kB / 396.7 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001975/0.3116, allocations: 1.092 MB / 397.8 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002733/0.3119, allocations: 172 kB / 398 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.3121, allocations: 20.83 kB / 398 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004905/0.3126, allocations: 60.12 kB / 398.1 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.3128, allocations: 95.89 kB / 398.2 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.689e-05/0.3129, allocations: 26.05 kB / 398.2 MB, free: 448 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002506/0.3131, allocations: 204.3 kB / 398.4 MB, free: 332 kB / 318.1 MB Notification: Performance of sort global known variables: time 9.72e-07/0.3131, allocations: 0 / 398.4 MB, free: 332 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006653/0.3138, allocations: 138.6 kB / 398.5 MB, free: 312 kB / 318.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.002802/0.3166, allocations: 1.681 MB / 400.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.3182, allocations: 0.597 MB / 400.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3182, allocations: 1.281 kB / 400.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007937/0.319, allocations: 345.9 kB / 401.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007412/0.3197, allocations: 77.73 kB / 401.2 MB, free: 14.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.3301, allocations: 5.022 MB / 406.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/0.3307, allocations: 0.8195 MB / 407.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002268/0.3309, allocations: 38.56 kB / 407.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.3312, allocations: 136.4 kB / 407.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3312, allocations: 1.406 kB / 407.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04018/0.3714, allocations: 13.88 MB / 421.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.29, allocations: 15.92 kB / 421.1 MB, free: 15.8 MB / 350.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