Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001328/0.001328, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 227.4 MB / 247.5 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 59.92 kB / 307.6 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1114, allocations: 50.54 MB / 358.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004913/0.1163, allocations: 3.105 MB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002482/0.1189, allocations: 1.343 MB / 362.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.1191, allocations: 8 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005077/0.1197, allocations: 99.16 kB / 362.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002657/0.1199, allocations: 126.9 kB / 362.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.1209, allocations: 414.3 kB / 363.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008694/0.1218, allocations: 0.8153 MB / 364.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.1221, allocations: 113.5 kB / 364.2 MB, free: 8.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005676/0.1226, allocations: 371.1 kB / 364.6 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00174/0.1244, allocations: 1.463 MB / 366 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.1246, allocations: 72 kB / 366.1 MB, free: 6.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003182/0.1249, allocations: 128 kB / 366.2 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002822/0.1252, allocations: 235.8 kB / 366.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003732/0.1256, allocations: 358 kB / 366.8 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.1266, allocations: 0.892 MB / 367.7 MB, free: 4.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1266, allocations: 7.984 kB / 367.7 MB, free: 4.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1266, allocations: 0 / 367.7 MB, free: 4.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.1266, allocations: 0 / 367.7 MB, free: 4.543 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003859/0.1305, allocations: 1.34 MB / 369 MB, free: 3.152 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1305, allocations: 16.03 kB / 369 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004986/0.131, allocations: 104 kB / 369.1 MB, free: 3.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005773/0.1316, allocations: 435.4 kB / 369.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.491e-05/0.1317, allocations: 29.38 kB / 369.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.955e-05/0.1318, allocations: 40.28 kB / 369.6 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.1333, allocations: 0.6343 MB / 370.3 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.1334, allocations: 4 kB / 370.3 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-05/0.1335, allocations: 19.98 kB / 370.3 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.1335, allocations: 8 kB / 370.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/0.1355, allocations: 0.6953 MB / 371 MB, free: 1.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1676/0.3031, allocations: 1.648 MB / 372.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.3046, allocations: 0.4904 MB / 373.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008461/0.3055, allocations: 299.7 kB / 373.4 MB, free: 19.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.723e-05/0.3055, allocations: 11 kB / 373.4 MB, free: 19.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00127/0.3068, allocations: 485.8 kB / 373.9 MB, free: 19.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.715e-06/0.3068, allocations: 0 / 373.9 MB, free: 19.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.009129/0.316, allocations: 2.803 MB / 376.7 MB, free: 18.22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.381e-05/0.316, allocations: 87.31 kB / 376.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009494/0.317, allocations: 0.9141 MB / 377.7 MB, free: 17.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.096e-05/0.3171, allocations: 52 kB / 377.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/0.3173, allocations: 301.4 kB / 378.1 MB, free: 17.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.3175, allocations: 173.8 kB / 378.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/0.3177, allocations: 120.6 kB / 378.4 MB, free: 17.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3178, allocations: 385.2 kB / 378.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008725/0.3187, allocations: 326.2 kB / 379 MB, free: 16.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009047/0.3196, allocations: 413.7 kB / 379.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.321, allocations: 0.5137 MB / 380 MB, free: 16.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.3211, allocations: 2.094 kB / 380 MB, free: 16.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002702/0.3238, allocations: 1.004 MB / 381 MB, free: 16.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3238, allocations: 4.812 kB / 381 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3238, allocations: 2.531 kB / 381 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.3249, allocations: 0.5478 MB / 381.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005306/0.3254, allocations: 112.1 kB / 381.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005626/0.331, allocations: 4.724 MB / 386.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/0.3327, allocations: 224.2 kB / 386.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.42e-05/0.3328, allocations: 27.7 kB / 386.6 MB, free: 11.7 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003981/0.3332, allocations: 266 kB / 386.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.3333, allocations: 70.3 kB / 386.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001819/0.3335, allocations: 101.2 kB / 387 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/0.3335, allocations: 6.203 kB / 387 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.3335, allocations: 3.062 kB / 387 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.3335, allocations: 4.141 kB / 387 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003038/0.3366, allocations: 1.415 MB / 388.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.3366, allocations: 1.891 kB / 388.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004993/0.3371, allocations: 85.92 kB / 388.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000936/0.3381, allocations: 0.5193 MB / 389.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.225e-05/0.3381, allocations: 23.67 kB / 389.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004589/0.3427, allocations: 4.365 MB / 393.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3428, allocations: 4.469 kB / 393.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003475/0.3462, allocations: 1.263 MB / 394.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003458/0.3466, allocations: 211.8 kB / 394.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.3468, allocations: 24.77 kB / 395 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/0.3485, allocations: 267.6 kB / 395.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001255/0.3497, allocations: 0.5661 MB / 395.8 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.098e-05/0.3498, allocations: 25.38 kB / 395.8 MB, free: 5.492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007033/0.3505, allocations: 0.6702 MB / 396.5 MB, free: 5.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3505, allocations: 0 / 396.5 MB, free: 5.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008724/0.3514, allocations: 182.7 kB / 396.7 MB, free: 5.141 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001324/0.3527, allocations: 403.8 kB / 397 MB, free: 4.934 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002433/0.3552, allocations: 0.9911 MB / 398 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.3552, allocations: 0 / 398 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.3565, allocations: 0.62 MB / 398.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007224/0.3572, allocations: 76.95 kB / 398.7 MB, free: 3.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004215/0.3614, allocations: 1.949 MB / 400.7 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.3618, allocations: 0.9284 MB / 401.6 MB, free: 1.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.3619, allocations: 47.77 kB / 401.7 MB, free: 1.859 MB / 302.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3619, allocations: 0 / 401.7 MB, free: 1.859 MB / 302.1 MB Notification: Performance of Templates: time 0.02016/0.3821, allocations: 14.14 MB / 415.8 MB, free: 4.398 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches