Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009955/0.0009954, allocations: 93.95 kB / 271.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008263/0.0008264, allocations: 47.88 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.1997, allocations: 46.62 MB / 373.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003246/0.203, allocations: 3.018 MB / 376.8 MB, free: 43.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.2045, allocations: 1.198 MB / 378 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2046, allocations: 9.844 kB / 378 MB, free: 42.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.205, allocations: 61.52 kB / 378.1 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.2051, allocations: 101.2 kB / 378.2 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005712/0.2057, allocations: 365.6 kB / 378.6 MB, free: 42.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005088/0.2062, allocations: 0.7715 MB / 379.3 MB, free: 41.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.2064, allocations: 83.12 kB / 379.4 MB, free: 41.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.2067, allocations: 327.9 kB / 379.7 MB, free: 41.41 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.2078, allocations: 1.335 MB / 381.1 MB, free: 40.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.2079, allocations: 37.78 kB / 381.1 MB, free: 40.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.2081, allocations: 85.8 kB / 381.2 MB, free: 40.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.2083, allocations: 206.4 kB / 381.4 MB, free: 40.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002224/0.2085, allocations: 319.5 kB / 381.7 MB, free: 40.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005418/0.2091, allocations: 0.8255 MB / 382.5 MB, free: 39.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2091, allocations: 0 / 382.5 MB, free: 39.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.2091, allocations: 0 / 382.5 MB, free: 39.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.2091, allocations: 0 / 382.5 MB, free: 39.79 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003254/0.2124, allocations: 1.323 MB / 383.9 MB, free: 38.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2124, allocations: 8.469 kB / 383.9 MB, free: 38.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.2125, allocations: 79 kB / 383.9 MB, free: 38.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003927/0.2129, allocations: 428.5 kB / 384.4 MB, free: 38.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.524e-05/0.213, allocations: 28.94 kB / 384.4 MB, free: 38.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.187e-05/0.2131, allocations: 36.25 kB / 384.4 MB, free: 38.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.2145, allocations: 1.162 MB / 385.6 MB, free: 37.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.2146, allocations: 3.938 kB / 385.6 MB, free: 37.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.684e-05/0.2146, allocations: 16 kB / 385.6 MB, free: 37.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2146, allocations: 8 kB / 385.6 MB, free: 37.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001988/0.2166, allocations: 1.752 MB / 387.4 MB, free: 35.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003281/0.2199, allocations: 2.48 MB / 389.8 MB, free: 33.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.2212, allocations: 0.9069 MB / 390.7 MB, free: 32.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008429/0.2221, allocations: 0.7123 MB / 391.5 MB, free: 31.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.38e-05/0.2221, allocations: 4 kB / 391.5 MB, free: 31.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.2233, allocations: 0.9044 MB / 392.4 MB, free: 30.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 2.315e-06/0.2233, allocations: 0 / 392.4 MB, free: 30.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.008801/0.2321, allocations: 5.788 MB / 398.2 MB, free: 24.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.2321, allocations: 89.05 kB / 398.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007947/0.2329, allocations: 0.9102 MB / 399.2 MB, free: 23.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.805e-05/0.233, allocations: 49.69 kB / 399.2 MB, free: 23.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.2331, allocations: 308.2 kB / 399.5 MB, free: 23.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.2332, allocations: 161.9 kB / 399.7 MB, free: 23.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001906/0.2334, allocations: 118.2 kB / 399.8 MB, free: 23.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.774e-05/0.2335, allocations: 378.8 kB / 400.1 MB, free: 22.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009314/0.2345, allocations: 0.8525 MB / 401 MB, free: 21.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009675/0.2354, allocations: 0.9324 MB / 401.9 MB, free: 20.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.237, allocations: 1.455 MB / 403.4 MB, free: 19.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.237, allocations: 8 kB / 403.4 MB, free: 19.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002798/0.2398, allocations: 2.486 MB / 405.9 MB, free: 16.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.2398, allocations: 8 kB / 405.9 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2398, allocations: 0 / 405.9 MB, free: 16.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.2412, allocations: 1.912 MB / 407.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004667/0.2417, allocations: 111.8 kB / 407.9 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005511/0.2472, allocations: 6.349 MB / 414.3 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.2485, allocations: 227.8 kB / 414.5 MB, free: 8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.373e-05/0.2486, allocations: 27.97 kB / 414.5 MB, free: 7.973 MB / 298.7 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000302/0.2489, allocations: 264 kB / 414.8 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.689e-05/0.249, allocations: 71.16 kB / 414.8 MB, free: 7.633 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001678/0.2492, allocations: 102.1 kB / 414.9 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.2492, allocations: 8 kB / 414.9 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2492, allocations: 0 / 414.9 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2492, allocations: 3.984 kB / 414.9 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002966/0.2522, allocations: 3.095 MB / 418 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.2522, allocations: 0 / 418 MB, free: 4.352 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004349/0.2526, allocations: 91.94 kB / 418.1 MB, free: 4.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.2539, allocations: 1.861 MB / 420 MB, free: 2.391 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.404e-05/0.254, allocations: 23.97 kB / 420 MB, free: 2.367 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005566/0.2595, allocations: 6.094 MB / 426.1 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2595, allocations: 0 / 426.1 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02959/0.2891, allocations: 29.56 MB / 455.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/0.2895, allocations: 204.3 kB / 455.9 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.2897, allocations: 23.98 kB / 455.9 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001664/0.2913, allocations: 275.6 kB / 456.2 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001336/0.2927, allocations: 0.5459 MB / 456.7 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.815e-05/0.2928, allocations: 27.97 kB / 456.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006339/0.2934, allocations: 0.6787 MB / 457.4 MB, free: 12.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2935, allocations: 3.938 kB / 457.4 MB, free: 12.02 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001022/0.2945, allocations: 279.8 kB / 457.7 MB, free: 11.74 MB / 346.7 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004227/0.2949, allocations: 179.2 kB / 457.9 MB, free: 11.56 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002983/0.2979, allocations: 1.918 MB / 459.8 MB, free: 9.613 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.2979, allocations: 448 / 459.8 MB, free: 9.613 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.2996, allocations: 1.091 MB / 460.9 MB, free: 8.496 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006434/0.3003, allocations: 71.89 kB / 460.9 MB, free: 8.426 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004744/0.305, allocations: 2.859 MB / 463.8 MB, free: 5.48 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.3055, allocations: 0.9299 MB / 464.7 MB, free: 4.527 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002531/0.3058, allocations: 43.22 kB / 464.8 MB, free: 4.488 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.306, allocations: 47.41 kB / 464.8 MB, free: 4.441 MB / 346.7 MB Notification: Performance of SimCode: time 4.71e-07/0.306, allocations: 3.938 kB / 464.8 MB, free: 4.438 MB / 346.7 MB Notification: Performance of Templates: time 0.03669/0.3427, allocations: 28.83 MB / 493.7 MB, free: 7.586 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches