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.001745/0.001745, allocations: 96.3 kB / 21.73 MB, free: 2.703 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.001826/0.001826, allocations: 167.3 kB / 25.03 MB, free: 8.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 1.363/1.363, allocations: 158.6 MB / 186.8 MB, free: 2.863 MB / 170.7 MB " [Timeout remaining time 178] 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: 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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 250.3 MB, free: 3.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.721e-05/2.888e-05, allocations: 6.312 kB / 250.4 MB, free: 3.945 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004815/0.004844, allocations: 2.837 MB / 253.2 MB, free: 1.09 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00212/0.006964, allocations: 0.9512 MB / 254.1 MB, free: 132 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/0.00716, allocations: 7.938 kB / 254.1 MB, free: 124 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002854/0.007445, allocations: 79.25 kB / 254.2 MB, free: 44 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003266/0.007772, allocations: 134.8 kB / 254.4 MB, free: 15.91 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000675/0.008447, allocations: 231.4 kB / 254.6 MB, free: 15.68 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007635/0.00921, allocations: 0.6431 MB / 255.2 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.009447, allocations: 100.4 kB / 255.3 MB, free: 14.94 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000565/0.01001, allocations: 387.1 kB / 255.7 MB, free: 14.56 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003915/0.0104, allocations: 243.4 kB / 255.9 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.0105, allocations: 48 kB / 256 MB, free: 14.27 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.01071, allocations: 99.89 kB / 256.1 MB, free: 14.18 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004261/0.01114, allocations: 127.6 kB / 256.2 MB, free: 14.05 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000239/0.01138, allocations: 179.5 kB / 256.4 MB, free: 13.88 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008535/0.01223, allocations: 0.6425 MB / 257 MB, free: 13.23 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.01224, allocations: 0 / 257 MB, free: 13.23 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.01224, allocations: 0 / 257 MB, free: 13.23 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.046e-06/0.01225, allocations: 4 kB / 257 MB, free: 13.23 MB / 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.001586/0.01383, allocations: 0.7116 MB / 257.7 MB, free: 12.48 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.01388, allocations: 15.98 kB / 257.8 MB, free: 12.47 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.01407, allocations: 88.61 kB / 257.8 MB, free: 12.38 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005732/0.01465, allocations: 268.4 kB / 258.1 MB, free: 12.09 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.269e-05/0.01469, allocations: 37.31 kB / 258.1 MB, free: 12.06 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.01479, allocations: 48.31 kB / 258.2 MB, free: 12.01 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000972/0.01576, allocations: 470.9 kB / 258.6 MB, free: 11.55 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.01579, allocations: 4.188 kB / 258.7 MB, free: 11.54 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.034e-05/0.01584, allocations: 12.38 kB / 258.7 MB, free: 11.53 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.01586, allocations: 19.94 kB / 258.7 MB, free: 11.51 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.01688, allocations: 479.6 kB / 259.2 MB, free: 11.04 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.01898, allocations: 0.9085 MB / 260.1 MB, free: 10.1 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008874/0.01987, allocations: 368.5 kB / 260.4 MB, free: 9.73 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005735/0.02044, allocations: 254.2 kB / 260.7 MB, free: 9.48 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.02049, allocations: 8.5 kB / 260.7 MB, free: 9.473 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.02052, allocations: 39.06 kB / 260.7 MB, free: 9.426 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.763e-06/0.02053, allocations: 0 / 260.7 MB, free: 9.426 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.005495/0.02602, allocations: 2.057 MB / 262.8 MB, free: 7.316 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.43e-05/0.02608, allocations: 59.84 kB / 262.8 MB, free: 7.242 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003582/0.02644, allocations: 273.8 kB / 263.1 MB, free: 6.969 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.489e-05/0.02651, allocations: 37.7 kB / 263.1 MB, free: 6.926 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004644/0.02697, allocations: 189.5 kB / 263.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.02719, allocations: 202.3 kB / 263.5 MB, free: 6.535 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.02743, allocations: 118.3 kB / 263.6 MB, free: 6.414 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.02765, allocations: 338.8 kB / 264 MB, free: 6.074 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005244/0.02817, allocations: 241.2 kB / 264.2 MB, free: 5.84 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005734/0.02875, allocations: 288.8 kB / 264.5 MB, free: 5.551 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008727/0.02962, allocations: 418.1 kB / 264.9 MB, free: 5.141 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.02962, allocations: 0 / 264.9 MB, free: 5.141 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001966/0.03159, allocations: 0.8147 MB / 265.7 MB, free: 4.312 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.03161, allocations: 4 kB / 265.7 MB, free: 4.309 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.03162, allocations: 4.031 kB / 265.7 MB, free: 4.305 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/0.03271, allocations: 0.4935 MB / 266.2 MB, free: 3.805 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003879/0.0331, allocations: 91.83 kB / 266.3 MB, free: 3.715 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/0.03478, allocations: 1.409 MB / 267.7 MB, free: 2.254 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005424/0.03533, allocations: 80.06 kB / 267.8 MB, free: 2.176 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.294e-05/0.03538, allocations: 16 kB / 267.8 MB, free: 2.16 MB / 250.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.0002962/0.03567, allocations: 173.6 kB / 268 MB, free: 1.98 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.03581, allocations: 59.7 kB / 268 MB, free: 1.922 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001487/0.03596, allocations: 59.61 kB / 268.1 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.03597, allocations: 4 kB / 268.1 MB, free: 1.859 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.03598, allocations: 0 / 268.1 MB, free: 1.859 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.03598, allocations: 4 kB / 268.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.03909, allocations: 1.282 MB / 269.4 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.0391, allocations: 4 kB / 269.4 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003929/0.03949, allocations: 83.89 kB / 269.5 MB, free: 436 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.04059, allocations: 477.5 kB / 269.9 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.564e-05/0.04064, allocations: 19.98 kB / 269.9 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/0.04251, allocations: 1.39 MB / 271.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.04251, allocations: 3.938 kB / 271.3 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002482/0.04499, allocations: 1.103 MB / 272.4 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002848/0.04528, allocations: 91.73 kB / 272.5 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.437e-05/0.04537, allocations: 20 kB / 272.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004375/0.04581, allocations: 55.92 kB / 272.6 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002674/0.04608, allocations: 100.2 kB / 272.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.9e-05/0.04614, allocations: 27.97 kB / 272.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002408/0.04638, allocations: 193.2 kB / 272.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.04638, allocations: 0 / 272.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000577/0.04696, allocations: 135.9 kB / 273.1 MB, free: 12.74 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.000321/0.04728, allocations: 145.3 kB / 273.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001439/0.04872, allocations: 0.5596 MB / 273.8 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.04872, allocations: 0 / 273.8 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008002/0.04952, allocations: 323.5 kB / 274.1 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000685/0.0502, allocations: 101.6 kB / 274.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003977/0.05418, allocations: 1.316 MB / 275.5 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.05444, allocations: 213 kB / 275.7 MB, free: 10.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001743/0.05461, allocations: 43.2 kB / 275.7 MB, free: 9.984 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.05474, allocations: 40.48 kB / 275.8 MB, free: 9.945 MB / 266.7 MB Notification: Performance of SimCode: time 1.102e-06/0.05474, allocations: 0 / 275.8 MB, free: 9.945 MB / 266.7 MB Notification: Performance of Templates: time 0.01716/0.0719, allocations: 8.465 MB / 284.2 MB, free: 1.496 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] 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: 4.852907766005956]