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.0006777/0.0006778, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008453/0.0008454, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.7 MB / 246.8 MB, free: 9.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002539/0.0002537, allocations: 4 kB / 307.7 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09467/0.09494, allocations: 51.53 MB / 359.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003402/0.09838, allocations: 2.764 MB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002606/0.101, allocations: 1.317 MB / 363.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003742/0.1014, allocations: 4 kB / 363.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000523/0.102, allocations: 87.47 kB / 363.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.1024, allocations: 107.2 kB / 363.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009525/0.1034, allocations: 382.1 kB / 363.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008412/0.1042, allocations: 0.7723 MB / 364.7 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.1044, allocations: 93.42 kB / 364.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005783/0.105, allocations: 330.9 kB / 365.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001649/0.1067, allocations: 1.456 MB / 366.5 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001806/0.1069, allocations: 36 kB / 366.6 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002897/0.1072, allocations: 95.97 kB / 366.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002407/0.1074, allocations: 208.2 kB / 366.9 MB, free: 5.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003385/0.1078, allocations: 347.8 kB / 367.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008019/0.1086, allocations: 0.8449 MB / 368 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1086, allocations: 3.984 kB / 368.1 MB, free: 4.227 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1086, allocations: 8 kB / 368.1 MB, free: 4.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.1086, allocations: 0 / 368.1 MB, free: 4.219 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.003657/0.1123, allocations: 1.323 MB / 369.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1123, allocations: 15.97 kB / 369.4 MB, free: 2.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005249/0.1129, allocations: 99.98 kB / 369.5 MB, free: 2.734 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005406/0.1134, allocations: 431.4 kB / 369.9 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.218e-05/0.1135, allocations: 29.38 kB / 369.9 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.1136, allocations: 40.36 kB / 370 MB, free: 2.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.1151, allocations: 0.6538 MB / 370.6 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.1152, allocations: 0 / 370.6 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.561e-05/0.1153, allocations: 16 kB / 370.7 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.1153, allocations: 12 kB / 370.7 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001921/0.1172, allocations: 0.7327 MB / 371.4 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1832/0.3005, allocations: 1.718 MB / 373.1 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.302, allocations: 0.5157 MB / 373.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008546/0.3029, allocations: 315.8 kB / 373.9 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.945e-05/0.3029, allocations: 9.062 kB / 374 MB, free: 18.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001221/0.3041, allocations: 0.4936 MB / 374.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 1.884e-06/0.3042, allocations: 3 kB / 374.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.009146/0.3133, allocations: 3.065 MB / 377.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/0.3134, allocations: 85.95 kB / 377.6 MB, free: 17.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000927/0.3143, allocations: 0.9172 MB / 378.5 MB, free: 16.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.073e-05/0.3144, allocations: 48 kB / 378.6 MB, free: 16.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.3146, allocations: 299.5 kB / 378.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/0.3147, allocations: 171.2 kB / 379 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.932e-05/0.3148, allocations: 57.8 kB / 379.1 MB, free: 16.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.315, allocations: 379.1 kB / 379.4 MB, free: 16.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009082/0.3159, allocations: 342.8 kB / 379.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009748/0.3169, allocations: 438.2 kB / 380.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.3183, allocations: 0.5445 MB / 380.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3183, allocations: 1.781 kB / 380.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002803/0.3211, allocations: 1.031 MB / 381.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.3212, allocations: 5.656 kB / 381.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/0.3212, allocations: 6.406 kB / 381.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.3223, allocations: 0.5444 MB / 382.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005501/0.3228, allocations: 124.7 kB / 382.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00532/0.3282, allocations: 4.481 MB / 386.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.3298, allocations: 307.7 kB / 387.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.721e-05/0.3299, allocations: 23.41 kB / 387.3 MB, free: 11.15 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.0004541/0.3304, allocations: 253.2 kB / 387.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.3305, allocations: 74.14 kB / 387.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.3307, allocations: 113.3 kB / 387.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3308, allocations: 5.219 kB / 387.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/0.3308, allocations: 1.188 kB / 387.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.3308, allocations: 4.031 kB / 387.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003103/0.3339, allocations: 1.454 MB / 389.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3339, allocations: 5.25 kB / 389.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004765/0.3344, allocations: 95.67 kB / 389.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009968/0.3354, allocations: 0.51 MB / 389.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.679e-05/0.3355, allocations: 25.78 kB / 389.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004603/0.3401, allocations: 4.186 MB / 394 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3401, allocations: 0 / 394 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003505/0.3436, allocations: 1.318 MB / 395.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003025/0.3439, allocations: 218.4 kB / 395.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.344, allocations: 19.69 kB / 395.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001717/0.3458, allocations: 354.4 kB / 395.9 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001269/0.347, allocations: 0.5473 MB / 396.4 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.307e-05/0.3471, allocations: 29.62 kB / 396.5 MB, free: 5.098 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006877/0.3478, allocations: 0.673 MB / 397.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3478, allocations: 1.25 kB / 397.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008735/0.3487, allocations: 185.1 kB / 397.3 MB, free: 4.742 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.000874/0.3496, allocations: 387.3 kB / 397.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0021/0.3517, allocations: 0.9912 MB / 398.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3517, allocations: 6.219 kB / 398.7 MB, free: 3.953 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.3529, allocations: 0.6784 MB / 399.4 MB, free: 3.492 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006237/0.3536, allocations: 90.12 kB / 399.5 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003733/0.3573, allocations: 2.292 MB / 401.7 MB, free: 1.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.3577, allocations: 0.9261 MB / 402.7 MB, free: 1.094 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002132/0.3579, allocations: 43.28 kB / 402.7 MB, free: 1.047 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.358, allocations: 35.42 kB / 402.7 MB, free: 1.012 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.358, allocations: 8 kB / 402.8 MB, free: 1.004 MB / 302.1 MB Notification: Performance of Templates: time 0.02053/0.3786, allocations: 13.88 MB / 416.6 MB, free: 3.164 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches