Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.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.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001704/0.001704, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001683/0.001683, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00241/0.00241, allocations: 67.88 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3111, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.005196/0.3164, allocations: 3.648 MB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.3186, allocations: 0.951 MB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002707/0.3189, allocations: 11.94 kB / 413.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002461/0.3191, allocations: 87.09 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003327/0.3195, allocations: 150.6 kB / 413.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004992/0.32, allocations: 171.6 kB / 413.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000696/0.3207, allocations: 0.6268 MB / 414.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003344/0.321, allocations: 197.4 kB / 414.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003704/0.3214, allocations: 251.1 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003709/0.3218, allocations: 282.8 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.8e-05/0.3219, allocations: 52 kB / 415.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.322, allocations: 52 kB / 415.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.3221, allocations: 123.6 kB / 415.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.3224, allocations: 282.6 kB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007332/0.3231, allocations: 0.6253 MB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3232, allocations: 4 kB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3232, allocations: 0 / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.3232, allocations: 0 / 416.2 MB, free: 10.04 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001557/0.3247, allocations: 0.849 MB / 417.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3248, allocations: 12.03 kB / 417.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.3249, allocations: 94.7 kB / 417.2 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001984/0.3251, allocations: 68.55 kB / 417.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005307/0.3257, allocations: 358.7 kB / 417.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.3257, allocations: 41 kB / 417.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.745e-05/0.3258, allocations: 51.95 kB / 417.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007461/0.3266, allocations: 418.4 kB / 418.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.3266, allocations: 0 / 418.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.705e-05/0.3267, allocations: 20 kB / 418.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.3267, allocations: 15.94 kB / 418.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007334/0.3274, allocations: 387.8 kB / 418.5 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.3299, allocations: 1.383 MB / 419.9 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008433/0.3307, allocations: 0.511 MB / 420.4 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006814/0.3314, allocations: 344.2 kB / 420.7 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.3315, allocations: 12.64 kB / 420.8 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.3315, allocations: 47.16 kB / 420.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=71): time 3.848e-06/0.3315, allocations: 0 / 420.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=107): time 0.006676/0.3382, allocations: 3.02 MB / 423.8 MB, free: 2.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.3383, allocations: 64.41 kB / 423.9 MB, free: 2.098 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003264/0.3386, allocations: 272.6 kB / 424.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.354e-05/0.3387, allocations: 45.7 kB / 424.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.3389, allocations: 217.5 kB / 424.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/0.3392, allocations: 376.7 kB / 424.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002229/0.3394, allocations: 154.6 kB / 424.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.3396, allocations: 362.8 kB / 425.3 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000446/0.34, allocations: 237.9 kB / 425.5 MB, free: 440 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005156/0.3406, allocations: 317.4 kB / 425.8 MB, free: 112 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.3416, allocations: 0.5805 MB / 426.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3416, allocations: 0 / 426.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.001275/0.3429, allocations: 0.7315 MB / 427.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.3429, allocations: 7.984 kB / 427.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3429, allocations: 0 / 427.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.3429, allocations: 4 kB / 427.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007732/0.3437, allocations: 207.7 kB / 427.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3437, allocations: 4 kB / 427.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.344, allocations: 27.98 kB / 427.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.267e-05/0.3441, allocations: 31.98 kB / 427.4 MB, free: 14.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (outerContactB.contact,outerContactA.contact,innerContactB.contact,innerContactA.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.3444, allocations: 197.6 kB / 427.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.3445, allocations: 59.67 kB / 427.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.3447, allocations: 77.62 kB / 427.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.3447, allocations: 8 kB / 427.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.3447, allocations: 4 kB / 427.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.3447, allocations: 7.984 kB / 427.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.3477, allocations: 1.941 MB / 429.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.3477, allocations: 4 kB / 429.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007863/0.3485, allocations: 191.7 kB / 429.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-05/0.3485, allocations: 12 kB / 429.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.451e-05/0.3486, allocations: 31.98 kB / 429.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.424e-05/0.3486, allocations: 15.92 kB / 430 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/0.3486, allocations: 8 kB / 430 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.3506, allocations: 1.299 MB / 431.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.3508, allocations: 136.8 kB / 431.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.552e-05/0.3508, allocations: 20 kB / 431.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003526/0.3512, allocations: 35.98 kB / 431.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.3513, allocations: 80.78 kB / 431.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.745e-05/0.3514, allocations: 28 kB / 431.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002141/0.3516, allocations: 199.1 kB / 431.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3516, allocations: 0 / 431.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005505/0.3522, allocations: 160 kB / 431.9 MB, free: 9.801 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002369/0.3546, allocations: 1.862 MB / 433.8 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.3559, allocations: 0.6724 MB / 434.4 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.3559, allocations: 4.125 kB / 434.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000691/0.3566, allocations: 417.4 kB / 434.8 MB, free: 6.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008852/0.3575, allocations: 152.6 kB / 435 MB, free: 6.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007832/0.3653, allocations: 5.249 MB / 440.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005996/0.366, allocations: 0.884 MB / 441.1 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003619/0.3663, allocations: 85.2 kB / 441.2 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003759/0.3667, allocations: 215.4 kB / 441.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3667, allocations: 0 / 441.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04395/0.4107, allocations: 12.31 MB / 453.7 MB, free: 3.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.871/9.282, allocations: 15.86 kB / 453.7 MB, free: 3.809 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches