Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001417/0.001417, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.001451, allocations: 200.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 247 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 63.89 kB / 358.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2405, allocations: 50.55 MB / 408.8 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01198/0.2525, allocations: 10.67 MB / 419.5 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007992/0.2605, allocations: 3.892 MB / 423.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001636/0.2622, allocations: 59.81 kB / 423.5 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004408/0.2667, allocations: 2.227 MB / 425.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005058/0.2718, allocations: 1.797 MB / 427.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001622/0.2734, allocations: 0.7058 MB / 428.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005644/0.2791, allocations: 4.316 MB / 432.5 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00326/0.2823, allocations: 2.888 MB / 435.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00203/0.2844, allocations: 1.464 MB / 436.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002729/0.2871, allocations: 2.075 MB / 438.9 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005966/0.2877, allocations: 292 kB / 439.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001782/0.2895, allocations: 0.9167 MB / 440.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001676/0.2912, allocations: 1.792 MB / 441.9 MB, free: 204 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002018/0.2932, allocations: 2.081 MB / 444 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006921/0.3002, allocations: 6.403 MB / 450.4 MB, free: 7.676 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.3002, allocations: 4 kB / 450.4 MB, free: 7.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3002, allocations: 0 / 450.4 MB, free: 7.672 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001313/0.3003, allocations: 0 / 450.4 MB, free: 7.672 MB / 366.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.008445/0.3088, allocations: 4.709 MB / 455.1 MB, free: 2.887 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3088, allocations: 8.031 kB / 455.1 MB, free: 2.879 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008551/0.3097, allocations: 0.6912 MB / 455.8 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007061/0.3168, allocations: 1.971 MB / 457.8 MB, free: 204 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004717/0.3215, allocations: 2.691 MB / 460.5 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001867/0.3217, allocations: 225.6 kB / 460.7 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005434/0.3223, allocations: 299.8 kB / 461 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0157/0.338, allocations: 9.655 MB / 470.6 MB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001242/0.3381, allocations: 55.58 kB / 470.7 MB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003986/0.3385, allocations: 139.9 kB / 470.8 MB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00306/0.3416, allocations: 1.915 MB / 472.8 MB, free: 408 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.3573, allocations: 7.652 MB / 480.4 MB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04378/0.4011, allocations: 37.68 MB / 0.5059 GB, free: 1.883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006942/0.4081, allocations: 2.904 MB / 0.5088 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001372/0.4095, allocations: 0.8726 MB / 0.5096 GB, free: 13.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005739/0.4153, allocations: 3.852 MB / 0.5134 GB, free: 9.883 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.4153, allocations: 43.22 kB / 0.5134 GB, free: 9.828 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 2.995e-06/0.4153, allocations: 0 / 0.5134 GB, free: 9.828 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02015/0.4355, allocations: 9.291 MB / 0.5225 GB, free: 452 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.076e-05/0.4356, allocations: 141.5 kB / 0.5226 GB, free: 280 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005295/0.4409, allocations: 3.934 MB / 0.5265 GB, free: 12.36 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000141/0.4411, allocations: 45.7 kB / 0.5265 GB, free: 12.31 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002427/0.4435, allocations: 3.209 MB / 0.5297 GB, free: 9.07 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007718/0.4443, allocations: 0.6436 MB / 0.5303 GB, free: 8.422 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001536/0.4459, allocations: 1.163 MB / 0.5314 GB, free: 7.246 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.446, allocations: 309.1 kB / 0.5317 GB, free: 6.941 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/0.4486, allocations: 1.565 MB / 0.5333 GB, free: 5.371 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2119/0.6605, allocations: 5.337 MB / 0.5385 GB, free: 118.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007499/0.668, allocations: 7.529 MB / 0.5458 GB, free: 112.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001519/0.6682, allocations: 39.38 kB / 0.5459 GB, free: 112.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.009476/0.6777, allocations: 6.644 MB / 0.5523 GB, free: 109.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.579e-05/0.6778, allocations: 61.66 kB / 0.5524 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/0.6779, allocations: 135.7 kB / 0.5525 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001479/0.6781, allocations: 174.1 kB / 0.5527 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00369/0.6818, allocations: 1.374 MB / 0.554 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001539/0.682, allocations: 266.3 kB / 0.5543 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003404/0.6854, allocations: 283.5 kB / 0.5546 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004476/0.6858, allocations: 369.3 kB / 0.5549 GB, free: 109.6 MB / 462.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.00228/0.6881, allocations: 1.977 MB / 0.5568 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004431/0.6886, allocations: 351.4 kB / 0.5572 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005469/0.6891, allocations: 400 kB / 0.5576 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.141e-05/0.6891, allocations: 16.75 kB / 0.5576 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.6892, allocations: 3.562 kB / 0.5576 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.6892, allocations: 6.422 kB / 0.5576 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006556/0.6957, allocations: 5.764 MB / 0.5632 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.805e-05/0.6958, allocations: 16 kB / 0.5632 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000825/0.6966, allocations: 273.5 kB / 0.5635 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.738e-05/0.6966, allocations: 28 kB / 0.5635 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.461e-05/0.6967, allocations: 51.89 kB / 0.5636 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.905e-05/0.6967, allocations: 39.77 kB / 0.5636 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-05/0.6968, allocations: 27.88 kB / 0.5636 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002926/0.6997, allocations: 3.252 MB / 0.5668 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006336/0.7003, allocations: 425.6 kB / 0.5672 GB, free: 99.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002671/0.7006, allocations: 51.28 kB / 0.5673 GB, free: 99.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009447/0.7016, allocations: 63.12 kB / 0.5673 GB, free: 99.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.7017, allocations: 152.1 kB / 0.5675 GB, free: 99.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-05/0.7018, allocations: 73.64 kB / 0.5675 GB, free: 99.39 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002831/0.7046, allocations: 2.435 MB / 0.5699 GB, free: 97.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7047, allocations: 0 / 0.5699 GB, free: 97.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004454/0.7091, allocations: 0.8447 MB / 0.5707 GB, free: 96.55 MB / 462.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.003175/0.7123, allocations: 3.923 MB / 0.5746 GB, free: 92.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004938/0.7173, allocations: 3.666 MB / 0.5782 GB, free: 88.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/0.7173, allocations: 4 kB / 0.5782 GB, free: 88.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007608/0.7181, allocations: 0.7406 MB / 0.5789 GB, free: 88.05 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/0.7205, allocations: 455.3 kB / 0.5793 GB, free: 87.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03821/0.7587, allocations: 40.39 MB / 0.6188 GB, free: 40.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002524/0.7613, allocations: 3.095 MB / 0.6218 GB, free: 37.83 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003079/0.7644, allocations: 1.757 MB / 0.6235 GB, free: 36.06 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00151/0.7659, allocations: 1.788 MB / 0.6252 GB, free: 34.27 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7659, allocations: 7.938 kB / 0.6252 GB, free: 34.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7035/1.469, allocations: 55.97 MB / 0.6799 GB, free: 10.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.05/22.52, allocations: 11.77 kB / 0.6799 GB, free: 10.68 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches