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.00129/0.00129, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001418/0.001418, allocations: 218.2 kB / 23.73 MB, free: 4.164 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.439/1.439, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001645/0.001645, allocations: 43.94 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2926, allocations: 53.38 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01384/0.3065, allocations: 9.347 MB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.3165, allocations: 3.703 MB / 444.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002764/0.3192, allocations: 75.62 kB / 444.2 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005814/0.3251, allocations: 2.172 MB / 446.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00575/0.3308, allocations: 1.852 MB / 448.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001919/0.3327, allocations: 0.7136 MB / 449 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00682/0.3395, allocations: 4.311 MB / 453.3 MB, free: 416 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005294/0.3448, allocations: 2.435 MB / 455.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003332/0.3482, allocations: 1.491 MB / 457.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004061/0.3522, allocations: 2.141 MB / 459.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001151/0.3534, allocations: 292 kB / 459.6 MB, free: 9.984 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002372/0.3557, allocations: 0.8269 MB / 460.5 MB, free: 9.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00249/0.3582, allocations: 1.854 MB / 462.3 MB, free: 7.301 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003159/0.3614, allocations: 1.545 MB / 463.9 MB, free: 5.746 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008707/0.3701, allocations: 6.427 MB / 470.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3701, allocations: 0 / 470.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3701, allocations: 0 / 470.3 MB, free: 15.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001959/0.3703, allocations: 0 / 470.3 MB, free: 15.29 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.00987/0.3802, allocations: 4.632 MB / 474.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.3802, allocations: 8.031 kB / 474.9 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001131/0.3814, allocations: 0.7028 MB / 475.6 MB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007707/0.3891, allocations: 1.964 MB / 477.6 MB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006648/0.3957, allocations: 2.639 MB / 480.2 MB, free: 5.215 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002461/0.396, allocations: 225.6 kB / 480.4 MB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/0.397, allocations: 295.8 kB / 480.7 MB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01935/0.4164, allocations: 9.68 MB / 490.4 MB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000147/0.4165, allocations: 51.58 kB / 490.5 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004201/0.417, allocations: 143.8 kB / 490.6 MB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003153/0.4201, allocations: 1.919 MB / 492.5 MB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01609/0.4362, allocations: 7.633 MB / 0.4884 GB, free: 500 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0476/0.4838, allocations: 36.25 MB / 0.5238 GB, free: 11.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006702/0.4905, allocations: 2.334 MB / 0.5261 GB, free: 8.703 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.4918, allocations: 0.7949 MB / 0.5269 GB, free: 7.898 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006342/0.4982, allocations: 2.895 MB / 0.5297 GB, free: 4.977 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/0.4982, allocations: 47.16 kB / 0.5298 GB, free: 4.922 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.849e-06/0.4982, allocations: 0 / 0.5298 GB, free: 4.922 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2332/0.7314, allocations: 9.13 MB / 0.5387 GB, free: 100.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.7314, allocations: 142.9 kB / 0.5388 GB, free: 99.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0051/0.7365, allocations: 4.16 MB / 0.5429 GB, free: 98.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/0.7367, allocations: 45.64 kB / 0.5429 GB, free: 98.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001434/0.7381, allocations: 3.212 MB / 0.5461 GB, free: 96.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003553/0.7385, allocations: 0.6279 MB / 0.5467 GB, free: 95.72 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009495/0.7394, allocations: 1.17 MB / 0.5478 GB, free: 95.14 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.702e-05/0.7394, allocations: 310.5 kB / 0.5481 GB, free: 94.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00183/0.7413, allocations: 1.57 MB / 0.5496 GB, free: 94.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002857/0.7441, allocations: 5.336 MB / 0.5548 GB, free: 88.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005337/0.7495, allocations: 7.526 MB / 0.5622 GB, free: 81.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.564e-05/0.7495, allocations: 36 kB / 0.5622 GB, free: 81.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008039/0.7576, allocations: 6.647 MB / 0.5687 GB, free: 75.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.628e-05/0.7576, allocations: 68.06 kB / 0.5688 GB, free: 75.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/0.7577, allocations: 136 kB / 0.5689 GB, free: 75.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001187/0.7579, allocations: 179.9 kB / 0.5691 GB, free: 74.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003222/0.7611, allocations: 1.37 MB / 0.5704 GB, free: 73.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001224/0.7612, allocations: 265.8 kB / 0.5707 GB, free: 73.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003333/0.7645, allocations: 287.7 kB / 0.571 GB, free: 73.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003006/0.7648, allocations: 368.5 kB / 0.5713 GB, free: 72.82 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.00216/0.767, allocations: 1.975 MB / 0.5732 GB, free: 70.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005226/0.7675, allocations: 357.4 kB / 0.5736 GB, free: 70.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005398/0.7681, allocations: 405.5 kB / 0.574 GB, free: 70.17 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/0.7681, allocations: 24 kB / 0.574 GB, free: 70.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.637e-05/0.7681, allocations: 0 / 0.574 GB, free: 70.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.7681, allocations: 9.047 kB / 0.574 GB, free: 70.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006942/0.7751, allocations: 5.434 MB / 0.5793 GB, free: 64.45 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.541e-05/0.7751, allocations: 20.25 kB / 0.5793 GB, free: 64.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008172/0.7759, allocations: 275.5 kB / 0.5796 GB, free: 64.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.777e-05/0.7759, allocations: 24 kB / 0.5796 GB, free: 64.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.404e-05/0.776, allocations: 52 kB / 0.5797 GB, free: 64.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.658e-05/0.776, allocations: 35.86 kB / 0.5797 GB, free: 64.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/0.776, allocations: 31.81 kB / 0.5797 GB, free: 64.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002753/0.7788, allocations: 3.257 MB / 0.5829 GB, free: 60.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006485/0.7794, allocations: 345.5 kB / 0.5832 GB, free: 60.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002869/0.7797, allocations: 47.98 kB / 0.5833 GB, free: 60.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.7807, allocations: 59.95 kB / 0.5833 GB, free: 60.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.7808, allocations: 155 kB / 0.5835 GB, free: 59.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.024e-05/0.7809, allocations: 67.98 kB / 0.5835 GB, free: 59.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002674/0.7836, allocations: 2.442 MB / 0.5859 GB, free: 57.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7836, allocations: 4 kB / 0.5859 GB, free: 57.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004208/0.7878, allocations: 0.8408 MB / 0.5868 GB, free: 56.57 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.003122/0.7909, allocations: 3.918 MB / 0.5906 GB, free: 52.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004613/0.7955, allocations: 3.525 MB / 0.594 GB, free: 48.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.861e-05/0.7955, allocations: 4 kB / 0.594 GB, free: 48.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000757/0.7963, allocations: 0.6982 MB / 0.5947 GB, free: 48.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/0.7989, allocations: 455.4 kB / 0.5951 GB, free: 47.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04089/0.8398, allocations: 40.38 MB / 0.6346 GB, free: 1.094 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002948/0.8427, allocations: 2.562 MB / 0.6371 GB, free: 14.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003867/0.8466, allocations: 1.76 MB / 0.6388 GB, free: 12.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002234/0.8488, allocations: 1.784 MB / 0.6405 GB, free: 10.94 MB / 462.1 MB Notification: Performance of SimCode: time 9.41e-07/0.8488, allocations: 0 / 0.6405 GB, free: 10.94 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6634/1.512, allocations: 55.89 MB / 0.6951 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.1/16.61, allocations: 0 / 0.6951 GB, free: 3.863 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.61001581978053]