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.001275/0.001275, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.651/1.651, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3021, allocations: 50.55 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005258/0.3074, allocations: 3.098 MB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002702/0.3101, allocations: 1.34 MB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001961/0.3103, allocations: 4 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005734/0.311, allocations: 103.1 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.3112, allocations: 118.9 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009756/0.3122, allocations: 426.5 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009239/0.3132, allocations: 0.8153 MB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.3134, allocations: 109.5 kB / 414.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005527/0.3139, allocations: 371 kB / 415.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.3158, allocations: 1.471 MB / 416.6 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.3159, allocations: 68 kB / 416.6 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000266/0.3162, allocations: 128 kB / 416.8 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002768/0.3165, allocations: 247.7 kB / 417 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000362/0.3169, allocations: 354.1 kB / 417.4 MB, free: 8.914 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001124/0.318, allocations: 0.9057 MB / 418.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.318, allocations: 4 kB / 418.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.318, allocations: 0 / 418.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.318, 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.003889/0.3219, allocations: 1.374 MB / 419.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.345e-05/0.322, allocations: 8.031 kB / 419.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001455/0.3222, allocations: 74.72 kB / 419.7 MB, free: 6.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005671/0.3227, allocations: 108.4 kB / 419.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007445/0.3235, allocations: 444 kB / 420.3 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.958e-05/0.3235, allocations: 33.38 kB / 420.3 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.3237, allocations: 36.38 kB / 420.3 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.3252, allocations: 0.638 MB / 421 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.3252, allocations: 3.953 kB / 421 MB, free: 5.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.625e-05/0.3253, allocations: 16 kB / 421 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.3253, allocations: 8 kB / 421 MB, free: 5.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001957/0.3273, allocations: 0.6976 MB / 421.7 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003725/0.331, allocations: 1.655 MB / 423.4 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.3324, allocations: 496.8 kB / 423.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008289/0.3333, allocations: 301.6 kB / 424.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.726e-05/0.3333, allocations: 4 kB / 424.1 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001213/0.3346, allocations: 498.3 kB / 424.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 4.749e-06/0.3346, allocations: 4 kB / 424.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.009157/0.3437, allocations: 2.81 MB / 427.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.3438, allocations: 92.98 kB / 427.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.3449, allocations: 0.9142 MB / 428.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.3451, allocations: 49.69 kB / 428.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002811/0.3454, allocations: 304.7 kB / 428.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.3456, allocations: 182.7 kB / 429 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002453/0.3458, allocations: 114.3 kB / 429.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002327/0.346, allocations: 382.7 kB / 429.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009132/0.347, allocations: 329.1 kB / 429.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009787/0.348, allocations: 419 kB / 430.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.3495, allocations: 0.5069 MB / 430.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3495, allocations: 0 / 430.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002871/0.3524, allocations: 0.9951 MB / 431.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.3524, allocations: 8 kB / 431.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3524, allocations: 4 kB / 431.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/0.3535, allocations: 0.5413 MB / 432.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005398/0.3541, allocations: 115.8 kB / 432.3 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006747/0.3608, allocations: 4.748 MB / 437.1 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.3623, allocations: 223.8 kB / 437.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.129e-05/0.3623, allocations: 27.98 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.0004433/0.3628, allocations: 267.8 kB / 437.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.363, allocations: 75.53 kB / 437.7 MB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002034/0.3632, allocations: 98.2 kB / 437.8 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.3632, allocations: 8 kB / 437.8 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3632, allocations: 0 / 437.8 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3632, allocations: 3.984 kB / 437.8 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003185/0.3664, allocations: 1.42 MB / 439.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3664, allocations: 8.109 kB / 439.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004856/0.3669, allocations: 91.86 kB / 439.3 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009967/0.3679, allocations: 0.5099 MB / 439.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.194e-05/0.368, allocations: 23.95 kB / 439.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006099/0.3741, allocations: 4.36 MB / 444.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.3741, allocations: 4.031 kB / 444.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00372/0.3779, allocations: 1.273 MB / 445.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000403/0.3783, allocations: 212.6 kB / 445.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.3784, allocations: 24 kB / 445.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/0.3801, allocations: 271.5 kB / 446 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001487/0.3816, allocations: 0.5617 MB / 446.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-05/0.3817, allocations: 31.95 kB / 446.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008134/0.3825, allocations: 0.667 MB / 447.2 MB, free: 9.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3825, allocations: 0 / 447.2 MB, free: 9.746 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008874/0.3834, allocations: 183.9 kB / 447.4 MB, free: 9.566 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.005384/0.3888, allocations: 2.096 MB / 449.5 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002613/0.3914, allocations: 0.9725 MB / 450.5 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.3915, allocations: 0 / 450.5 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.3931, allocations: 0.668 MB / 451.1 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007273/0.3938, allocations: 84.48 kB / 451.2 MB, free: 5.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.4075, allocations: 6.821 MB / 458 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006637/0.4082, allocations: 0.9259 MB / 459 MB, free: 13.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002588/0.4085, allocations: 43.27 kB / 459 MB, free: 13.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003195/0.4088, allocations: 215.3 kB / 459.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4088, allocations: 4 kB / 459.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06816/0.477, allocations: 22.09 MB / 481.3 MB, free: 7.652 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.51, allocations: 11.86 kB / 481.3 MB, free: 7.645 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.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