Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.001313/0.001313, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001456/0.001456, allocations: 206.8 kB / 23.73 MB, free: 4.379 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.411/1.411, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 47.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2644, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01186/0.2762, allocations: 9.355 MB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009074/0.2853, allocations: 3.699 MB / 444.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001405/0.2867, allocations: 71.69 kB / 444.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004396/0.2911, allocations: 2.172 MB / 446.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005155/0.2963, allocations: 1.864 MB / 448.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.2981, allocations: 0.7136 MB / 449 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006021/0.3041, allocations: 4.316 MB / 453.3 MB, free: 412 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003026/0.3071, allocations: 2.451 MB / 455.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00222/0.3093, allocations: 1.487 MB / 457.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00323/0.3126, allocations: 2.255 MB / 459.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005916/0.3131, allocations: 292 kB / 459.8 MB, free: 9.855 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001623/0.3148, allocations: 0.8385 MB / 460.6 MB, free: 9.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001883/0.3167, allocations: 1.85 MB / 462.4 MB, free: 7.164 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001946/0.3186, allocations: 1.549 MB / 464 MB, free: 5.605 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007175/0.3258, allocations: 6.415 MB / 470.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3258, allocations: 4 kB / 470.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3258, allocations: 7.938 kB / 470.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001575/0.3259, allocations: 0 / 470.4 MB, free: 15.15 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.009696/0.3356, allocations: 4.633 MB / 475.1 MB, free: 10.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.3357, allocations: 8.031 kB / 475.1 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001152/0.3368, allocations: 0.6951 MB / 475.8 MB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007485/0.3443, allocations: 1.964 MB / 477.7 MB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00616/0.3505, allocations: 2.635 MB / 480.4 MB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.3507, allocations: 229.6 kB / 480.6 MB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007853/0.3515, allocations: 291.8 kB / 480.9 MB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01767/0.3692, allocations: 9.688 MB / 490.6 MB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001397/0.3693, allocations: 59.5 kB / 490.6 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004519/0.3697, allocations: 139.9 kB / 490.7 MB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003002/0.3727, allocations: 1.919 MB / 492.7 MB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0162/0.3889, allocations: 7.625 MB / 0.4886 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04444/0.4334, allocations: 36.25 MB / 0.524 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006626/0.44, allocations: 2.333 MB / 0.5262 GB, free: 8.562 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.4413, allocations: 0.7988 MB / 0.527 GB, free: 7.754 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006489/0.4478, allocations: 2.891 MB / 0.5298 GB, free: 4.836 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/0.4479, allocations: 43.22 kB / 0.5299 GB, free: 4.785 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.198e-06/0.4479, allocations: 3.938 kB / 0.5299 GB, free: 4.781 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2127/0.6606, allocations: 9.125 MB / 0.5388 GB, free: 99.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.6606, allocations: 152 kB / 0.5389 GB, free: 99.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005196/0.6658, allocations: 4.162 MB / 0.543 GB, free: 98.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001868/0.666, allocations: 45.33 kB / 0.5431 GB, free: 98.33 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001411/0.6674, allocations: 3.211 MB / 0.5462 GB, free: 96.07 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004546/0.6679, allocations: 0.6337 MB / 0.5468 GB, free: 95.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001018/0.6689, allocations: 1.163 MB / 0.5479 GB, free: 95.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.755e-05/0.6689, allocations: 305.1 kB / 0.5482 GB, free: 94.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00184/0.6708, allocations: 1.569 MB / 0.5498 GB, free: 94.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002926/0.6737, allocations: 5.338 MB / 0.555 GB, free: 88.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005341/0.6791, allocations: 7.538 MB / 0.5623 GB, free: 80.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.93e-05/0.6791, allocations: 40.94 kB / 0.5624 GB, free: 80.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008502/0.6876, allocations: 6.633 MB / 0.5689 GB, free: 75.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.316e-05/0.6877, allocations: 60 kB / 0.5689 GB, free: 74.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.921e-05/0.6878, allocations: 140.2 kB / 0.5691 GB, free: 74.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001168/0.6879, allocations: 179.9 kB / 0.5692 GB, free: 74.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/0.6912, allocations: 1.368 MB / 0.5706 GB, free: 73.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001194/0.6913, allocations: 267.5 kB / 0.5708 GB, free: 73.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003399/0.6947, allocations: 289 kB / 0.5711 GB, free: 72.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003561/0.6951, allocations: 366 kB / 0.5714 GB, free: 72.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 735 * Array equations: 3 * 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.002037/0.6971, allocations: 1.971 MB / 0.5734 GB, free: 70.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004844/0.6976, allocations: 353.6 kB / 0.5737 GB, free: 70.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004649/0.6981, allocations: 405.6 kB / 0.5741 GB, free: 69.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.821e-05/0.6981, allocations: 19 kB / 0.5741 GB, free: 69.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2e-05/0.6981, allocations: 3 kB / 0.5741 GB, free: 69.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.6981, allocations: 16.77 kB / 0.5741 GB, free: 69.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006882/0.705, allocations: 5.427 MB / 0.5794 GB, free: 64.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/0.705, allocations: 19.38 kB / 0.5794 GB, free: 64.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008803/0.7059, allocations: 283.6 kB / 0.5797 GB, free: 63.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.892e-05/0.7059, allocations: 28 kB / 0.5797 GB, free: 63.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.035e-05/0.706, allocations: 51.98 kB / 0.5798 GB, free: 63.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.725e-05/0.706, allocations: 39.86 kB / 0.5798 GB, free: 63.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.216e-05/0.706, allocations: 31.81 kB / 0.5799 GB, free: 63.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002819/0.7088, allocations: 3.251 MB / 0.583 GB, free: 60.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006372/0.7095, allocations: 357.3 kB / 0.5834 GB, free: 59.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003023/0.7098, allocations: 47.98 kB / 0.5834 GB, free: 59.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.7108, allocations: 59.95 kB / 0.5835 GB, free: 59.85 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.7109, allocations: 155.3 kB / 0.5836 GB, free: 59.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.455e-05/0.711, allocations: 64 kB / 0.5837 GB, free: 59.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002505/0.7135, allocations: 2.442 MB / 0.5861 GB, free: 57.21 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7135, allocations: 0 / 0.5861 GB, free: 57.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003959/0.7175, allocations: 0.8398 MB / 0.5869 GB, free: 56.38 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 139 * Array equations: 3 * 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.002865/0.7203, allocations: 3.915 MB / 0.5907 GB, free: 52.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004414/0.7248, allocations: 3.534 MB / 0.5942 GB, free: 48.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/0.7248, allocations: 4 kB / 0.5942 GB, free: 48.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007443/0.7255, allocations: 0.6919 MB / 0.5948 GB, free: 48.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/0.7279, allocations: 453.4 kB / 0.5953 GB, free: 47.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03784/0.7657, allocations: 40.38 MB / 0.6347 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003172/0.7689, allocations: 2.549 MB / 0.6372 GB, free: 14.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003881/0.7728, allocations: 1.764 MB / 0.6389 GB, free: 12.53 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002454/0.7752, allocations: 1.788 MB / 0.6407 GB, free: 10.74 MB / 462.1 MB Notification: Performance of SimCode: time 1.403e-06/0.7753, allocations: 0 / 0.6407 GB, free: 10.74 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7865/1.562, allocations: 58.41 MB / 0.6977 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/16.42, allocations: 11.8 kB / 0.6977 GB, free: 1.137 MB / 0.4981 GB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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: 19.35552140499931]