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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 119.8 kB / 18.45 MB, free: 4.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001972/0.001972, allocations: 190.9 kB / 21.39 MB, free: 1.52 MB / 14.72 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 1.393/1.393, allocations: 207.6 MB / 231.8 MB, free: 4.238 MB / 174.1 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.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"}) [Timeout 660] "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.001635/0.001635, allocations: 63.91 kB / 342.3 MB, free: 10.05 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0906/0.09224, allocations: 49.13 MB / 391.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004451/0.09669, allocations: 3.035 MB / 394.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.09838, allocations: 0.9939 MB / 395.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.09852, allocations: 11.88 kB / 395.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002505/0.09877, allocations: 67.36 kB / 395.5 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.09901, allocations: 142.8 kB / 395.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005178/0.09953, allocations: 219.6 kB / 395.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006633/0.1002, allocations: 0.6357 MB / 396.5 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.1004, allocations: 96.28 kB / 396.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003646/0.1008, allocations: 283.1 kB / 396.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003813/0.1011, allocations: 302.9 kB / 397.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.528e-05/0.1012, allocations: 48 kB / 397.2 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001851/0.1014, allocations: 99.89 kB / 397.3 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.1015, allocations: 119.6 kB / 397.4 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000244/0.1018, allocations: 246.8 kB / 397.6 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006826/0.1025, allocations: 0.6032 MB / 398.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1025, allocations: 0 / 398.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1025, allocations: 0 / 398.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.557e-06/0.1025, allocations: 0 / 398.2 MB, free: 1.848 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.001412/0.1039, allocations: 0.7985 MB / 399 MB, free: 1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.1039, allocations: 12.03 kB / 399.1 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001359/0.1041, allocations: 83.64 kB / 399.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.788e-05/0.1042, allocations: 56.61 kB / 399.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004795/0.1046, allocations: 335.5 kB / 399.5 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.454e-05/0.1047, allocations: 29.38 kB / 399.5 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.883e-05/0.1048, allocations: 48.38 kB / 399.6 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008676/0.1056, allocations: 482.4 kB / 400.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.1056, allocations: 7.938 kB / 400.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.617e-05/0.1057, allocations: 16 kB / 400.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.1057, allocations: 12 kB / 400.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009303/0.1066, allocations: 487.6 kB / 400.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.1086, allocations: 1.126 MB / 401.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007976/0.1094, allocations: 373.3 kB / 402.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005007/0.1099, allocations: 246 kB / 402.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.007e-05/0.11, allocations: 8.422 kB / 402.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.11, allocations: 39 kB / 402.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.505e-06/0.11, allocations: 3.938 kB / 402.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004943/0.115, allocations: 2.332 MB / 404.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.176e-05/0.115, allocations: 59.95 kB / 404.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.1153, allocations: 287.3 kB / 405 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-05/0.1154, allocations: 45.7 kB / 405.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.1155, allocations: 189.6 kB / 405.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.1157, allocations: 206.3 kB / 405.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.1159, allocations: 110.3 kB / 405.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.116, allocations: 350.8 kB / 405.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000464/0.1165, allocations: 237.2 kB / 406.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.117, allocations: 300.7 kB / 406.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000775/0.1178, allocations: 414.3 kB / 406.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1178, allocations: 0 / 406.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001608/0.1194, allocations: 0.7757 MB / 407.6 MB, free: 8.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1194, allocations: 4 kB / 407.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1194, allocations: 7.984 kB / 407.6 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009072/0.1203, allocations: 0.4935 MB / 408.1 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.1207, allocations: 95.77 kB / 408.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001389/0.1221, allocations: 1.398 MB / 409.6 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000442/0.1225, allocations: 80.06 kB / 409.7 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.1226, allocations: 19.94 kB / 409.7 MB, free: 5.938 MB / 334.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.0002161/0.1228, allocations: 177.6 kB / 409.9 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.837e-05/0.1229, allocations: 35.77 kB / 409.9 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.123, allocations: 59.73 kB / 410 MB, free: 5.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.123, allocations: 8 kB / 410 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.123, allocations: 0 / 410 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.123, allocations: 7.969 kB / 410 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002751/0.1258, allocations: 1.468 MB / 411.5 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1258, allocations: 0 / 411.5 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003491/0.1261, allocations: 79.89 kB / 411.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007866/0.1269, allocations: 489.5 kB / 412 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.513e-05/0.1269, allocations: 19.97 kB / 412 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001323/0.1283, allocations: 1.374 MB / 413.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.1283, allocations: 4.031 kB / 413.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002042/0.1303, allocations: 1.081 MB / 414.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.1306, allocations: 176.7 kB / 414.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.824e-05/0.1306, allocations: 20.03 kB / 414.7 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003752/0.131, allocations: 59.88 kB / 414.7 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/0.1312, allocations: 100.3 kB / 414.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.183e-05/0.1313, allocations: 23.97 kB / 414.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.1315, allocations: 202 kB / 415.1 MB, free: 392 kB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1315, allocations: 0 / 415.1 MB, free: 392 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004524/0.1319, allocations: 132 kB / 415.2 MB, free: 260 kB / 334.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.002469/0.1344, allocations: 1.668 MB / 416.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.1356, allocations: 0.5536 MB / 417.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1356, allocations: 0 / 417.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006832/0.1363, allocations: 326.3 kB / 417.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005851/0.1369, allocations: 77.14 kB / 417.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008771/0.1457, allocations: 5.006 MB / 422.8 MB, free: 8.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.1461, allocations: 0.8241 MB / 423.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000168/0.1463, allocations: 47.19 kB / 423.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.1465, allocations: 135.4 kB / 423.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1465, allocations: 0 / 423.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0424/0.1889, allocations: 13.96 MB / 437.8 MB, free: 9.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.3, allocations: 15.98 kB / 437.8 MB, free: 9.379 MB / 366.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.932437445037067]