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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 100.3 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB 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.001155/0.001155, allocations: 51.92 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06862/0.06978, allocations: 46.63 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003316/0.07313, allocations: 2.588 MB / 330 MB, free: 1.785 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006913/0.07384, allocations: 374.7 kB / 330.3 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.074, allocations: 4 kB / 330.3 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.07418, allocations: 63.44 kB / 330.4 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.07436, allocations: 87.12 kB / 330.5 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002804/0.07465, allocations: 91.81 kB / 330.6 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.075, allocations: 378.4 kB / 330.9 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.0752, allocations: 127 kB / 331.1 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.07535, allocations: 135.5 kB / 331.2 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.07552, allocations: 167.3 kB / 331.4 MB, free: 392 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.924e-05/0.07558, allocations: 28 kB / 331.4 MB, free: 364 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.134e-05/0.07564, allocations: 36 kB / 331.4 MB, free: 328 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.994e-05/0.07569, allocations: 67.77 kB / 331.5 MB, free: 260 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.07583, allocations: 167.2 kB / 331.7 MB, free: 92 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.07614, allocations: 366.7 kB / 332 MB, free: 15.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.07615, allocations: 4 kB / 332 MB, free: 15.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.07616, allocations: 0 / 332 MB, free: 15.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.07617, allocations: 0 / 332 MB, free: 15.73 MB / 286.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.000979/0.07715, allocations: 0.6236 MB / 332.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.07719, allocations: 12.03 kB / 332.7 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.505e-05/0.07726, allocations: 62.72 kB / 332.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/0.07733, allocations: 32.56 kB / 332.7 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.07758, allocations: 267.6 kB / 333 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.07761, allocations: 24.94 kB / 333 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.869e-05/0.07767, allocations: 32.38 kB / 333.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004696/0.07814, allocations: 269.4 kB / 333.3 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.07818, allocations: 11.78 kB / 333.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.07821, allocations: 12 kB / 333.3 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.896e-06/0.07822, allocations: 4 kB / 333.4 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005166/0.07874, allocations: 270.1 kB / 333.6 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.07984, allocations: 0.799 MB / 334.4 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005336/0.0804, allocations: 350.7 kB / 334.8 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003151/0.08072, allocations: 192.8 kB / 334.9 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.08076, allocations: 15.98 kB / 335 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.08079, allocations: 34.56 kB / 335 MB, free: 12.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.403e-06/0.08079, allocations: 0 / 335 MB, free: 12.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=63): time 0.003843/0.08464, allocations: 1.965 MB / 337 MB, free: 10.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.08468, allocations: 63.97 kB / 337 MB, free: 10.44 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.08484, allocations: 194.8 kB / 337.2 MB, free: 10.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.08488, allocations: 37.7 kB / 337.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.194e-05/0.08497, allocations: 144.9 kB / 337.4 MB, free: 10.05 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.0851, allocations: 220.8 kB / 337.6 MB, free: 9.828 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.08523, allocations: 90.25 kB / 337.7 MB, free: 9.73 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.08535, allocations: 350.7 kB / 338 MB, free: 9.379 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003122/0.08567, allocations: 169 kB / 338.2 MB, free: 9.215 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003001/0.08597, allocations: 176.9 kB / 338.4 MB, free: 9.043 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006363/0.08662, allocations: 372 kB / 338.7 MB, free: 8.676 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.08663, allocations: 0 / 338.7 MB, free: 8.676 MB / 286.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007725/0.08741, allocations: 482.7 kB / 339.2 MB, free: 8.199 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.08743, allocations: 8 kB / 339.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.08744, allocations: 0 / 339.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.08746, allocations: 0 / 339.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004506/0.08791, allocations: 127.8 kB / 339.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.08793, allocations: 0 / 339.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001836/0.08811, allocations: 27.92 kB / 339.4 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.08815, allocations: 20 kB / 339.4 MB, free: 8.02 MB / 286.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.0001412/0.0883, allocations: 161.7 kB / 339.5 MB, free: 7.852 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.595e-05/0.08836, allocations: 31.62 kB / 339.6 MB, free: 7.82 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.896e-05/0.08845, allocations: 51.31 kB / 339.6 MB, free: 7.773 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.08847, allocations: 12 kB / 339.6 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.08848, allocations: 0 / 339.6 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.08849, allocations: 7.922 kB / 339.6 MB, free: 7.754 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.0902, allocations: 1.321 MB / 341 MB, free: 6.316 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.09022, allocations: 4 kB / 341 MB, free: 6.312 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00045/0.09067, allocations: 127.8 kB / 341.1 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.894e-06/0.09069, allocations: 8 kB / 341.1 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.179e-05/0.09073, allocations: 20.55 kB / 341.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.09074, allocations: 4 kB / 341.1 MB, free: 6.156 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.09075, allocations: 15.94 kB / 341.1 MB, free: 6.141 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.09194, allocations: 0.8667 MB / 342 MB, free: 5.203 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.514e-05/0.09202, allocations: 116.7 kB / 342.1 MB, free: 5.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.774e-05/0.09208, allocations: 16 kB / 342.1 MB, free: 5.055 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.09232, allocations: 27.98 kB / 342.2 MB, free: 5.027 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.165e-05/0.0924, allocations: 51.81 kB / 342.2 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/0.09243, allocations: 20 kB / 342.2 MB, free: 4.957 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.09254, allocations: 144.4 kB / 342.4 MB, free: 4.816 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.303e-06/0.09255, allocations: 4 kB / 342.4 MB, free: 4.812 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003527/0.09291, allocations: 99.94 kB / 342.5 MB, free: 4.715 MB / 286.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.001412/0.09433, allocations: 1.435 MB / 343.9 MB, free: 3.199 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008439/0.09518, allocations: 470.5 kB / 344.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.09519, allocations: 0 / 344.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003834/0.09558, allocations: 256.7 kB / 344.6 MB, free: 2.484 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005574/0.09615, allocations: 76.14 kB / 344.7 MB, free: 2.41 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/0.1005, allocations: 3.675 MB / 348.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.1008, allocations: 0.7933 MB / 349.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001705/0.101, allocations: 43.27 kB / 349.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.1011, allocations: 123.4 kB / 349.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1011, allocations: 0 / 349.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.681/1.783, allocations: 7.333 MB / 356.7 MB, free: 6.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/12.89, allocations: 368 / 356.7 MB, free: 6.16 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches