Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 60.69 kB / 307 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07948/0.08074, allocations: 50.55 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.009034/0.08981, allocations: 10.19 MB / 367.8 MB, free: 3.785 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1565/0.2463, allocations: 3.796 MB / 371.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002183/0.2485, allocations: 63.02 kB / 371.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004175/0.2528, allocations: 1.935 MB / 373.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00421/0.257, allocations: 1.623 MB / 375.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.2583, allocations: 0.613 MB / 375.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004249/0.2626, allocations: 3.352 MB / 379.2 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002615/0.2652, allocations: 2.572 MB / 381.7 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001663/0.2669, allocations: 1.233 MB / 383 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001704/0.2686, allocations: 1.661 MB / 384.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004387/0.269, allocations: 252.2 kB / 384.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001652/0.2707, allocations: 1.02 MB / 385.9 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001167/0.2719, allocations: 1.541 MB / 387.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001252/0.2731, allocations: 1.819 MB / 389.3 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003928/0.2771, allocations: 5.576 MB / 394.8 MB, free: 1.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2771, allocations: 5.312 kB / 394.8 MB, free: 1.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2771, allocations: 0 / 394.8 MB, free: 1.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.842e-05/0.2772, allocations: 0 / 394.8 MB, free: 1.422 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.005247/0.2824, allocations: 4.003 MB / 398.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.2825, allocations: 8.594 kB / 398.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005572/0.283, allocations: 0.606 MB / 399.5 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00562/0.2886, allocations: 1.792 MB / 401.2 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002984/0.2916, allocations: 2.113 MB / 403.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.2918, allocations: 193.2 kB / 403.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003762/0.2922, allocations: 247.6 kB / 403.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/0.3026, allocations: 8.445 MB / 412.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.814e-05/0.3027, allocations: 39.69 kB / 412.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003314/0.3031, allocations: 126 kB / 412.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002515/0.3056, allocations: 1.698 MB / 414.1 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0117/0.3173, allocations: 7.107 MB / 421.2 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0355/0.3528, allocations: 34.16 MB / 455.4 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00669/0.3595, allocations: 3.279 MB / 458.6 MB, free: 2.133 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001623/0.3612, allocations: 1.469 MB / 460.1 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005537/0.3667, allocations: 4.453 MB / 464.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.3668, allocations: 43.12 kB / 464.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=121): time 3.236e-06/0.3668, allocations: 7.188 kB / 464.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=129): time 0.03038/0.3972, allocations: 11.55 MB / 476.2 MB, free: 248 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.3973, allocations: 145.2 kB / 476.3 MB, free: 72 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005646/0.403, allocations: 3.713 MB / 480 MB, free: 12.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001483/0.4031, allocations: 48.05 kB / 480.1 MB, free: 12.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00168/0.4048, allocations: 2.744 MB / 482.8 MB, free: 9.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004961/0.4053, allocations: 0.5236 MB / 483.3 MB, free: 9.051 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001355/0.4067, allocations: 1.071 MB / 484.4 MB, free: 7.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.74e-05/0.4068, allocations: 305.1 kB / 484.7 MB, free: 7.668 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00223/0.409, allocations: 1.701 MB / 486.4 MB, free: 5.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004178/0.4132, allocations: 5.119 MB / 491.5 MB, free: 15.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00749/0.4207, allocations: 7.412 MB / 498.9 MB, free: 5.992 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.596e-05/0.4208, allocations: 39.94 kB / 499 MB, free: 5.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01003/0.4309, allocations: 6.7 MB / 0.4938 GB, free: 15.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.431, allocations: 63.94 kB / 0.4939 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001562/0.4311, allocations: 120 kB / 0.494 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000623/0.4318, allocations: 325.3 kB / 0.4943 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003379/0.4352, allocations: 1.24 MB / 0.4955 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002456/0.4376, allocations: 2.5 MB / 0.498 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003181/0.4408, allocations: 287.6 kB / 0.4982 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004297/0.4413, allocations: 329.4 kB / 0.4986 GB, free: 10.25 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002599/0.4439, allocations: 1.799 MB / 0.5003 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005548/0.4444, allocations: 304.1 kB / 0.5006 GB, free: 8.141 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004405/0.4489, allocations: 2.37 MB / 0.5029 GB, free: 5.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.401e-05/0.4489, allocations: 22.66 kB / 0.5029 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.4489, allocations: 0 / 0.5029 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.4489, allocations: 11.97 kB / 0.5029 GB, free: 5.719 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/0.4607, allocations: 5.923 MB / 0.5087 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.4607, allocations: 12 kB / 0.5087 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007627/0.4615, allocations: 168.2 kB / 0.5089 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/0.4635, allocations: 0.7201 MB / 0.5096 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.917e-05/0.4636, allocations: 27.44 kB / 0.5096 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005629/0.4693, allocations: 4.81 MB / 0.5143 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.4693, allocations: 4.047 kB / 0.5143 GB, free: 9.883 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006665/0.476, allocations: 4.339 MB / 0.5186 GB, free: 5.512 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009703/0.477, allocations: 364.9 kB / 0.5189 GB, free: 5.133 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006953/0.4777, allocations: 16 kB / 0.5189 GB, free: 5.117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.4792, allocations: 79.78 kB / 0.519 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.4794, allocations: 68.62 kB / 0.5191 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-05/0.4795, allocations: 32 kB / 0.5191 GB, free: 4.941 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00485/0.4843, allocations: 2.319 MB / 0.5214 GB, free: 2.637 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4844, allocations: 0 / 0.5214 GB, free: 2.637 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005504/0.4899, allocations: 0.8036 MB / 0.5222 GB, free: 1.836 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1691/0.659, allocations: 4.967 MB / 0.527 GB, free: 141.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006567/0.6656, allocations: 4.409 MB / 0.5313 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.6656, allocations: 0 / 0.5313 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001435/0.6671, allocations: 1.119 MB / 0.5324 GB, free: 139.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002189/0.6693, allocations: 381.3 kB / 0.5328 GB, free: 139.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03301/0.7023, allocations: 42.19 MB / 0.574 GB, free: 105.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00206/0.7044, allocations: 2.778 MB / 0.5767 GB, free: 103.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003023/0.7074, allocations: 1.664 MB / 0.5783 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/0.7087, allocations: 1.519 MB / 0.5798 GB, free: 100.2 MB / 446.1 MB Notification: Performance of SimCode: time 5.71e-07/0.7087, allocations: 0 / 0.5798 GB, free: 100.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.261/1.97, allocations: 60.99 MB / 0.6393 GB, free: 39.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.27/18.24, allocations: 15 kB / 0.6394 GB, free: 39.56 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches