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.00151/0.00151, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001821/0.001821, allocations: 213.3 kB / 23.72 MB, free: 4.531 MB / 14.72 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 1.398/1.398, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001438/0.001438, allocations: 43.94 kB / 377.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2193/0.2207, allocations: 53.37 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004521/0.2253, allocations: 2.964 MB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.2273, allocations: 1.083 MB / 435.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001883/0.2275, allocations: 11.94 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.2278, allocations: 91.17 kB / 435.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004293/0.2282, allocations: 178.7 kB / 435.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004489/0.2286, allocations: 215.6 kB / 435.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006974/0.2293, allocations: 0.6706 MB / 436.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.2296, allocations: 95 kB / 436.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004223/0.23, allocations: 311.1 kB / 436.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004274/0.2304, allocations: 326.8 kB / 437 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.023e-05/0.2305, allocations: 52 kB / 437 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001985/0.2307, allocations: 104 kB / 437.2 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001786/0.2309, allocations: 143.5 kB / 437.3 MB, free: 440 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002406/0.2311, allocations: 223 kB / 437.5 MB, free: 216 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007486/0.2319, allocations: 0.6538 MB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2319, allocations: 0 / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2319, allocations: 3.938 kB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.2319, allocations: 0 / 438.2 MB, free: 15.55 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001525/0.2334, allocations: 0.7737 MB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2334, allocations: 8.031 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/0.2336, allocations: 91.66 kB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.2338, allocations: 68.55 kB / 439.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.2343, allocations: 282.2 kB / 439.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.825e-05/0.2344, allocations: 37.38 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.681e-05/0.2345, allocations: 52.33 kB / 439.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009626/0.2354, allocations: 482.4 kB / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.2355, allocations: 0 / 439.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.236e-05/0.2355, allocations: 20 kB / 440 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.2355, allocations: 15.98 kB / 440 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.2365, allocations: 463.7 kB / 440.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.2388, allocations: 1.017 MB / 441.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009428/0.2397, allocations: 404.5 kB / 441.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005754/0.2403, allocations: 246.2 kB / 442.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.65e-05/0.2403, allocations: 8.5 kB / 442.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.2404, allocations: 43 kB / 442.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 3.005e-06/0.2404, allocations: 0 / 442.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005543/0.2459, allocations: 2.006 MB / 444.1 MB, free: 9.395 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.246, allocations: 63.91 kB / 444.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003776/0.2463, allocations: 304.5 kB / 444.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.384e-05/0.2464, allocations: 41.7 kB / 444.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.2466, allocations: 193.6 kB / 444.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.2468, allocations: 222.2 kB / 444.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.247, allocations: 106.3 kB / 445 MB, free: 8.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.2471, allocations: 358.8 kB / 445.4 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005005/0.2476, allocations: 221.2 kB / 445.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005378/0.2482, allocations: 284.8 kB / 445.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008204/0.249, allocations: 398.1 kB / 446.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.249, allocations: 0 / 446.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001704/0.2507, allocations: 0.7406 MB / 447 MB, free: 6.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.2507, allocations: 8 kB / 447 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.2507, allocations: 0 / 447 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00092/0.2517, allocations: 373.4 kB / 447.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.252, allocations: 91.83 kB / 447.5 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.2535, allocations: 1.397 MB / 448.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005033/0.254, allocations: 75.88 kB / 449 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.2541, allocations: 20 kB / 449 MB, free: 4.422 MB / 350.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 (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.000265/0.2543, allocations: 182.4 kB / 449.2 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.2544, allocations: 43.72 kB / 449.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.2546, allocations: 64.52 kB / 449.3 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.2546, allocations: 8 kB / 449.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2546, allocations: 0 / 449.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.2546, allocations: 3.984 kB / 449.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002852/0.2575, allocations: 1.325 MB / 450.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.2575, allocations: 0 / 450.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003766/0.2578, allocations: 91.98 kB / 450.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000795/0.2586, allocations: 345.6 kB / 451 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.208e-05/0.2587, allocations: 23.97 kB / 451 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00144/0.2601, allocations: 1.362 MB / 452.4 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.2601, allocations: 3.938 kB / 452.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.2622, allocations: 1.049 MB / 453.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.2625, allocations: 95.66 kB / 453.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.825e-05/0.2626, allocations: 20 kB / 453.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.263, allocations: 63.92 kB / 453.6 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.2632, allocations: 100.3 kB / 453.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.222e-05/0.2633, allocations: 23.97 kB / 453.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.2635, allocations: 223 kB / 454 MB, free: 15.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2635, allocations: 0 / 454 MB, free: 15.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004761/0.264, allocations: 135.9 kB / 454.1 MB, free: 15.11 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003679/0.2677, allocations: 1.895 MB / 456 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.269, allocations: 0.5499 MB / 456.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.269, allocations: 0 / 456.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000765/0.2698, allocations: 326.5 kB / 456.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006374/0.2704, allocations: 85.36 kB / 457 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009544/0.2799, allocations: 5.016 MB / 462 MB, free: 7.227 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.2802, allocations: 233.3 kB / 462.2 MB, free: 6.969 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.2804, allocations: 43.39 kB / 462.2 MB, free: 6.926 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/0.2806, allocations: 147.4 kB / 462.4 MB, free: 6.781 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2806, allocations: 0 / 462.4 MB, free: 6.781 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04588/0.3265, allocations: 13.88 MB / 476.3 MB, free: 9.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.68, allocations: 7.156 kB / 476.3 MB, free: 9.027 MB / 382.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/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: 15.179015865986003]