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.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.0008779/0.0008779, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.004355/0.004355, allocations: 166.4 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8438/0.8438, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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.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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.51e-05/2.664e-05, allocations: 2.281 kB / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003272/0.003299, allocations: 2.826 MB / 301.3 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1209/0.1242, allocations: 0.9376 MB / 302.2 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002603/0.1245, allocations: 12.25 kB / 302.2 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002227/0.1247, allocations: 71.33 kB / 302.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.1249, allocations: 143.1 kB / 302.4 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005553/0.1255, allocations: 227.8 kB / 302.6 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004909/0.126, allocations: 0.6497 MB / 303.3 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.1262, allocations: 92.83 kB / 303.4 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003847/0.1265, allocations: 387.6 kB / 303.8 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.1268, allocations: 247.2 kB / 304 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.282e-05/0.1269, allocations: 48.28 kB / 304 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.127, allocations: 94.73 kB / 304.1 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.1271, allocations: 129.1 kB / 304.3 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.1273, allocations: 180.6 kB / 304.4 MB, free: 12.92 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005992/0.1279, allocations: 0.6462 MB / 305.1 MB, free: 12.71 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1279, allocations: 0 / 305.1 MB, free: 12.71 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1279, allocations: 0 / 305.1 MB, free: 12.71 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1279, allocations: 1.25 kB / 305.1 MB, free: 12.71 MB / 282.7 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.0009927/0.1289, allocations: 0.714 MB / 305.8 MB, free: 12.23 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1289, allocations: 14.36 kB / 305.8 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.129, allocations: 89.17 kB / 305.9 MB, free: 12.15 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.108e-05/0.1291, allocations: 54.52 kB / 306 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.1295, allocations: 272.9 kB / 306.2 MB, free: 11.92 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/0.1296, allocations: 34.09 kB / 306.3 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.961e-05/0.1296, allocations: 39.55 kB / 306.3 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006609/0.1303, allocations: 483.3 kB / 306.8 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.1303, allocations: 11.33 kB / 306.8 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.1303, allocations: 16.09 kB / 306.8 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.1303, allocations: 13.22 kB / 306.8 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006532/0.131, allocations: 482 kB / 307.3 MB, free: 11.55 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.1324, allocations: 0.9982 MB / 308.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005903/0.133, allocations: 373.9 kB / 308.6 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000347/0.1333, allocations: 251.1 kB / 308.9 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.1333, allocations: 5.719 kB / 308.9 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.1333, allocations: 37.69 kB / 308.9 MB, free: 10.74 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.216e-06/0.1334, allocations: 1.438 kB / 308.9 MB, free: 10.74 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.003247/0.1366, allocations: 2.047 MB / 311 MB, free: 9.844 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.1366, allocations: 57.66 kB / 311 MB, free: 9.781 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.1369, allocations: 289.4 kB / 311.3 MB, free: 9.629 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.1369, allocations: 44.41 kB / 311.4 MB, free: 9.586 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.252e-05/0.137, allocations: 191.1 kB / 311.5 MB, free: 9.426 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.947e-05/0.1371, allocations: 199.1 kB / 311.7 MB, free: 9.277 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.1372, allocations: 111.4 kB / 311.8 MB, free: 9.215 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.447e-05/0.1373, allocations: 347.2 kB / 312.2 MB, free: 8.887 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003059/0.1376, allocations: 241.8 kB / 312.4 MB, free: 8.805 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003404/0.1379, allocations: 294.4 kB / 312.7 MB, free: 8.688 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005004/0.1384, allocations: 413.6 kB / 313.1 MB, free: 8.523 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1384, allocations: 0 / 313.1 MB, free: 8.523 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001144/0.1396, allocations: 0.79 MB / 313.9 MB, free: 8.215 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1396, allocations: 5.844 kB / 313.9 MB, free: 8.215 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1396, allocations: 2.484 kB / 313.9 MB, free: 8.215 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006805/0.1403, allocations: 0.4934 MB / 314.4 MB, free: 8.074 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.1405, allocations: 88.33 kB / 314.5 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007646/0.1412, allocations: 1.412 MB / 315.9 MB, free: 6.879 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002845/0.1415, allocations: 73.72 kB / 316 MB, free: 6.871 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.1416, allocations: 22.61 kB / 316 MB, free: 6.863 MB / 282.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 (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.0001763/0.1417, allocations: 177.9 kB / 316.2 MB, free: 6.703 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.405e-05/0.1418, allocations: 40.11 kB / 316.2 MB, free: 6.684 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.927e-05/0.1419, allocations: 59.45 kB / 316.3 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.1419, allocations: 6.562 kB / 316.3 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.1419, allocations: 0 / 316.3 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1419, allocations: 2.344 kB / 316.3 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00191/0.1438, allocations: 1.349 MB / 317.6 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.1438, allocations: 5.531 kB / 317.6 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002146/0.144, allocations: 87.45 kB / 317.7 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005295/0.1446, allocations: 486.4 kB / 318.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.1446, allocations: 20.12 kB / 318.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006556/0.1452, allocations: 1.37 MB / 319.6 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1452, allocations: 1.125 kB / 319.6 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.1465, allocations: 1.084 MB / 320.7 MB, free: 4.133 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.1467, allocations: 91.59 kB / 320.8 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.281e-05/0.1467, allocations: 27.23 kB / 320.8 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.1469, allocations: 60.11 kB / 320.8 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.1471, allocations: 101.5 kB / 320.9 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.1471, allocations: 22.83 kB / 321 MB, free: 4.035 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001394/0.1472, allocations: 203.9 kB / 321.2 MB, free: 3.922 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1472, allocations: 0 / 321.2 MB, free: 3.922 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000367/0.1476, allocations: 136.4 kB / 321.3 MB, free: 3.902 MB / 282.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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001446/0.149, allocations: 1.668 MB / 323 MB, free: 2.836 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008263/0.1499, allocations: 0.5566 MB / 323.5 MB, free: 2.641 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1499, allocations: 5.219 kB / 323.5 MB, free: 2.637 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.1503, allocations: 325.2 kB / 323.8 MB, free: 2.492 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.1507, allocations: 76.56 kB / 323.9 MB, free: 2.453 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00536/0.156, allocations: 4.887 MB / 328.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.1562, allocations: 222.6 kB / 329 MB, free: 15.15 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000131/0.1563, allocations: 39.72 kB / 329.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.1565, allocations: 136.4 kB / 329.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1565, allocations: 0 / 329.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02953/0.186, allocations: 13.3 MB / 342.5 MB, free: 1.621 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.78/7.966, allocations: 11.83 kB / 342.5 MB, free: 1.609 MB / 298.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.58924573007971]