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.001432/0.001432, allocations: 76.06 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001588/0.001588, allocations: 147.9 kB / 24.98 MB, free: 8.879 MB / 18.57 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 0.9513/0.9513, allocations: 173.4 MB / 201.5 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.82e-07/9.82e-07, allocations: 0 / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.037e-05, allocations: 2.312 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003039/0.003059, allocations: 3.035 MB / 271.1 MB, free: 3.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.004156, allocations: 0.927 MB / 272 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.004261, allocations: 11.94 kB / 272 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.004392, allocations: 63.31 kB / 272.1 MB, free: 2.672 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.004545, allocations: 150.8 kB / 272.2 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.004866, allocations: 227.5 kB / 272.5 MB, free: 2.301 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003629/0.005229, allocations: 0.6547 MB / 273.1 MB, free: 1.645 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.005349, allocations: 80.7 kB / 273.2 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002824/0.005631, allocations: 391.2 kB / 273.6 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.005845, allocations: 247.4 kB / 273.8 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.825e-05/0.005893, allocations: 52 kB / 273.9 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.006001, allocations: 99.92 kB / 274 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.871e-05/0.006079, allocations: 127.5 kB / 274.1 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000116/0.006195, allocations: 179.6 kB / 274.3 MB, free: 500 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000356/0.006551, allocations: 478.4 kB / 274.7 MB, free: 20 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.006553, allocations: 0 / 274.7 MB, free: 20 kB / 250.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.006553, allocations: 0 / 274.7 MB, free: 20 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.006557, allocations: 0 / 274.7 MB, free: 20 kB / 250.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.0007174/0.007275, allocations: 0.792 MB / 275.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.419e-05/0.007299, allocations: 8.922 kB / 275.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.31e-05/0.007392, allocations: 84.61 kB / 275.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004695/0.007862, allocations: 279.2 kB / 275.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.007885, allocations: 29.38 kB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.79e-05/0.007933, allocations: 52.33 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004492/0.008383, allocations: 395.6 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.008394, allocations: 192 / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.008422, allocations: 16.38 kB / 276.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.008431, allocations: 15.94 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000404/0.008835, allocations: 317.7 kB / 276.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.009865, allocations: 0.9193 MB / 277.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004039/0.01027, allocations: 308 kB / 277.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.0105, allocations: 177 kB / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.01053, allocations: 8.5 kB / 278.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.782e-05/0.01055, allocations: 45.89 kB / 278.2 MB, free: 12.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.403e-06/0.01055, allocations: 0 / 278.2 MB, free: 12.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002297/0.01285, allocations: 1.681 MB / 279.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.081e-05/0.01287, allocations: 55.91 kB / 279.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.01304, allocations: 316.1 kB / 280.2 MB, free: 10.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.01308, allocations: 45.69 kB / 280.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.742e-05/0.01316, allocations: 232.2 kB / 280.5 MB, free: 10.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.01327, allocations: 206.3 kB / 280.7 MB, free: 9.844 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.01338, allocations: 115.9 kB / 280.8 MB, free: 9.723 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.0135, allocations: 0.5157 MB / 281.3 MB, free: 9.195 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002331/0.01373, allocations: 161.2 kB / 281.5 MB, free: 9.039 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.01397, allocations: 210.5 kB / 281.7 MB, free: 8.824 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.01431, allocations: 307.8 kB / 282 MB, free: 8.516 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.01431, allocations: 0 / 282 MB, free: 8.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008167/0.01513, allocations: 0.6406 MB / 282.6 MB, free: 7.859 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.01514, allocations: 4 kB / 282.6 MB, free: 7.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.317e-06/0.01514, allocations: 3.938 kB / 282.6 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007198/0.01586, allocations: 439 kB / 283 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.01604, allocations: 83.84 kB / 283.1 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008192/0.01686, allocations: 1.815 MB / 284.9 MB, free: 5.453 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.01703, allocations: 55.94 kB / 285 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.01706, allocations: 20 kB / 285 MB, free: 5.379 MB / 266.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.0001249/0.01719, allocations: 196.2 kB / 285.2 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.051e-05/0.01726, allocations: 59.7 kB / 285.3 MB, free: 5.117 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.053e-05/0.01732, allocations: 59.61 kB / 285.3 MB, free: 5.059 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.01732, allocations: 4 kB / 285.3 MB, free: 5.055 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.01732, allocations: 0 / 285.3 MB, free: 5.055 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.01733, allocations: 4 kB / 285.3 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001376/0.0187, allocations: 1.179 MB / 286.5 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.01871, allocations: 4 kB / 286.5 MB, free: 3.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.01889, allocations: 75.91 kB / 286.6 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004224/0.01932, allocations: 447.1 kB / 287 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.01934, allocations: 15.98 kB / 287 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007561/0.0201, allocations: 1.818 MB / 288.9 MB, free: 1.383 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.0201, allocations: 0 / 288.9 MB, free: 1.383 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.02112, allocations: 0.9315 MB / 289.8 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.02124, allocations: 87.67 kB / 289.9 MB, free: 328 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.239e-05/0.02129, allocations: 20 kB / 289.9 MB, free: 308 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.02146, allocations: 39.95 kB / 289.9 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004374/0.0219, allocations: 100.2 kB / 290 MB, free: 164 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.02192, allocations: 23.97 kB / 290 MB, free: 140 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.1042/0.1261, allocations: 215.4 kB / 290.3 MB, free: 32.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1261, allocations: 0 / 290.3 MB, free: 32.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004691/0.1266, allocations: 128.7 kB / 290.4 MB, free: 32.77 MB / 266.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.0001702/0.1267, allocations: 145.2 kB / 290.5 MB, free: 32.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007519/0.1275, allocations: 452.8 kB / 291 MB, free: 32.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1275, allocations: 4.312 kB / 291 MB, free: 32.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003558/0.1278, allocations: 260.2 kB / 291.2 MB, free: 32.64 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.1282, allocations: 102.2 kB / 291.3 MB, free: 32.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.1302, allocations: 1.215 MB / 292.5 MB, free: 32.12 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.207e-05/0.1303, allocations: 114.4 kB / 292.7 MB, free: 32.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.1304, allocations: 40.72 kB / 292.7 MB, free: 32.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.083e-05/0.1305, allocations: 40.09 kB / 292.7 MB, free: 32.04 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.1305, allocations: 1 kB / 292.7 MB, free: 32.04 MB / 266.7 MB Notification: Performance of Templates: time 0.0103/0.1408, allocations: 8.524 MB / 301.3 MB, free: 29.43 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0676152799278498]