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.001578/0.001578, allocations: 105.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00255/0.00255, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 60.22 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1446, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01589/0.1606, allocations: 10.68 MB / 368.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2856/0.4463, allocations: 3.881 MB / 372.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002581/0.4489, allocations: 63.03 kB / 372.2 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005139/0.4541, allocations: 2.216 MB / 374.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005853/0.46, allocations: 1.805 MB / 376.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002198/0.4622, allocations: 0.7076 MB / 376.9 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0085/0.4707, allocations: 4.313 MB / 381.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004979/0.4757, allocations: 2.893 MB / 384.1 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003258/0.479, allocations: 1.466 MB / 385.6 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003544/0.4826, allocations: 2.076 MB / 387.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000905/0.4835, allocations: 294.9 kB / 388 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002353/0.4859, allocations: 0.9132 MB / 388.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00199/0.4879, allocations: 1.793 MB / 390.7 MB, free: 4.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003128/0.491, allocations: 2.085 MB / 392.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00754/0.4986, allocations: 6.133 MB / 398.9 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.4986, allocations: 0 / 398.9 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4986, allocations: 0 / 398.9 MB, free: 15.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002009/0.4988, allocations: 0 / 398.9 MB, free: 15.02 MB / 318.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.009472/0.5083, allocations: 4.586 MB / 403.5 MB, free: 10.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.5084, allocations: 12.03 kB / 403.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009244/0.5093, allocations: 0.6924 MB / 404.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007241/0.5165, allocations: 1.944 MB / 406.1 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005307/0.5219, allocations: 2.621 MB / 408.8 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002135/0.5221, allocations: 239.7 kB / 409 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006364/0.5228, allocations: 299.7 kB / 409.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0187/0.5415, allocations: 9.64 MB / 418.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002507/0.5418, allocations: 59.52 kB / 419 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001223/0.543, allocations: 141.7 kB / 419.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003373/0.5464, allocations: 1.914 MB / 421 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01685/0.5633, allocations: 7.656 MB / 428.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04948/0.6128, allocations: 37.75 MB / 466.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007393/0.6202, allocations: 2.892 MB / 469.3 MB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.6217, allocations: 0.8729 MB / 470.2 MB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006759/0.6285, allocations: 3.839 MB / 474 MB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.311e-05/0.6286, allocations: 51.22 kB / 474.1 MB, free: 2.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 4.889e-06/0.6286, allocations: 0 / 474.1 MB, free: 2.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02857/0.6572, allocations: 9.062 MB / 483.2 MB, free: 9.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.941e-05/0.6573, allocations: 141.5 kB / 483.3 MB, free: 8.996 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008344/0.6657, allocations: 3.928 MB / 487.2 MB, free: 5.086 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003105/0.666, allocations: 45.7 kB / 487.3 MB, free: 5.035 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002634/0.6687, allocations: 3.091 MB / 490.4 MB, free: 1.949 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000815/0.6695, allocations: 0.6026 MB / 491 MB, free: 1.352 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001532/0.671, allocations: 1.158 MB / 492.1 MB, free: 184 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.6712, allocations: 305.1 kB / 492.4 MB, free: 15.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/0.6737, allocations: 1.573 MB / 494 MB, free: 14.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005419/0.6791, allocations: 5.334 MB / 499.3 MB, free: 7.066 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009298/0.6885, allocations: 7.533 MB / 0.495 GB, free: 13.66 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001322/0.6886, allocations: 40 kB / 0.495 GB, free: 13.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01158/0.7002, allocations: 6.62 MB / 0.5015 GB, free: 6.996 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.268e-05/0.7003, allocations: 65 kB / 0.5015 GB, free: 6.934 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/0.7005, allocations: 132 kB / 0.5017 GB, free: 6.805 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001699/0.7007, allocations: 180 kB / 0.5018 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004365/0.705, allocations: 1.376 MB / 0.5032 GB, free: 5.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003103/0.7054, allocations: 266.9 kB / 0.5034 GB, free: 4.988 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00451/0.7099, allocations: 283.6 kB / 0.5037 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009262/0.7108, allocations: 364 kB / 0.5041 GB, free: 4.355 MB / 430.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.003766/0.7146, allocations: 1.978 MB / 0.506 GB, free: 2.367 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006565/0.7153, allocations: 339.7 kB / 0.5063 GB, free: 2.031 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007882/0.7161, allocations: 405.5 kB / 0.5067 GB, free: 1.637 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/0.7161, allocations: 18.73 kB / 0.5067 GB, free: 1.621 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.7161, allocations: 0 / 0.5067 GB, free: 1.621 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.7161, allocations: 11.98 kB / 0.5067 GB, free: 1.609 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.727, allocations: 5.751 MB / 0.5123 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.17e-05/0.7271, allocations: 16 kB / 0.5124 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.7281, allocations: 283.5 kB / 0.5126 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-05/0.7281, allocations: 31.94 kB / 0.5127 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.951e-05/0.7282, allocations: 47.98 kB / 0.5127 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.928e-05/0.7283, allocations: 39.86 kB / 0.5127 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.271e-05/0.7283, allocations: 31.94 kB / 0.5128 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004404/0.7327, allocations: 3.229 MB / 0.5159 GB, free: 7.641 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.7338, allocations: 412.5 kB / 0.5163 GB, free: 7.215 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006223/0.7344, allocations: 47.98 kB / 0.5164 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.7359, allocations: 63.95 kB / 0.5164 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001976/0.7361, allocations: 143.4 kB / 0.5166 GB, free: 6.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.7362, allocations: 74.56 kB / 0.5166 GB, free: 6.895 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004082/0.7403, allocations: 2.438 MB / 0.519 GB, free: 4.477 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7403, allocations: 0 / 0.519 GB, free: 4.477 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00523/0.7455, allocations: 0.8438 MB / 0.5198 GB, free: 3.633 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.2558/1.001, allocations: 3.892 MB / 0.5236 GB, free: 138.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009419/1.011, allocations: 3.801 MB / 0.5274 GB, free: 138.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.382e-05/1.011, allocations: 2.562 kB / 0.5274 GB, free: 138.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002073/1.013, allocations: 0.7398 MB / 0.5281 GB, free: 138.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004444/1.017, allocations: 447 kB / 0.5285 GB, free: 138 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05502/1.073, allocations: 45.51 MB / 0.5729 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003126/1.076, allocations: 3.093 MB / 0.576 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004031/1.08, allocations: 1.756 MB / 0.5777 GB, free: 98.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/1.081, allocations: 1.79 MB / 0.5794 GB, free: 97.2 MB / 446.1 MB Notification: Performance of SimCode: time 2.054e-06/1.081, allocations: 4 kB / 0.5794 GB, free: 97.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1992/1.281, allocations: 59.76 MB / 0.6378 GB, free: 37.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.64, allocations: 11.84 kB / 0.6378 GB, free: 37.72 MB / 446.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.0.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