Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001125/0.001125, allocations: 115.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 204.6 kB / 18.74 MB, free: 4.332 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.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2549, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004548/0.2595, allocations: 3.17 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.2616, allocations: 1.126 MB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002207/0.2619, allocations: 7.938 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003316/0.2622, allocations: 87.23 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004179/0.2627, allocations: 182.7 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004284/0.2631, allocations: 207.6 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00068/0.2638, allocations: 0.6629 MB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.2641, allocations: 136.2 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004312/0.2645, allocations: 307 kB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003743/0.2649, allocations: 314.8 kB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.586e-05/0.265, allocations: 52 kB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002068/0.2652, allocations: 112 kB / 415.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001783/0.2654, allocations: 127.6 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002499/0.2656, allocations: 274.6 kB / 415.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007389/0.2664, allocations: 0.6489 MB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2664, allocations: 0 / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2664, allocations: 0 / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.2664, allocations: 0 / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001535/0.268, allocations: 0.8412 MB / 417 MB, free: 9.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.268, allocations: 8.031 kB / 417 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001506/0.2682, allocations: 95.64 kB / 417.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002405/0.2684, allocations: 68.55 kB / 417.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/0.269, allocations: 351.4 kB / 417.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.718e-05/0.269, allocations: 37.38 kB / 417.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.131e-05/0.2691, allocations: 44.38 kB / 417.6 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008798/0.27, allocations: 482.4 kB / 418 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.27, allocations: 3.953 kB / 418 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.855e-05/0.2701, allocations: 23.92 kB / 418.1 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.2701, allocations: 8 kB / 418.1 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009527/0.2711, allocations: 471.7 kB / 418.5 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.2732, allocations: 1.153 MB / 419.7 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008884/0.2741, allocations: 432.8 kB / 420.1 MB, free: 5.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005215/0.2746, allocations: 266.4 kB / 420.4 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.132e-05/0.2746, allocations: 16.48 kB / 420.4 MB, free: 5.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.2747, allocations: 35.12 kB / 420.4 MB, free: 5.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 1.633e-06/0.2747, allocations: 0 / 420.4 MB, free: 5.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.005132/0.2798, allocations: 2.337 MB / 422.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.2799, allocations: 59.97 kB / 422.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.2802, allocations: 308.6 kB / 423.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.185e-05/0.2803, allocations: 45.69 kB / 423.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.2804, allocations: 189.6 kB / 423.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.2806, allocations: 226.2 kB / 423.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.2808, allocations: 102.3 kB / 423.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.2809, allocations: 346.8 kB / 424 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000455/0.2814, allocations: 229.2 kB / 424.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004911/0.2819, allocations: 284.8 kB / 424.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007289/0.2826, allocations: 390.3 kB / 424.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2826, allocations: 0 / 424.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001531/0.2842, allocations: 0.7562 MB / 425.6 MB, free: 244 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.2842, allocations: 7.984 kB / 425.6 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.2842, allocations: 0 / 425.6 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008274/0.285, allocations: 381.4 kB / 426 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000316/0.2854, allocations: 79.89 kB / 426.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.2867, allocations: 1.405 MB / 427.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000495/0.2872, allocations: 71.91 kB / 427.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.2872, allocations: 20 kB / 427.6 MB, free: 14.23 MB / 350.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 (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002381/0.2875, allocations: 181.7 kB / 427.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.525e-05/0.2876, allocations: 43.72 kB / 427.8 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.2877, allocations: 64.5 kB / 427.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.2877, allocations: 8 kB / 427.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.2878, allocations: 0 / 427.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.2878, allocations: 3.984 kB / 427.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002689/0.2905, allocations: 1.463 MB / 429.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.2905, allocations: 0 / 429.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003587/0.2908, allocations: 83.83 kB / 429.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007138/0.2916, allocations: 345.8 kB / 429.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.488e-05/0.2916, allocations: 23.98 kB / 429.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.2929, allocations: 1.37 MB / 431.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2929, allocations: 0 / 431.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/0.2948, allocations: 1.059 MB / 432.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000227/0.295, allocations: 176.7 kB / 432.4 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.175e-05/0.2951, allocations: 20 kB / 432.4 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004232/0.2956, allocations: 63.92 kB / 432.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.2958, allocations: 96.34 kB / 432.6 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.41e-05/0.2958, allocations: 27.98 kB / 432.6 MB, free: 9.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000225/0.296, allocations: 219.1 kB / 432.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2961, allocations: 0 / 432.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004626/0.2965, allocations: 132 kB / 432.9 MB, free: 8.672 MB / 350.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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00295/0.2995, allocations: 1.883 MB / 434.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.3008, allocations: 0.586 MB / 435.4 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3008, allocations: 0 / 435.4 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007171/0.3016, allocations: 342.9 kB / 435.7 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006873/0.3023, allocations: 92.58 kB / 435.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009048/0.3113, allocations: 5.032 MB / 440.9 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.3117, allocations: 0.8323 MB / 441.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001837/0.3119, allocations: 39.39 kB / 441.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.3122, allocations: 147.4 kB / 441.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3122, allocations: 4 kB / 441.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03806/0.3502, allocations: 14.25 MB / 456.1 MB, free: 1.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.77, allocations: 7.938 kB / 456.1 MB, free: 1.574 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches