Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008273/0.0008273, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008152/0.0008152, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8607/0.8607, allocations: 177.1 MB / 204.3 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.162e-05, allocations: 12.95 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003618/0.003639, allocations: 2.977 MB / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.005488, allocations: 1.091 MB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001871/0.005675, allocations: 11.94 kB / 328.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003377/0.006013, allocations: 83.23 kB / 328.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004527/0.006465, allocations: 198.5 kB / 328.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004264/0.006892, allocations: 211.6 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006199/0.007512, allocations: 0.6859 MB / 329.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.007693, allocations: 85.33 kB / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006302/0.008323, allocations: 419 kB / 330.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003252/0.008649, allocations: 259.4 kB / 330.6 MB, free: 9.906 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.762e-05/0.008706, allocations: 48 kB / 330.6 MB, free: 9.859 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001755/0.008882, allocations: 115.9 kB / 330.7 MB, free: 9.746 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.009021, allocations: 135.5 kB / 330.9 MB, free: 9.613 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.009158, allocations: 187.5 kB / 331 MB, free: 9.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005777/0.009736, allocations: 0.6893 MB / 331.7 MB, free: 8.738 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.009741, allocations: 4 kB / 331.7 MB, free: 8.734 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.009742, allocations: 0 / 331.7 MB, free: 8.734 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.00975, allocations: 0 / 331.7 MB, free: 8.734 MB / 298.7 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.0009798/0.01073, allocations: 0.769 MB / 332.5 MB, free: 7.938 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.01077, allocations: 8.031 kB / 332.5 MB, free: 7.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001093/0.01088, allocations: 87.66 kB / 332.6 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001628/0.01104, allocations: 68.55 kB / 332.7 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.01144, allocations: 293.4 kB / 332.9 MB, free: 7.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.01147, allocations: 37.38 kB / 333 MB, free: 7.414 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.897e-05/0.01153, allocations: 44.38 kB / 333 MB, free: 7.371 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/0.01211, allocations: 478.9 kB / 333.5 MB, free: 6.898 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.01213, allocations: 8.141 kB / 333.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.01216, allocations: 20.12 kB / 333.5 MB, free: 6.871 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.01217, allocations: 8 kB / 333.5 MB, free: 6.863 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006167/0.01279, allocations: 475.6 kB / 334 MB, free: 6.398 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.01423, allocations: 0.9974 MB / 335 MB, free: 5.355 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005607/0.01479, allocations: 408.5 kB / 335.4 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003162/0.01511, allocations: 250.2 kB / 335.6 MB, free: 4.699 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.01514, allocations: 8.5 kB / 335.6 MB, free: 4.691 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.01516, allocations: 39.06 kB / 335.7 MB, free: 4.645 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 1.563e-06/0.01516, allocations: 3.938 kB / 335.7 MB, free: 4.641 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.00288/0.01804, allocations: 2.014 MB / 337.7 MB, free: 2.574 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.01807, allocations: 59.91 kB / 337.8 MB, free: 2.504 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.01828, allocations: 304.6 kB / 338.1 MB, free: 2.195 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.624e-05/0.01832, allocations: 45.69 kB / 338.1 MB, free: 2.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.409e-05/0.0184, allocations: 193.6 kB / 338.3 MB, free: 1.953 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.01852, allocations: 222.1 kB / 338.5 MB, free: 1.734 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.01863, allocations: 110.3 kB / 338.6 MB, free: 1.621 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.938e-05/0.01872, allocations: 354.8 kB / 339 MB, free: 1.266 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.01901, allocations: 225.2 kB / 339.2 MB, free: 1.043 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003022/0.01931, allocations: 276.8 kB / 339.4 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004514/0.01976, allocations: 398.1 kB / 339.8 MB, free: 384 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.01976, allocations: 0 / 339.8 MB, free: 384 kB / 298.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001034/0.0208, allocations: 0.7407 MB / 340.6 MB, free: 15.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.02081, allocations: 4 kB / 340.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.02082, allocations: 7.938 kB / 340.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005252/0.02134, allocations: 373.4 kB / 341 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.0215, allocations: 83.89 kB / 341 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008432/0.02235, allocations: 1.394 MB / 342.4 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.02259, allocations: 79.88 kB / 342.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/0.02262, allocations: 23.97 kB / 342.5 MB, free: 13.61 MB / 314.7 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.000143/0.02276, allocations: 177.6 kB / 342.7 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/0.02282, allocations: 51.66 kB / 342.8 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.816e-05/0.02289, allocations: 68.52 kB / 342.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.02289, allocations: 4 kB / 342.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.02289, allocations: 0 / 342.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.0229, allocations: 7.984 kB / 342.8 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001549/0.02445, allocations: 1.325 MB / 344.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.02445, allocations: 0 / 344.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.02464, allocations: 84.05 kB / 344.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004239/0.02506, allocations: 345.4 kB / 344.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/0.0251, allocations: 23.97 kB / 344.6 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007926/0.02589, allocations: 1.37 MB / 346 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.02589, allocations: 4.031 kB / 346 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.02708, allocations: 1.042 MB / 347 MB, free: 8.941 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.02722, allocations: 99.61 kB / 347.1 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.676e-05/0.02727, allocations: 27.92 kB / 347.1 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.02748, allocations: 59.94 kB / 347.2 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.02762, allocations: 108.2 kB / 347.3 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.02764, allocations: 19.98 kB / 347.3 MB, free: 8.633 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001439/0.02779, allocations: 223 kB / 347.5 MB, free: 8.418 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02779, allocations: 0 / 347.5 MB, free: 8.418 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002879/0.02808, allocations: 128 kB / 347.7 MB, free: 8.293 MB / 314.7 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.001914/0.02999, allocations: 1.88 MB / 349.5 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007418/0.03073, allocations: 0.542 MB / 350.1 MB, free: 5.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.03073, allocations: 0 / 350.1 MB, free: 5.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004047/0.03114, allocations: 322.7 kB / 350.4 MB, free: 5.664 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003816/0.03152, allocations: 94.42 kB / 350.5 MB, free: 5.574 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005285/0.0368, allocations: 4.908 MB / 355.4 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001586/0.03696, allocations: 229.3 kB / 355.6 MB, free: 284 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.03708, allocations: 43.39 kB / 355.7 MB, free: 240 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.03726, allocations: 152.4 kB / 355.8 MB, free: 84 kB / 314.7 MB Notification: Performance of SimCode: time 6.61e-07/0.03726, allocations: 0 / 355.8 MB, free: 84 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02455/0.06181, allocations: 13.87 MB / 369.7 MB, free: 2.332 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.493/7.555, allocations: 6.812 kB / 369.7 MB, free: 2.328 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.235385304316878]