Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001521/0.001521, allocations: 119.9 kB / 17.79 MB, free: 5.285 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.001559/0.001559, allocations: 189.2 kB / 20.73 MB, free: 2.352 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 51.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1041, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004204/0.1083, allocations: 2.624 MB / 420.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007917/0.1091, allocations: 370.7 kB / 420.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.1093, allocations: 7.938 kB / 420.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.1095, allocations: 51.52 kB / 420.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.1097, allocations: 103.1 kB / 420.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003264/0.11, allocations: 87.83 kB / 421 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004199/0.1104, allocations: 378.3 kB / 421.4 MB, free: 9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.1106, allocations: 79.09 kB / 421.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002079/0.1108, allocations: 143.5 kB / 421.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.111, allocations: 171.3 kB / 421.8 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.064e-05/0.1111, allocations: 31.94 kB / 421.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.205e-05/0.1112, allocations: 32 kB / 421.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.1112, allocations: 67.77 kB / 421.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002365/0.1115, allocations: 167.2 kB / 422 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.1119, allocations: 370.5 kB / 422.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1119, allocations: 0 / 422.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1119, allocations: 0 / 422.4 MB, free: 7.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.014e-06/0.1119, allocations: 0 / 422.4 MB, free: 7.953 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.00114/0.113, allocations: 0.6427 MB / 423 MB, free: 7.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.1131, allocations: 12.03 kB / 423.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.824e-05/0.1131, allocations: 62.72 kB / 423.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.407e-05/0.1132, allocations: 36.75 kB / 423.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003986/0.1136, allocations: 271.7 kB / 423.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.487e-05/0.1136, allocations: 16.94 kB / 423.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.422e-05/0.1137, allocations: 36.31 kB / 423.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005334/0.1142, allocations: 277.3 kB / 423.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.1142, allocations: 7.938 kB / 423.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.743e-05/0.1143, allocations: 8 kB / 423.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.1143, allocations: 12 kB / 423.8 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005727/0.1149, allocations: 266.1 kB / 424 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001269/0.1161, allocations: 0.7837 MB / 424.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005932/0.1167, allocations: 342.6 kB / 425.2 MB, free: 5.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003355/0.117, allocations: 181.3 kB / 425.3 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.1171, allocations: 11.94 kB / 425.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.1171, allocations: 38.56 kB / 425.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.714e-06/0.1171, allocations: 0 / 425.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.004197/0.1213, allocations: 1.969 MB / 427.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.1214, allocations: 63.91 kB / 427.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/0.1216, allocations: 195 kB / 427.6 MB, free: 2.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.1216, allocations: 37.7 kB / 427.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.1217, allocations: 145.1 kB / 427.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.1219, allocations: 222.1 kB / 428 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.122, allocations: 94.23 kB / 428.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1222, allocations: 350.8 kB / 428.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003909/0.1226, allocations: 165 kB / 428.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003264/0.1229, allocations: 172.9 kB / 428.8 MB, free: 1.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000662/0.1236, allocations: 372 kB / 429.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1236, allocations: 0 / 429.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008264/0.1244, allocations: 490.8 kB / 429.6 MB, free: 444 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.1244, allocations: 8 kB / 429.6 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1244, allocations: 3.938 kB / 429.6 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1244, allocations: 0 / 429.6 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004625/0.1249, allocations: 119.9 kB / 429.7 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1249, allocations: 4 kB / 429.7 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.1251, allocations: 27.92 kB / 429.8 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.059e-05/0.1251, allocations: 16 kB / 429.8 MB, free: 264 kB / 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 (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.0001896/0.1253, allocations: 169.6 kB / 429.9 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.201e-05/0.1254, allocations: 31.81 kB / 430 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.1255, allocations: 43.34 kB / 430 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.237e-05/0.1255, allocations: 12.05 kB / 430 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.1255, allocations: 0 / 430 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.1255, allocations: 7.875 kB / 430 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001992/0.1275, allocations: 1.318 MB / 431.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.1275, allocations: 12.06 kB / 431.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004743/0.128, allocations: 127.7 kB / 431.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.128, allocations: 8 kB / 431.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.26e-05/0.128, allocations: 16 kB / 431.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.676e-06/0.1281, allocations: 8 kB / 431.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.19e-05/0.1281, allocations: 7.938 kB / 431.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.1294, allocations: 0.8801 MB / 432.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.218e-05/0.1295, allocations: 108.9 kB / 432.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.1296, allocations: 20.03 kB / 432.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.1298, allocations: 23.98 kB / 432.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.177e-05/0.1299, allocations: 59.58 kB / 432.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.1299, allocations: 20 kB / 432.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001289/0.1301, allocations: 140.4 kB / 432.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1301, allocations: 0 / 432.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004045/0.1305, allocations: 100 kB / 432.9 MB, free: 12.95 MB / 366.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.001721/0.1322, allocations: 1.445 MB / 434.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008688/0.133, allocations: 418.7 kB / 434.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.133, allocations: 0 / 434.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004291/0.1335, allocations: 239.5 kB / 435 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006658/0.1341, allocations: 92.94 kB / 435 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005329/0.1395, allocations: 3.687 MB / 438.7 MB, free: 6.805 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.14, allocations: 0.7933 MB / 439.5 MB, free: 5.988 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002185/0.1402, allocations: 47.25 kB / 439.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001993/0.1404, allocations: 123.4 kB / 439.7 MB, free: 5.824 MB / 366.1 MB Notification: Performance of SimCode: time 1.343e-06/0.1404, allocations: 0 / 439.7 MB, free: 5.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2195/0.3598, allocations: 7.533 MB / 447.2 MB, free: 31.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.469/8.829, allocations: 4.297 kB / 447.2 MB, free: 31.1 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.387332880869508]