Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.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.001601/0.001601, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001917/0.001917, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.462/1.462, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] 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.ElastoGap,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 51.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1186, allocations: 53.33 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004399/0.123, allocations: 2.683 MB / 429 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.1244, allocations: 0.7364 MB / 429.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.1245, allocations: 11.94 kB / 429.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.1247, allocations: 43.52 kB / 429.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.125, allocations: 107 kB / 429.9 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003003/0.1253, allocations: 95.81 kB / 430 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004351/0.1257, allocations: 390.3 kB / 430.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002251/0.1259, allocations: 79.11 kB / 430.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.1261, allocations: 151.5 kB / 430.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.1264, allocations: 171.2 kB / 430.7 MB, free: 344 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.74e-05/0.1264, allocations: 32 kB / 430.8 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.654e-05/0.1265, allocations: 28 kB / 430.8 MB, free: 284 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.9e-05/0.1266, allocations: 75.75 kB / 430.9 MB, free: 208 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.1268, allocations: 167.2 kB / 431 MB, free: 40 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.209/0.3358, allocations: 382.6 kB / 431.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3358, allocations: 0 / 431.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3358, allocations: 0 / 431.4 MB, free: 7.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.335e-06/0.3358, allocations: 1.75 kB / 431.4 MB, free: 7.945 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0008902/0.3367, allocations: 0.634 MB / 432.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3367, allocations: 9.594 kB / 432.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.549e-05/0.3368, allocations: 69.34 kB / 432.1 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.632e-05/0.3368, allocations: 39.66 kB / 432.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.3371, allocations: 264.5 kB / 432.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.3372, allocations: 25.06 kB / 432.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.3372, allocations: 31.8 kB / 432.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/0.3376, allocations: 264.5 kB / 432.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.3376, allocations: 2.031 kB / 432.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.3377, allocations: 9.281 kB / 432.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.3377, allocations: 8.438 kB / 432.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003759/0.3381, allocations: 233.3 kB / 433 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.3391, allocations: 0.8008 MB / 433.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004271/0.3395, allocations: 310.3 kB / 434.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.3398, allocations: 160.2 kB / 434.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.3398, allocations: 9.406 kB / 434.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.605e-05/0.3398, allocations: 40.59 kB / 434.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.513e-06/0.3398, allocations: 0 / 434.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003481/0.3433, allocations: 1.91 MB / 436.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.3434, allocations: 64.06 kB / 436.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.3435, allocations: 211.6 kB / 436.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.3436, allocations: 37.95 kB / 436.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.744e-05/0.3436, allocations: 146.6 kB / 436.7 MB, free: 5.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.3438, allocations: 235.3 kB / 436.9 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.3439, allocations: 93.91 kB / 437 MB, free: 5.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.344e-05/0.344, allocations: 346.4 kB / 437.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.3442, allocations: 143.7 kB / 437.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/0.3444, allocations: 155.8 kB / 437.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000478/0.3449, allocations: 351.9 kB / 438 MB, free: 5.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3449, allocations: 1.188 kB / 438 MB, free: 5.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006273/0.3455, allocations: 467.4 kB / 438.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.3455, allocations: 7.875 kB / 438.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.3456, allocations: 0 / 438.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.3456, allocations: 4 kB / 438.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004326/0.346, allocations: 113.5 kB / 438.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.346, allocations: 7.484 kB / 438.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.3462, allocations: 14.64 kB / 438.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.3462, allocations: 20.28 kB / 438.6 MB, free: 4.953 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap2.contact,elastoGap1.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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.0001298/0.3463, allocations: 168.5 kB / 438.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.964e-05/0.3464, allocations: 38.42 kB / 438.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001106/0.3465, allocations: 54.31 kB / 438.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.3465, allocations: 7.453 kB / 438.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.3465, allocations: 3.938 kB / 438.8 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3465, allocations: 4.516 kB / 438.8 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.3481, allocations: 1.29 MB / 440.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3482, allocations: 4.594 kB / 440.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004454/0.3486, allocations: 122.1 kB / 440.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.3486, allocations: 7.062 kB / 440.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/0.3486, allocations: 17.66 kB / 440.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.064e-05/0.3486, allocations: 11.66 kB / 440.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.3487, allocations: 4.375 kB / 440.3 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.3497, allocations: 0.8434 MB / 441.1 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.985e-05/0.3497, allocations: 113.3 kB / 441.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.818e-05/0.3498, allocations: 23.53 kB / 441.3 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.35, allocations: 18.55 kB / 441.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.3501, allocations: 51.94 kB / 441.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.208e-05/0.3502, allocations: 21.2 kB / 441.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001184/0.3503, allocations: 148.1 kB / 441.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3503, allocations: 1.094 kB / 441.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000401/0.3507, allocations: 99.41 kB / 441.6 MB, free: 3.152 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 65 * 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.001135/0.3518, allocations: 1.401 MB / 443 MB, free: 2.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006383/0.3525, allocations: 383.4 kB / 443.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3525, allocations: 5.094 kB / 443.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003237/0.3528, allocations: 229.1 kB / 443.6 MB, free: 1.898 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006436/0.3534, allocations: 93.3 kB / 443.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004093/0.3575, allocations: 3.675 MB / 447.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.358, allocations: 0.8008 MB / 448.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001919/0.3582, allocations: 48.78 kB / 448.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.3584, allocations: 128.6 kB / 448.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3584, allocations: 0 / 448.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03827/0.3967, allocations: 7.899 MB / 456.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.324/8.721, allocations: 6.5 kB / 456.3 MB, free: 12.91 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.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: 11.043838957091793]