Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001686/0.001686, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001889/0.001889, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2559, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01379/0.2697, allocations: 11.97 MB / 420.7 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009566/0.2794, allocations: 4.211 MB / 424.9 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002411/0.2818, allocations: 67.81 kB / 425 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005695/0.2876, allocations: 2.748 MB / 427.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00534/0.293, allocations: 1.93 MB / 429.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002044/0.295, allocations: 0.8034 MB / 430.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006629/0.3017, allocations: 4.695 MB / 435.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004776/0.3065, allocations: 3.538 MB / 438.7 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00297/0.3094, allocations: 1.674 MB / 440.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003669/0.3131, allocations: 2.332 MB / 442.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001105/0.3143, allocations: 356 kB / 443.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002963/0.3172, allocations: 1.26 MB / 444.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002897/0.3202, allocations: 2.088 MB / 446.4 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004285/0.3245, allocations: 2.415 MB / 448.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009961/0.3344, allocations: 7.482 MB / 456.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.3345, allocations: 0 / 456.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3345, allocations: 0 / 456.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002771/0.3348, allocations: 0 / 456.3 MB, free: 1.754 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01394/0.3487, allocations: 5.266 MB / 461.6 MB, free: 12.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/0.3488, allocations: 12.03 kB / 461.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001797/0.3506, allocations: 0.7943 MB / 462.4 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009231/0.3599, allocations: 2.198 MB / 464.6 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007083/0.367, allocations: 2.922 MB / 467.5 MB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002632/0.3673, allocations: 270.9 kB / 467.8 MB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001492/0.3688, allocations: 431.6 kB / 468.2 MB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02674/0.3955, allocations: 12.27 MB / 480.5 MB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001911/0.3958, allocations: 47.53 kB / 480.5 MB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001231/0.397, allocations: 175.8 kB / 480.7 MB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003987/0.401, allocations: 2.166 MB / 482.8 MB, free: 6.254 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02692/0.4279, allocations: 10.24 MB / 493.1 MB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05976/0.4878, allocations: 44.09 MB / 0.5246 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01235/0.5002, allocations: 4.644 MB / 0.5291 GB, free: 9.805 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002881/0.5031, allocations: 1.721 MB / 0.5308 GB, free: 8.078 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.254/0.7571, allocations: 8.255 MB / 0.5389 GB, free: 123.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.697e-05/0.7572, allocations: 51.98 kB / 0.5389 GB, free: 123.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 6.222e-06/0.7573, allocations: 0 / 0.5389 GB, free: 123.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.03625/0.7935, allocations: 16.09 MB / 0.5546 GB, free: 118.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009742/0.7945, allocations: 1.688 MB / 0.5563 GB, free: 117.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004283/0.7988, allocations: 4.209 MB / 0.5604 GB, free: 114.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002001/0.799, allocations: 57.61 kB / 0.5604 GB, free: 114.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001262/0.8003, allocations: 3.392 MB / 0.5638 GB, free: 111 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004973/0.8008, allocations: 0.8049 MB / 0.5645 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001277/0.8021, allocations: 1.357 MB / 0.5659 GB, free: 108.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.945e-05/0.8021, allocations: 301.1 kB / 0.5662 GB, free: 108.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002551/0.8047, allocations: 2.246 MB / 0.5683 GB, free: 106.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003832/0.8085, allocations: 6.372 MB / 0.5746 GB, free: 97.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006835/0.8154, allocations: 9.293 MB / 0.5836 GB, free: 86.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.947e-05/0.8155, allocations: 43.94 kB / 0.5837 GB, free: 86.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01234/0.8278, allocations: 9.108 MB / 0.5926 GB, free: 77.42 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.922e-05/0.8279, allocations: 68 kB / 0.5926 GB, free: 77.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004375/0.8323, allocations: 2.875 MB / 0.5955 GB, free: 74.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002751/0.835, allocations: 1.069 MB / 0.5965 GB, free: 73.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00402/0.8391, allocations: 1.579 MB / 0.598 GB, free: 71.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003437/0.8425, allocations: 4.679 MB / 0.6026 GB, free: 66.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004152/0.8467, allocations: 435.4 kB / 0.603 GB, free: 66.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004048/0.8471, allocations: 416 kB / 0.6034 GB, free: 66.02 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002434/0.8496, allocations: 2.212 MB / 0.6056 GB, free: 63.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000513/0.8501, allocations: 379.1 kB / 0.6059 GB, free: 63.42 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005278/0.8554, allocations: 3.309 MB / 0.6092 GB, free: 60.09 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004326/0.8597, allocations: 2.783 MB / 0.6119 GB, free: 57.28 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.8597, allocations: 3.938 kB / 0.6119 GB, free: 57.28 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.697e-05/0.8597, allocations: 11.97 kB / 0.6119 GB, free: 57.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/0.8744, allocations: 10.36 MB / 0.622 GB, free: 46.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-05/0.8745, allocations: 15.28 kB / 0.622 GB, free: 46.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.8759, allocations: 388 kB / 0.6224 GB, free: 46.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002604/0.8785, allocations: 0.9786 MB / 0.6234 GB, free: 45.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001483/0.8786, allocations: 67.97 kB / 0.6234 GB, free: 45.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003728/0.8824, allocations: 4.912 MB / 0.6282 GB, free: 40.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000665/0.8831, allocations: 1.565 MB / 0.6298 GB, free: 38.33 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007283/0.8904, allocations: 5.962 MB / 0.6356 GB, free: 32.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.8914, allocations: 440 kB / 0.636 GB, free: 31.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003909/0.8918, allocations: 59.97 kB / 0.6361 GB, free: 31.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/0.8933, allocations: 151.8 kB / 0.6362 GB, free: 31.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/0.8936, allocations: 180.4 kB / 0.6364 GB, free: 31.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.8937, allocations: 71.98 kB / 0.6364 GB, free: 31.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003144/0.8969, allocations: 2.598 MB / 0.639 GB, free: 28.65 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8969, allocations: 0 / 0.639 GB, free: 28.65 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004598/0.9015, allocations: 1.118 MB / 0.6401 GB, free: 27.54 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007768/0.9093, allocations: 6.654 MB / 0.6466 GB, free: 20.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008608/0.9179, allocations: 5.963 MB / 0.6524 GB, free: 14.69 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/0.918, allocations: 4 kB / 0.6524 GB, free: 14.69 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00337/0.9213, allocations: 2.209 MB / 0.6545 GB, free: 12.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003208/0.9246, allocations: 0.5111 MB / 0.655 GB, free: 11.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07229/0.9969, allocations: 50.53 MB / 0.7044 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005512/1.002, allocations: 3.451 MB / 0.7078 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005198/1.008, allocations: 2.018 MB / 0.7097 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002934/1.011, allocations: 2.093 MB / 0.7118 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of SimCode: time 1.473e-06/1.011, allocations: 0 / 0.7118 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3337/1.344, allocations: 74.05 MB / 0.7841 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 57.67/59.01, allocations: 9.297 kB / 0.7841 GB, free: 156.7 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches