Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001495/0.001495, allocations: 119.9 kB / 17.79 MB, free: 5.285 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.001487/0.001487, allocations: 185.2 kB / 20.73 MB, free: 2.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 56.05 kB / 365.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09142/0.0929, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004292/0.09719, allocations: 3.051 MB / 420.8 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.09888, allocations: 0.9309 MB / 421.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.09906, allocations: 7.938 kB / 421.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002239/0.09928, allocations: 63.38 kB / 421.8 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002784/0.09956, allocations: 142.8 kB / 422 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.1001, allocations: 227.5 kB / 422.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006431/0.1007, allocations: 0.6317 MB / 422.8 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.1009, allocations: 96.3 kB / 422.9 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003665/0.1013, allocations: 275.1 kB / 423.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003862/0.1017, allocations: 310.8 kB / 423.5 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.074e-05/0.1018, allocations: 48 kB / 423.5 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.102, allocations: 99.95 kB / 423.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.1021, allocations: 119.6 kB / 423.8 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002345/0.1023, allocations: 254.8 kB / 424 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000678/0.103, allocations: 0.5914 MB / 424.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.103, allocations: 0 / 424.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.103, allocations: 3.938 kB / 424.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.103, allocations: 4 kB / 424.6 MB, free: 5.789 MB / 350.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.001425/0.1044, allocations: 0.7947 MB / 425.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.1045, allocations: 15.97 kB / 425.4 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.1046, allocations: 95.59 kB / 425.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.81e-05/0.1047, allocations: 52.61 kB / 425.6 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004984/0.1052, allocations: 327.5 kB / 425.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.614e-05/0.1053, allocations: 33.38 kB / 425.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.643e-05/0.1053, allocations: 40.38 kB / 425.9 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008612/0.1062, allocations: 486.4 kB / 426.4 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.74e-05/0.1062, allocations: 11.95 kB / 426.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.671e-05/0.1063, allocations: 20 kB / 426.5 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.1063, allocations: 8 kB / 426.5 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009196/0.1072, allocations: 483.7 kB / 426.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.1092, allocations: 1.126 MB / 428.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000786/0.11, allocations: 373 kB / 428.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004954/0.1105, allocations: 250 kB / 428.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.1106, allocations: 4.438 kB / 428.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.1106, allocations: 42.98 kB / 428.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.944e-06/0.1106, allocations: 0 / 428.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004963/0.1156, allocations: 2.339 MB / 431.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.1156, allocations: 55.97 kB / 431.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.1159, allocations: 291.3 kB / 431.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.775e-05/0.116, allocations: 41.7 kB / 431.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.1161, allocations: 189.6 kB / 431.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.1163, allocations: 214.3 kB / 431.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.1164, allocations: 106.3 kB / 431.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1166, allocations: 346.8 kB / 432.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004719/0.1171, allocations: 241.2 kB / 432.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004961/0.1176, allocations: 288.8 kB / 432.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007631/0.1183, allocations: 418.3 kB / 433.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1183, allocations: 0 / 433.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001634/0.12, allocations: 0.7797 MB / 434 MB, free: 12.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.12, allocations: 8 kB / 434 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.12, allocations: 0 / 434 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009034/0.1209, allocations: 0.4934 MB / 434.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003458/0.1212, allocations: 91.83 kB / 434.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.1226, allocations: 1.409 MB / 436 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004745/0.1231, allocations: 80.05 kB / 436.1 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.93e-05/0.1231, allocations: 23.92 kB / 436.1 MB, free: 9.871 MB / 366.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.0002393/0.1233, allocations: 174.9 kB / 436.2 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.628e-05/0.1234, allocations: 43.75 kB / 436.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.1235, allocations: 55.73 kB / 436.3 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.1236, allocations: 8 kB / 436.4 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1236, allocations: 7.938 kB / 436.4 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1236, allocations: 0 / 436.4 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002763/0.1263, allocations: 1.444 MB / 437.8 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1263, allocations: 0 / 437.8 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003578/0.1267, allocations: 88.05 kB / 437.9 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008074/0.1275, allocations: 485.4 kB / 438.4 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.998e-05/0.1275, allocations: 19.97 kB / 438.4 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.1289, allocations: 1.37 MB / 439.8 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1289, allocations: 4.031 kB / 439.8 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.131, allocations: 1.085 MB / 440.8 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.1312, allocations: 172.7 kB / 441 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.51e-05/0.1313, allocations: 24 kB / 441 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003999/0.1317, allocations: 55.92 kB / 441.1 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.1319, allocations: 96.28 kB / 441.2 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.462e-05/0.132, allocations: 19.98 kB / 441.2 MB, free: 4.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002129/0.1322, allocations: 205.9 kB / 441.4 MB, free: 4.344 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1322, allocations: 4 kB / 441.4 MB, free: 4.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004605/0.1326, allocations: 135.9 kB / 441.5 MB, free: 4.207 MB / 366.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.002599/0.1352, allocations: 1.674 MB / 443.2 MB, free: 2.484 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001292/0.1365, allocations: 0.5538 MB / 443.8 MB, free: 1.926 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.1365, allocations: 4 kB / 443.8 MB, free: 1.922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000697/0.1372, allocations: 330.5 kB / 444.1 MB, free: 1.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000623/0.1379, allocations: 86.47 kB / 444.2 MB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1692/0.307, allocations: 4.99 MB / 449.2 MB, free: 30.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.3073, allocations: 0.8221 MB / 450 MB, free: 29.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001713/0.3074, allocations: 42.02 kB / 450 MB, free: 29.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.3076, allocations: 136.2 kB / 450.2 MB, free: 29.33 MB / 366.1 MB Notification: Performance of SimCode: time 1.123e-06/0.3076, allocations: 3.125 kB / 450.2 MB, free: 29.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04324/0.3508, allocations: 13.97 MB / 464.1 MB, free: 25.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.38, allocations: 4.438 kB / 464.1 MB, free: 25.71 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 14.978577732108533]