Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001287/0.001287, allocations: 106.8 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001081/0.001081, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.17 kB / 306.4 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09314, allocations: 50.54 MB / 356.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1773/0.2705, allocations: 17.79 MB / 374.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009503/0.2801, allocations: 5.036 MB / 379.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002623/0.2827, allocations: 71.19 kB / 379.8 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002165/0.2849, allocations: 0.9964 MB / 380.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003353/0.2883, allocations: 1.25 MB / 382 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009834/0.2893, allocations: 413.6 kB / 382.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005338/0.2947, allocations: 3.642 MB / 386.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002449/0.2971, allocations: 1.51 MB / 387.6 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001433/0.2986, allocations: 0.7243 MB / 388.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001963/0.3006, allocations: 1.3 MB / 389.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003354/0.3009, allocations: 113.8 kB / 389.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002194/0.3031, allocations: 1.011 MB / 390.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.3043, allocations: 1.062 MB / 391.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001264/0.3055, allocations: 1.249 MB / 393.1 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004855/0.3104, allocations: 4.124 MB / 397.2 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.3104, allocations: 1.031 kB / 397.2 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3104, allocations: 0 / 397.2 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001091/0.3106, allocations: 0 / 397.2 MB, free: 0.6328 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.006589/0.3172, allocations: 3.031 MB / 400.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.187e-05/0.3172, allocations: 13.36 kB / 400.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005442/0.3178, allocations: 467.4 kB / 400.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006365/0.3242, allocations: 1.809 MB / 402.5 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002468/0.3266, allocations: 1.587 MB / 404.1 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.787e-05/0.3267, allocations: 133.6 kB / 404.2 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005435/0.3273, allocations: 251.6 kB / 404.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00825/0.3355, allocations: 6.671 MB / 411.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.397e-05/0.3356, allocations: 31.73 kB / 411.2 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.3359, allocations: 93.78 kB / 411.2 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00182/0.3377, allocations: 1.358 MB / 412.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009457/0.3471, allocations: 6.052 MB / 418.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02523/0.3724, allocations: 25.58 MB / 444.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006485/0.3789, allocations: 2.689 MB / 446.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00121/0.3801, allocations: 1.04 MB / 448 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004711/0.3849, allocations: 3.94 MB / 451.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.3849, allocations: 51.05 kB / 452 MB, free: 10.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 2.865e-06/0.3849, allocations: 0 / 452 MB, free: 10.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.02511/0.41, allocations: 10.32 MB / 462.3 MB, free: 15.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00111/0.4112, allocations: 1.58 MB / 463.9 MB, free: 14.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004124/0.4153, allocations: 2.725 MB / 466.6 MB, free: 11.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001895/0.4155, allocations: 41.77 kB / 466.6 MB, free: 11.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001306/0.4169, allocations: 2.092 MB / 468.7 MB, free: 9.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005855/0.4175, allocations: 0.4985 MB / 469.2 MB, free: 8.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001423/0.4189, allocations: 0.9117 MB / 470.1 MB, free: 7.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.053e-05/0.419, allocations: 301.4 kB / 470.4 MB, free: 7.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002399/0.4214, allocations: 1.637 MB / 472.1 MB, free: 5.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0039/0.4253, allocations: 4.425 MB / 476.5 MB, free: 40 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006163/0.4315, allocations: 6.506 MB / 483 MB, free: 8.141 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.16e-05/0.4315, allocations: 31.94 kB / 483 MB, free: 8.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01196/0.4435, allocations: 7.045 MB / 490.1 MB, free: 1.051 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.164e-05/0.4436, allocations: 51 kB / 490.1 MB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005554/0.4492, allocations: 2.545 MB / 492.7 MB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004835/0.454, allocations: 1.493 MB / 494.1 MB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002658/0.4567, allocations: 1.006 MB / 495.2 MB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009081/0.4658, allocations: 7.212 MB / 0.4906 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003074/0.4689, allocations: 327.6 kB / 0.4909 GB, free: 4.141 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000543/0.4694, allocations: 284 kB / 0.4912 GB, free: 3.863 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002328/0.4718, allocations: 1.436 MB / 0.4926 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004699/0.4722, allocations: 229 kB / 0.4928 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006639/0.4729, allocations: 325.9 kB / 0.4931 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005517/0.4784, allocations: 2.521 MB / 0.4956 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.4785, allocations: 4 kB / 0.4956 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.4785, allocations: 11.91 kB / 0.4956 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.4903, allocations: 6.875 MB / 0.5023 GB, free: 8.375 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.4903, allocations: 8.078 kB / 0.5023 GB, free: 8.367 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007977/0.4911, allocations: 179.7 kB / 0.5025 GB, free: 8.191 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004613/0.4958, allocations: 1.422 MB / 0.5039 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.4959, allocations: 35.97 kB / 0.5039 GB, free: 6.723 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009062/0.505, allocations: 7.33 MB / 0.5111 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000909/0.5059, allocations: 1.451 MB / 0.5125 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008035/0.5139, allocations: 4.878 MB / 0.5172 GB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005012/0.5145, allocations: 298 kB / 0.5175 GB, free: 8.309 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003801/0.5148, allocations: 20 kB / 0.5175 GB, free: 8.289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.516, allocations: 115.8 kB / 0.5177 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.5163, allocations: 80.38 kB / 0.5177 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.5164, allocations: 35.98 kB / 0.5178 GB, free: 8.062 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002385/0.5188, allocations: 1.693 MB / 0.5194 GB, free: 6.359 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5188, allocations: 0 / 0.5194 GB, free: 6.359 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003326/0.5221, allocations: 0.7524 MB / 0.5201 GB, free: 5.609 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008789/0.5309, allocations: 5.501 MB / 0.5255 GB, free: 60 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1549/0.6859, allocations: 4.336 MB / 0.5298 GB, free: 149.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.6859, allocations: 3.969 kB / 0.5298 GB, free: 149.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002751/0.6887, allocations: 1.715 MB / 0.5314 GB, free: 149 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001628/0.6903, allocations: 259 kB / 0.5317 GB, free: 148.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0426/0.7329, allocations: 37.06 MB / 0.5679 GB, free: 120.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002451/0.7354, allocations: 2.289 MB / 0.5701 GB, free: 118.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002719/0.7381, allocations: 1.408 MB / 0.5715 GB, free: 116.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/0.7393, allocations: 1.108 MB / 0.5726 GB, free: 115.7 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.7393, allocations: 7.938 kB / 0.5726 GB, free: 115.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.071/3.81, allocations: 50.06 MB / 0.6215 GB, free: 65.87 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002352/3.81, allocations: 256.8 kB / 0.6217 GB, free: 65.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.915/6.725, allocations: 2.656 kB / 0.6217 GB, free: 65.61 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches