Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 121.4 kB / 18.45 MB, free: 4.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 189.2 kB / 21.39 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 207.6 MB / 231.8 MB, free: 3.988 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 52.34 kB / 342.2 MB, free: 10.04 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.09679, allocations: 49.13 MB / 391.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003801/0.1006, allocations: 2.602 MB / 394 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007484/0.1013, allocations: 382.7 kB / 394.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1015, allocations: 7.938 kB / 394.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.1016, allocations: 47.5 kB / 394.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001797/0.1018, allocations: 99.12 kB / 394.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002941/0.1021, allocations: 91.81 kB / 394.6 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003996/0.1025, allocations: 370.4 kB / 394.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.1027, allocations: 83.09 kB / 395 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.1029, allocations: 147.5 kB / 395.2 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.1031, allocations: 167.2 kB / 395.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.544e-05/0.1031, allocations: 32 kB / 395.4 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.962e-05/0.1032, allocations: 28 kB / 395.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.855e-05/0.1033, allocations: 75.75 kB / 395.5 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.1034, allocations: 159.2 kB / 395.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.1038, allocations: 374.5 kB / 396 MB, free: 4.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1038, allocations: 3.938 kB / 396 MB, free: 4.102 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1038, allocations: 0 / 396 MB, free: 4.102 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.1038, allocations: 0 / 396 MB, free: 4.102 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001092/0.1049, allocations: 0.635 MB / 396.6 MB, free: 3.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.105, allocations: 8.031 kB / 396.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.271e-05/0.1051, allocations: 66.72 kB / 396.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.204e-05/0.1051, allocations: 44.7 kB / 396.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003878/0.1055, allocations: 267.6 kB / 397 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.897e-05/0.1055, allocations: 28.88 kB / 397 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.904e-05/0.1056, allocations: 32.33 kB / 397.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005284/0.1061, allocations: 273.4 kB / 397.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.1062, allocations: 3.938 kB / 397.3 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.1062, allocations: 16 kB / 397.3 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-06/0.1062, allocations: 8 kB / 397.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005569/0.1067, allocations: 266.1 kB / 397.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.108, allocations: 0.7836 MB / 398.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.1086, allocations: 338.8 kB / 398.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000333/0.1089, allocations: 172.7 kB / 398.9 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.587e-05/0.1089, allocations: 15.97 kB / 398.9 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.109, allocations: 42.5 kB / 399 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.693e-06/0.109, allocations: 0 / 399 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004139/0.1131, allocations: 1.97 MB / 400.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.1131, allocations: 59.91 kB / 401 MB, free: 14.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.1134, allocations: 199 kB / 401.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.1134, allocations: 33.7 kB / 401.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1135, allocations: 145.2 kB / 401.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.1137, allocations: 226 kB / 401.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.1138, allocations: 94.23 kB / 401.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.114, allocations: 346.7 kB / 402 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.1143, allocations: 165 kB / 402.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003345/0.1147, allocations: 165 kB / 402.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006974/0.1154, allocations: 376 kB / 402.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.1154, allocations: 0 / 402.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008569/0.1162, allocations: 498.8 kB / 403.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.1162, allocations: 15.78 kB / 403.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1162, allocations: 0 / 403.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1163, allocations: 4 kB / 403.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.1167, allocations: 115.9 kB / 403.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.1167, allocations: 7.938 kB / 403.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.1169, allocations: 27.92 kB / 403.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.117, allocations: 19.98 kB / 403.4 MB, free: 12.39 MB / 334.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 (69): * Single equations (assignments): 69 * 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.0001774/0.1171, allocations: 157.7 kB / 403.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.708e-05/0.1172, allocations: 39.81 kB / 403.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.1173, allocations: 47.33 kB / 403.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.1173, allocations: 4 kB / 403.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.1173, allocations: 0 / 403.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.1173, allocations: 7.938 kB / 403.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002007/0.1193, allocations: 1.31 MB / 404.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.1193, allocations: 4 kB / 404.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004914/0.1198, allocations: 131.7 kB / 405.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.1198, allocations: 4 kB / 405.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.1199, allocations: 20 kB / 405.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.1199, allocations: 4 kB / 405.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/0.1199, allocations: 11.94 kB / 405.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.1212, allocations: 0.8762 MB / 406 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.1213, allocations: 112.9 kB / 406.1 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.464e-05/0.1214, allocations: 20.03 kB / 406.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.1216, allocations: 27.98 kB / 406.1 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9e-05/0.1217, allocations: 55.58 kB / 406.2 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/0.1218, allocations: 23.98 kB / 406.2 MB, free: 9.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001387/0.1219, allocations: 144.4 kB / 406.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1219, allocations: 0 / 406.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003859/0.1223, allocations: 92 kB / 406.4 MB, free: 9.098 MB / 334.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 (63): * Single equations (assignments): 63 * 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.00171/0.124, allocations: 1.439 MB / 407.9 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008089/0.1248, allocations: 418.7 kB / 408.3 MB, free: 7.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1248, allocations: 0 / 408.3 MB, free: 7.164 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004338/0.1252, allocations: 244.8 kB / 408.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000629/0.1259, allocations: 100 kB / 408.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005325/0.1312, allocations: 3.689 MB / 412.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.1317, allocations: 0.7972 MB / 413.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001905/0.1319, allocations: 43.27 kB / 413.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.1321, allocations: 119.4 kB / 413.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1321, allocations: 0 / 413.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03454/0.1666, allocations: 7.523 MB / 420.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.438/8.605, allocations: 8 kB / 420.8 MB, free: 10.38 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.072813153732568]