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.001014/0.001014, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001071/0.001071, allocations: 161.5 kB / 25.61 MB, free: 8.578 MB / 18.57 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 0.8753/0.8753, allocations: 177.1 MB / 206.1 MB, free: 4.492 MB / 186.7 MB " [Timeout remaining time 179] 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: 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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.284e-05, allocations: 2.312 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005285/0.005308, allocations: 3.133 MB / 277.3 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002159/0.007467, allocations: 1.092 MB / 278.4 MB, free: 196 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.007674, allocations: 11.94 kB / 278.4 MB, free: 184 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003406/0.008015, allocations: 93.03 kB / 278.5 MB, free: 92 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004734/0.008488, allocations: 199.6 kB / 278.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.008934, allocations: 211.6 kB / 278.9 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006864/0.009621, allocations: 0.682 MB / 279.6 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.009832, allocations: 92.67 kB / 279.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006007/0.01043, allocations: 415.1 kB / 280.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004064/0.01084, allocations: 263.3 kB / 280.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.789e-05/0.01093, allocations: 52 kB / 280.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.01114, allocations: 107.9 kB / 280.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.01131, allocations: 147.5 kB / 280.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.0115, allocations: 187.5 kB / 280.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008866/0.01239, allocations: 0.5021 MB / 281.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.0124, allocations: 0 / 281.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.0124, allocations: 0 / 281.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.01241, allocations: 0 / 281.3 MB, free: 13.26 MB / 266.7 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.001211/0.01362, allocations: 0.8423 MB / 282.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.01366, allocations: 11.97 kB / 282.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.01393, allocations: 100.5 kB / 282.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000432/0.01436, allocations: 305 kB / 282.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.596e-05/0.0144, allocations: 33.38 kB / 282.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.832e-05/0.01448, allocations: 44.33 kB / 282.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005755/0.01506, allocations: 334.9 kB / 283 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.01508, allocations: 8.172 kB / 283 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/0.01512, allocations: 20.31 kB / 283 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.01513, allocations: 11.94 kB / 283 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004451/0.01558, allocations: 230.7 kB / 283.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.01712, allocations: 0.8652 MB / 284.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005747/0.01769, allocations: 289 kB / 284.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002597/0.01795, allocations: 137.1 kB / 284.5 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.224e-05/0.01799, allocations: 12.5 kB / 284.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.01802, allocations: 49.88 kB / 284.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.384e-06/0.01803, allocations: 0 / 284.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.003196/0.02122, allocations: 1.416 MB / 286 MB, free: 8.391 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.02125, allocations: 63.91 kB / 286.1 MB, free: 8.316 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.02151, allocations: 314.2 kB / 286.4 MB, free: 7.988 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.413e-05/0.0216, allocations: 49.64 kB / 286.4 MB, free: 7.934 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.02173, allocations: 236.3 kB / 286.7 MB, free: 7.695 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.0219, allocations: 222.2 kB / 286.9 MB, free: 7.477 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.02208, allocations: 115.9 kB / 287 MB, free: 7.355 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.02225, allocations: 0.5273 MB / 287.5 MB, free: 6.816 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.02247, allocations: 109.2 kB / 287.6 MB, free: 6.711 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002376/0.02271, allocations: 162.4 kB / 287.8 MB, free: 6.547 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.02305, allocations: 223.8 kB / 288 MB, free: 6.324 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.02305, allocations: 0 / 288 MB, free: 6.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009483/0.024, allocations: 0.5118 MB / 288.5 MB, free: 5.797 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.02402, allocations: 11.94 kB / 288.5 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.02403, allocations: 0 / 288.5 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005802/0.02461, allocations: 291 kB / 288.8 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.02486, allocations: 83.89 kB / 288.9 MB, free: 5.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.02586, allocations: 1.736 MB / 290.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.02615, allocations: 67.88 kB / 290.7 MB, free: 3.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.02619, allocations: 15.98 kB / 290.7 MB, free: 3.527 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 (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.0001606/0.02635, allocations: 196.4 kB / 290.9 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.02646, allocations: 63.72 kB / 291 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.794e-05/0.02655, allocations: 55.69 kB / 291 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.02656, allocations: 11.98 kB / 291 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.02657, allocations: 3.938 kB / 291 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.02657, allocations: 3.984 kB / 291 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.02822, allocations: 1.032 MB / 292.1 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.02822, allocations: 160 / 292.1 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.02841, allocations: 87.89 kB / 292.2 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003444/0.02876, allocations: 275.1 kB / 292.4 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.184e-05/0.02879, allocations: 27.86 kB / 292.4 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007682/0.02956, allocations: 1.752 MB / 294.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.02956, allocations: 3.938 kB / 294.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007577/0.03032, allocations: 0.7759 MB / 295 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.03045, allocations: 99.56 kB / 295.1 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.585e-05/0.03051, allocations: 20 kB / 295.1 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.03068, allocations: 39.98 kB / 295.1 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.0308, allocations: 104.3 kB / 295.2 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.03083, allocations: 15.98 kB / 295.3 MB, free: 14.78 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.26e-05/0.03092, allocations: 214.9 kB / 295.5 MB, free: 14.57 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03092, allocations: 4 kB / 295.5 MB, free: 14.57 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002967/0.03122, allocations: 135.9 kB / 295.6 MB, free: 14.43 MB / 282.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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006954/0.03191, allocations: 365.3 kB / 296 MB, free: 14.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004988/0.03241, allocations: 374.2 kB / 296.3 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.03241, allocations: 0 / 296.3 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002566/0.03267, allocations: 229.4 kB / 296.5 MB, free: 13.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000374/0.03305, allocations: 124.8 kB / 296.7 MB, free: 13.47 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.03484, allocations: 1.232 MB / 297.9 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.084e-05/0.03491, allocations: 118.8 kB / 298 MB, free: 12.05 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.911e-05/0.03501, allocations: 39.3 kB / 298.1 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.03518, allocations: 158.1 kB / 298.2 MB, free: 11.85 MB / 282.7 MB Notification: Performance of SimCode: time 7.31e-07/0.03518, allocations: 0 / 298.2 MB, free: 11.85 MB / 282.7 MB Notification: Performance of Templates: time 0.01092/0.0461, allocations: 9.649 MB / 307.9 MB, free: 2.305 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.997191126924008]