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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001197/0.001197, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 67.88 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2925, allocations: 50.54 MB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005037/0.2976, allocations: 3.103 MB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002616/0.3002, allocations: 1.332 MB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002542/0.3005, allocations: 7.938 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005292/0.3011, allocations: 111.1 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002665/0.3014, allocations: 115 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.3024, allocations: 422.1 kB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008534/0.3033, allocations: 0.8231 MB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.3035, allocations: 97.56 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006561/0.3042, allocations: 383 kB / 415.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001733/0.3059, allocations: 1.467 MB / 416.6 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.3061, allocations: 68 kB / 416.6 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002707/0.3063, allocations: 136 kB / 416.8 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002333/0.3066, allocations: 231.8 kB / 417 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003921/0.307, allocations: 354.1 kB / 417.4 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.308, allocations: 0.9135 MB / 418.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3081, allocations: 4 kB / 418.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3081, allocations: 0 / 418.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.3081, allocations: 0 / 418.3 MB, free: 8.004 MB / 334.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.003997/0.3121, allocations: 1.362 MB / 419.6 MB, free: 6.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.3121, allocations: 8.031 kB / 419.6 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.3123, allocations: 82.7 kB / 419.7 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005073/0.3128, allocations: 104.4 kB / 419.8 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006992/0.3135, allocations: 447.9 kB / 420.3 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.881e-05/0.3136, allocations: 29.38 kB / 420.3 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-05/0.3137, allocations: 40.38 kB / 420.3 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.3152, allocations: 0.6341 MB / 421 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/0.3152, allocations: 11.94 kB / 421 MB, free: 5.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-05/0.3153, allocations: 16 kB / 421 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.3153, allocations: 12 kB / 421 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/0.3173, allocations: 0.6898 MB / 421.7 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003643/0.3209, allocations: 1.663 MB / 423.4 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.3225, allocations: 0.4891 MB / 423.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008415/0.3233, allocations: 297.6 kB / 424.1 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.521e-05/0.3234, allocations: 11.98 kB / 424.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001164/0.3246, allocations: 494.2 kB / 424.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.285e-06/0.3246, allocations: 0 / 424.6 MB, free: 1.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.009477/0.3341, allocations: 2.818 MB / 427.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.3342, allocations: 81.11 kB / 427.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009613/0.3351, allocations: 0.9219 MB / 428.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.617e-05/0.3352, allocations: 49.69 kB / 428.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.3355, allocations: 304.7 kB / 428.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.3357, allocations: 174.7 kB / 429 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.336, allocations: 118.3 kB / 429.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002411/0.3362, allocations: 390.7 kB / 429.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009849/0.3372, allocations: 317.1 kB / 429.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009764/0.3382, allocations: 422.8 kB / 430.2 MB, free: 11.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.3397, allocations: 0.5079 MB / 430.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3397, allocations: 4 kB / 430.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00278/0.3425, allocations: 0.9927 MB / 431.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3425, allocations: 4 kB / 431.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.3425, allocations: 4 kB / 431.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.3436, allocations: 0.5451 MB / 432.2 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005057/0.3441, allocations: 115.8 kB / 432.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006251/0.3504, allocations: 4.74 MB / 437.1 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.3519, allocations: 231.7 kB / 437.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.899e-05/0.352, allocations: 20 kB / 437.3 MB, free: 4.086 MB / 350.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.0004184/0.3524, allocations: 263.8 kB / 437.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.3526, allocations: 79.52 kB / 437.7 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001766/0.3528, allocations: 106.2 kB / 437.8 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3528, allocations: 8 kB / 437.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3528, allocations: 0 / 437.8 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3528, allocations: 3.984 kB / 437.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003012/0.3558, allocations: 1.42 MB / 439.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3558, allocations: 0 / 439.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004862/0.3563, allocations: 87.94 kB / 439.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009223/0.3573, allocations: 0.5177 MB / 439.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.754e-05/0.3573, allocations: 19.97 kB / 439.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005447/0.3628, allocations: 4.368 MB / 444.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3628, allocations: 0 / 444.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003466/0.3663, allocations: 1.273 MB / 445.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003647/0.3667, allocations: 208.6 kB / 445.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.3668, allocations: 20 kB / 445.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001727/0.3685, allocations: 275.6 kB / 446 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001305/0.3699, allocations: 0.5733 MB / 446.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.621e-05/0.37, allocations: 27.97 kB / 446.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006678/0.3706, allocations: 0.6709 MB / 447.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3706, allocations: 0 / 447.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007893/0.3714, allocations: 183.9 kB / 447.4 MB, free: 9.555 MB / 366.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.004576/0.376, allocations: 2.09 MB / 449.5 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002396/0.3784, allocations: 0.9764 MB / 450.5 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.3785, allocations: 4 kB / 450.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.38, allocations: 0.6614 MB / 451.1 MB, free: 5.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007042/0.3807, allocations: 92.02 kB / 451.2 MB, free: 5.758 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/0.3939, allocations: 6.806 MB / 458 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.3944, allocations: 0.9298 MB / 459 MB, free: 13.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002564/0.3947, allocations: 51.25 kB / 459 MB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003078/0.395, allocations: 215.3 kB / 459.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.395, allocations: 0 / 459.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07819/0.4732, allocations: 22.1 MB / 481.3 MB, free: 7.633 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/13.05, allocations: 15.75 kB / 481.4 MB, free: 7.621 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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