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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00083/0.00083, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008928/0.0008928, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8632/0.8632, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.257e-05/1.402e-05, allocations: 2.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002836/0.00285, allocations: 2.983 MB / 327.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.004007, allocations: 1.084 MB / 328.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.00413, allocations: 7.938 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002426/0.004372, allocations: 87.16 kB / 328.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002711/0.004643, allocations: 194.5 kB / 328.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.004905, allocations: 207.6 kB / 329.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004016/0.005306, allocations: 0.6821 MB / 329.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.005461, allocations: 85.33 kB / 329.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003664/0.005828, allocations: 423 kB / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.006064, allocations: 267.3 kB / 330.5 MB, free: 9.879 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.209e-05/0.006116, allocations: 48 kB / 330.5 MB, free: 9.832 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001715/0.006288, allocations: 107.9 kB / 330.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.006448, allocations: 147.5 kB / 330.8 MB, free: 9.582 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.006587, allocations: 187.5 kB / 331 MB, free: 9.398 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004941/0.007081, allocations: 0.6777 MB / 331.7 MB, free: 8.719 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.007084, allocations: 0 / 331.7 MB, free: 8.719 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.007084, allocations: 0 / 331.7 MB, free: 8.719 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.00709, allocations: 0 / 331.7 MB, free: 8.719 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.0009033/0.007994, allocations: 0.7697 MB / 332.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.008031, allocations: 11.98 kB / 332.4 MB, free: 7.906 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.008137, allocations: 91.66 kB / 332.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.008285, allocations: 72.55 kB / 332.6 MB, free: 7.734 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003479/0.008633, allocations: 285.5 kB / 332.9 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.008663, allocations: 37.38 kB / 332.9 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.448e-05/0.008717, allocations: 48.31 kB / 333 MB, free: 7.344 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005406/0.009258, allocations: 478.8 kB / 333.4 MB, free: 6.871 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.009273, allocations: 4.141 kB / 333.4 MB, free: 6.867 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.009306, allocations: 24.12 kB / 333.5 MB, free: 6.844 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.009315, allocations: 12 kB / 333.5 MB, free: 6.832 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005808/0.009895, allocations: 467.7 kB / 333.9 MB, free: 6.371 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.01116, allocations: 1.017 MB / 334.9 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000562/0.01172, allocations: 396.6 kB / 335.3 MB, free: 4.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.01204, allocations: 242.2 kB / 335.6 MB, free: 4.672 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.01207, allocations: 8.5 kB / 335.6 MB, free: 4.664 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.01209, allocations: 35.06 kB / 335.6 MB, free: 4.621 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 1.593e-06/0.01209, allocations: 0 / 335.6 MB, free: 4.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.002898/0.01498, allocations: 2.034 MB / 337.6 MB, free: 2.535 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.01501, allocations: 59.84 kB / 337.7 MB, free: 2.465 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.01522, allocations: 300.6 kB / 338 MB, free: 2.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.53e-05/0.01526, allocations: 41.7 kB / 338 MB, free: 2.113 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.372e-05/0.01535, allocations: 197.6 kB / 338.2 MB, free: 1.918 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.01547, allocations: 222.1 kB / 338.4 MB, free: 1.699 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.01558, allocations: 106.3 kB / 338.5 MB, free: 1.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.002e-05/0.01567, allocations: 354.8 kB / 338.9 MB, free: 1.234 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002821/0.01595, allocations: 229.2 kB / 339.1 MB, free: 1.008 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003075/0.01626, allocations: 280.8 kB / 339.4 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004729/0.01673, allocations: 390.1 kB / 339.8 MB, free: 352 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.01673, allocations: 0 / 339.8 MB, free: 352 kB / 298.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009466/0.01768, allocations: 0.7483 MB / 340.5 MB, free: 15.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.0177, allocations: 8 kB / 340.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.0177, allocations: 0 / 340.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005453/0.01825, allocations: 373.5 kB / 340.9 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001819/0.01843, allocations: 83.89 kB / 341 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009212/0.01935, allocations: 1.401 MB / 342.4 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.01959, allocations: 80.03 kB / 342.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.864e-05/0.01962, allocations: 20 kB / 342.5 MB, free: 13.57 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.0001608/0.01978, allocations: 177.5 kB / 342.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.581e-05/0.01983, allocations: 47.66 kB / 342.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.257e-05/0.01991, allocations: 60.52 kB / 342.8 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.01991, allocations: 12 kB / 342.8 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.01992, allocations: 0 / 342.8 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.01992, allocations: 3.984 kB / 342.8 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.02156, allocations: 1.325 MB / 344.1 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.02156, allocations: 0 / 344.1 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.02175, allocations: 79.89 kB / 344.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004292/0.02218, allocations: 357.5 kB / 344.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.059e-05/0.02221, allocations: 19.98 kB / 344.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008065/0.02301, allocations: 1.366 MB / 345.9 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.02302, allocations: 3.938 kB / 345.9 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.02423, allocations: 1.045 MB / 347 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.02438, allocations: 95.62 kB / 347 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.66e-05/0.02443, allocations: 28.06 kB / 347.1 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.02464, allocations: 60.05 kB / 347.1 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.02478, allocations: 104.3 kB / 347.2 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.02481, allocations: 23.97 kB / 347.3 MB, free: 8.602 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001357/0.02494, allocations: 219.1 kB / 347.5 MB, free: 8.391 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02494, allocations: 0 / 347.5 MB, free: 8.391 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002946/0.02524, allocations: 128 kB / 347.6 MB, free: 8.266 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.001963/0.0272, allocations: 1.887 MB / 349.5 MB, free: 6.465 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007441/0.02794, allocations: 0.5381 MB / 350 MB, free: 5.926 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.02795, allocations: 0 / 350 MB, free: 5.926 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004373/0.02838, allocations: 330.7 kB / 350.3 MB, free: 5.602 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.02878, allocations: 96.94 kB / 350.4 MB, free: 5.508 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005507/0.03428, allocations: 4.897 MB / 355.3 MB, free: 484 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001465/0.03443, allocations: 233.3 kB / 355.6 MB, free: 220 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.03455, allocations: 51.36 kB / 355.6 MB, free: 168 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.0347, allocations: 152.4 kB / 355.8 MB, free: 12 kB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.0347, allocations: 0 / 355.8 MB, free: 12 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02516/0.05987, allocations: 13.86 MB / 369.6 MB, free: 2.25 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/8.048, allocations: 4.062 kB / 369.6 MB, free: 2.246 MB / 330.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.736659461632371]