Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008327/0.0008327, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009581/0.0009581, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8585/0.8585, allocations: 177.1 MB / 204.3 MB, free: 5.699 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.285e-05/1.406e-05, allocations: 4.812 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.002987/0.003001, allocations: 3.341 MB / 327.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.004286, allocations: 0.9275 MB / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.004457, allocations: 11.94 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.004616, allocations: 79.16 kB / 328.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.004832, allocations: 182.3 kB / 329.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003625/0.005195, allocations: 167.6 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000401/0.005596, allocations: 0.642 MB / 329.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.005799, allocations: 134 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003499/0.006149, allocations: 375.2 kB / 330.4 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002128/0.006362, allocations: 215.3 kB / 330.6 MB, free: 9.848 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.189e-05/0.006414, allocations: 52 kB / 330.7 MB, free: 9.797 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.838e-05/0.006492, allocations: 59.94 kB / 330.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.006551, allocations: 123.5 kB / 330.8 MB, free: 9.617 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.006675, allocations: 199.5 kB / 331 MB, free: 9.422 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000452/0.007127, allocations: 0.6346 MB / 331.7 MB, free: 8.785 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.00713, allocations: 4 kB / 331.7 MB, free: 8.781 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.007131, allocations: 0 / 331.7 MB, free: 8.781 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.007138, allocations: 0 / 331.7 MB, free: 8.781 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.0009175/0.008056, allocations: 0.7766 MB / 332.4 MB, free: 7.977 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.008093, allocations: 8.031 kB / 332.5 MB, free: 7.969 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.886e-05/0.008162, allocations: 94.7 kB / 332.5 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.008287, allocations: 72.55 kB / 332.6 MB, free: 7.797 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003132/0.0086, allocations: 281.4 kB / 332.9 MB, free: 7.492 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.00863, allocations: 41.12 kB / 332.9 MB, free: 7.449 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-05/0.008683, allocations: 51.95 kB / 333 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004658/0.009149, allocations: 426.3 kB / 333.4 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.009166, allocations: 4 kB / 333.4 MB, free: 6.973 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/0.009193, allocations: 16 kB / 333.4 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.009202, allocations: 12 kB / 333.4 MB, free: 6.945 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00045/0.009652, allocations: 383.8 kB / 333.8 MB, free: 6.574 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.01113, allocations: 1.243 MB / 335 MB, free: 5.277 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005095/0.01164, allocations: 476 kB / 335.5 MB, free: 4.801 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00041/0.01205, allocations: 308.1 kB / 335.8 MB, free: 4.496 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.191e-05/0.01208, allocations: 8.656 kB / 335.8 MB, free: 4.488 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.0121, allocations: 39.22 kB / 335.9 MB, free: 4.441 MB / 298.7 MB Notification: Performance of pre-optimization done (n=71): time 1.703e-06/0.0121, allocations: 3.938 kB / 335.9 MB, free: 4.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=107): time 0.00418/0.01628, allocations: 2.874 MB / 338.7 MB, free: 1.516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.01633, allocations: 64.34 kB / 338.8 MB, free: 1.441 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.01652, allocations: 280.5 kB / 339.1 MB, free: 1.156 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.01655, allocations: 41.7 kB / 339.1 MB, free: 1.109 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.01666, allocations: 209.5 kB / 339.3 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000175/0.01684, allocations: 376.7 kB / 339.7 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.01697, allocations: 158.7 kB / 339.8 MB, free: 376 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.01709, allocations: 358.8 kB / 340.2 MB, free: 8 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002917/0.01738, allocations: 241.9 kB / 340.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003073/0.01769, allocations: 313.4 kB / 340.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006053/0.01829, allocations: 0.5804 MB / 341.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.01829, allocations: 0 / 341.3 MB, free: 14.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.0007394/0.01903, allocations: 0.7393 MB / 342.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003162/0.01935, allocations: 4 kB / 342.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.01936, allocations: 0 / 342.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.01937, allocations: 8 kB / 342.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.01976, allocations: 195.7 kB / 342.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.01977, allocations: 7.984 kB / 342.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.0199, allocations: 31.98 kB / 342.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.01993, allocations: 28 kB / 342.3 MB, free: 13.85 MB / 314.7 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.000172/0.0201, allocations: 201.7 kB / 342.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.867e-05/0.02016, allocations: 71.55 kB / 342.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.963e-05/0.02025, allocations: 73.64 kB / 342.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.944e-06/0.02025, allocations: 15.98 kB / 342.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.02026, allocations: 0 / 342.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.02027, allocations: 3.984 kB / 342.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.02199, allocations: 1.797 MB / 344.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.022, allocations: 4 kB / 344.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003789/0.02238, allocations: 192.2 kB / 344.7 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.02238, allocations: 8 kB / 344.7 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.02241, allocations: 39.98 kB / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.02242, allocations: 8 kB / 344.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.02242, allocations: 11.94 kB / 344.7 MB, free: 11.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.02357, allocations: 1.275 MB / 346 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.195e-05/0.02362, allocations: 59.62 kB / 346.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.599e-05/0.02367, allocations: 23.98 kB / 346.1 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.02383, allocations: 39.98 kB / 346.1 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.265e-05/0.02391, allocations: 76.75 kB / 346.2 MB, free: 9.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.843e-05/0.02394, allocations: 35.98 kB / 346.2 MB, free: 9.734 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001142/0.02406, allocations: 195.1 kB / 346.4 MB, free: 9.547 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02406, allocations: 3.938 kB / 346.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000312/0.02437, allocations: 163.9 kB / 346.6 MB, free: 9.383 MB / 314.7 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.001278/0.02565, allocations: 1.858 MB / 348.5 MB, free: 7.438 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006627/0.02631, allocations: 0.6333 MB / 349.1 MB, free: 6.805 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.02631, allocations: 0 / 349.1 MB, free: 6.805 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006209/0.02693, allocations: 390.6 kB / 349.5 MB, free: 6.426 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005006/0.02743, allocations: 139.2 kB / 349.6 MB, free: 6.293 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004463/0.0319, allocations: 5.139 MB / 354.7 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000185/0.03208, allocations: 284.9 kB / 355 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002153/0.0323, allocations: 81.2 kB / 355.1 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.0325, allocations: 212.4 kB / 355.3 MB, free: 352 kB / 314.7 MB Notification: Performance of SimCode: time 4.51e-07/0.0325, allocations: 4 kB / 355.3 MB, free: 348 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02503/0.05753, allocations: 13.56 MB / 368.9 MB, free: 3.031 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.675/6.733, allocations: 3.938 kB / 368.9 MB, free: 3.027 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.355225040577352]