Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009356/0.0009355, allocations: 195.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.188/1.188, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000703/0.000703, allocations: 92.5 kB / 296.7 MB, free: 6.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002294/0.0002295, allocations: 4 kB / 356.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2195, allocations: 51.3 MB / 408.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02268/0.2422, allocations: 34.99 MB / 443.1 MB, free: 8.551 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.2572, allocations: 8.035 MB / 451.2 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003768/0.261, allocations: 167.6 kB / 451.3 MB, free: 352 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003455/0.2645, allocations: 1.792 MB / 453.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01261/0.2771, allocations: 5.506 MB / 458.6 MB, free: 9.016 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002229/0.2793, allocations: 0.6592 MB / 459.3 MB, free: 8.355 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00496/0.2843, allocations: 4.83 MB / 464.1 MB, free: 3.516 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003918/0.2882, allocations: 3.59 MB / 467.7 MB, free: 15.85 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001454/0.2897, allocations: 1.257 MB / 469 MB, free: 14.59 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001892/0.2916, allocations: 2.002 MB / 471 MB, free: 12.58 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002997/0.2919, allocations: 143.9 kB / 471.1 MB, free: 12.44 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00132/0.2933, allocations: 0.8112 MB / 471.9 MB, free: 11.63 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001199/0.2945, allocations: 1.632 MB / 473.5 MB, free: 9.992 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001406/0.2959, allocations: 1.827 MB / 475.4 MB, free: 8.148 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003673/0.2996, allocations: 4.845 MB / 480.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2996, allocations: 4 kB / 480.2 MB, free: 3.289 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2996, allocations: 0 / 480.2 MB, free: 3.289 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.697e-05/0.2996, allocations: 0 / 480.2 MB, free: 3.289 MB / 346.7 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.005334/0.305, allocations: 3.819 MB / 484 MB, free: 15.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.305, allocations: 8.031 kB / 484 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006943/0.3057, allocations: 0.6912 MB / 484.7 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00644/0.3122, allocations: 1.992 MB / 486.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003928/0.3161, allocations: 2.636 MB / 489.4 MB, free: 9.992 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.3163, allocations: 233.6 kB / 489.6 MB, free: 9.762 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004122/0.3167, allocations: 291.8 kB / 489.9 MB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01513/0.3318, allocations: 9.635 MB / 499.5 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001509/0.332, allocations: 51.58 kB / 499.6 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006927/0.3327, allocations: 143.8 kB / 499.7 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00287/0.3356, allocations: 1.923 MB / 0.4899 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01414/0.3498, allocations: 7.61 MB / 0.4973 GB, free: 5.328 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2058/0.5556, allocations: 37.74 MB / 0.5342 GB, free: 63.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007722/0.5634, allocations: 2.876 MB / 0.537 GB, free: 61.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001517/0.565, allocations: 0.8729 MB / 0.5378 GB, free: 61.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006441/0.5714, allocations: 3.758 MB / 0.5415 GB, free: 58.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.5715, allocations: 50.31 kB / 0.5415 GB, free: 58.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 4.959e-06/0.5715, allocations: 0 / 0.5415 GB, free: 58.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01699/0.5885, allocations: 9.029 MB / 0.5504 GB, free: 49.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.5886, allocations: 153.5 kB / 0.5505 GB, free: 49.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003524/0.5921, allocations: 3.909 MB / 0.5543 GB, free: 45.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.969e-05/0.5922, allocations: 45.7 kB / 0.5544 GB, free: 45.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/0.5933, allocations: 3.09 MB / 0.5574 GB, free: 42.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003003/0.5936, allocations: 0.6082 MB / 0.558 GB, free: 41.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.5937, allocations: 116 kB / 0.5581 GB, free: 41.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.5939, allocations: 0.5539 MB / 0.5586 GB, free: 41.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001822/0.5958, allocations: 1.538 MB / 0.5601 GB, free: 39.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002817/0.5986, allocations: 5.311 MB / 0.5653 GB, free: 32.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00519/0.6038, allocations: 7.496 MB / 0.5726 GB, free: 23.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.566e-05/0.6038, allocations: 36 kB / 0.5727 GB, free: 23.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.007606/0.6115, allocations: 6.567 MB / 0.5791 GB, free: 16.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.808e-05/0.6115, allocations: 67.47 kB / 0.5791 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.167e-05/0.6116, allocations: 135.7 kB / 0.5793 GB, free: 16.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000103/0.6117, allocations: 176 kB / 0.5794 GB, free: 16.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003085/0.6148, allocations: 1.376 MB / 0.5808 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001146/0.615, allocations: 263 kB / 0.581 GB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002811/0.6178, allocations: 287.6 kB / 0.5813 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002917/0.6181, allocations: 357.4 kB / 0.5817 GB, free: 13.86 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001981/0.6201, allocations: 1.979 MB / 0.5836 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003379/0.6204, allocations: 339.5 kB / 0.5839 GB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/0.622, allocations: 1.242 MB / 0.5851 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-05/0.622, allocations: 20 kB / 0.5851 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.622, allocations: 3.984 kB / 0.5851 GB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.622, allocations: 7.984 kB / 0.5851 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006207/0.6282, allocations: 5.742 MB / 0.5908 GB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/0.6283, allocations: 20 kB / 0.5908 GB, free: 4.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008106/0.6291, allocations: 275.5 kB / 0.591 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.889e-05/0.6291, allocations: 24 kB / 0.5911 GB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.498e-05/0.6292, allocations: 49.02 kB / 0.5911 GB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-05/0.6292, allocations: 43.8 kB / 0.5912 GB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.174e-05/0.6292, allocations: 28.28 kB / 0.5912 GB, free: 3.781 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002749/0.632, allocations: 3.209 MB / 0.5943 GB, free: 320 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007862/0.6328, allocations: 416.6 kB / 0.5947 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002761/0.6331, allocations: 47.98 kB / 0.5948 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.6341, allocations: 60.45 kB / 0.5948 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.6343, allocations: 147.4 kB / 0.595 GB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.146e-05/0.6344, allocations: 68.69 kB / 0.595 GB, free: 15.56 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003728/0.6381, allocations: 2.423 MB / 0.5974 GB, free: 13.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.653e-06/0.6381, allocations: 0 / 0.5974 GB, free: 13.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004555/0.6427, allocations: 0.8657 MB / 0.5982 GB, free: 12.3 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004097/0.6468, allocations: 3.872 MB / 0.602 GB, free: 8.164 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005896/0.6527, allocations: 3.583 MB / 0.6055 GB, free: 4.613 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/0.6528, allocations: 4 kB / 0.6055 GB, free: 4.609 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009547/0.6537, allocations: 0.7264 MB / 0.6062 GB, free: 3.887 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0109/0.6646, allocations: 453.9 kB / 0.6067 GB, free: 3.445 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05431/0.719, allocations: 30.83 MB / 0.6368 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004808/0.7238, allocations: 3.105 MB / 0.6398 GB, free: 13.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002559/0.7264, allocations: 1.831 MB / 0.6416 GB, free: 11.73 MB / 442.7 MB Notification: Performance of SimCode: time 9.42e-07/0.7264, allocations: 4 kB / 0.6416 GB, free: 11.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.181/6.907, allocations: 66.7 MB / 0.7067 GB, free: 129.1 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches