Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009422/0.0009422, allocations: 47.14 kB / 300.7 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08373/0.08469, allocations: 49.44 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008083/0.09281, allocations: 7.43 MB / 357.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005468/0.09831, allocations: 3.245 MB / 360.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000856/0.0992, allocations: 43.88 kB / 360.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002087/0.1013, allocations: 1.024 MB / 361.9 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002903/0.1043, allocations: 1.368 MB / 363.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000918/0.1052, allocations: 459.1 kB / 363.7 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002895/0.1081, allocations: 2.629 MB / 366.4 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001805/0.1099, allocations: 1.532 MB / 367.9 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001237/0.1112, allocations: 0.833 MB / 368.7 MB, free: 1.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001607/0.1128, allocations: 1.223 MB / 369.9 MB, free: 440 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004961/0.1133, allocations: 172 kB / 370.1 MB, free: 268 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1659/0.2792, allocations: 1.032 MB / 371.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001247/0.2805, allocations: 1.108 MB / 372.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.2819, allocations: 1.307 MB / 373.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00468/0.2866, allocations: 4.2 MB / 377.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2866, allocations: 0 / 377.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2866, allocations: 0 / 377.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.724e-05/0.2867, allocations: 2.125 kB / 377.8 MB, free: 11.06 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.006034/0.2927, allocations: 3.063 MB / 380.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.2928, allocations: 12.78 kB / 380.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006774/0.2935, allocations: 471.7 kB / 381.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006833/0.3003, allocations: 1.744 MB / 383 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003184/0.3035, allocations: 1.691 MB / 384.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.3036, allocations: 134.5 kB / 384.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006499/0.3043, allocations: 256.2 kB / 385.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009614/0.3139, allocations: 6.664 MB / 391.8 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.143e-05/0.314, allocations: 28.44 kB / 391.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002547/0.3143, allocations: 85.12 kB / 391.9 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001831/0.3161, allocations: 1.367 MB / 393.3 MB, free: 4.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00907/0.3252, allocations: 6.039 MB / 399.3 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0273/0.3525, allocations: 25.59 MB / 424.9 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006689/0.3592, allocations: 2.663 MB / 427.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.3605, allocations: 1.046 MB / 428.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00486/0.3653, allocations: 3.844 MB / 432.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.3654, allocations: 54.77 kB / 432.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.286e-06/0.3654, allocations: 0 / 432.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02562/0.391, allocations: 10.3 MB / 442.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001207/0.3922, allocations: 1.681 MB / 444.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003466/0.3957, allocations: 2.726 MB / 447.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001252/0.3959, allocations: 44.83 kB / 447.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.3971, allocations: 2.089 MB / 449.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004385/0.3975, allocations: 0.5026 MB / 449.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00109/0.3986, allocations: 0.9156 MB / 450.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.204e-05/0.3987, allocations: 305.1 kB / 451 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002139/0.4009, allocations: 1.621 MB / 452.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003946/0.4048, allocations: 4.429 MB / 457.1 MB, free: 5.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006757/0.4116, allocations: 6.499 MB / 463.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.862e-05/0.4116, allocations: 28 kB / 463.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01277/0.4244, allocations: 7.034 MB / 470.6 MB, free: 6.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.795e-05/0.4245, allocations: 48.94 kB / 470.7 MB, free: 6.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005908/0.4304, allocations: 2.54 MB / 473.2 MB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00497/0.4354, allocations: 1.494 MB / 474.7 MB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00277/0.4382, allocations: 0.9981 MB / 475.7 MB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009726/0.4479, allocations: 7.778 MB / 483.5 MB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003187/0.4511, allocations: 326 kB / 483.8 MB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003917/0.4515, allocations: 288.1 kB / 484.1 MB, free: 9.223 MB / 398.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.002079/0.4536, allocations: 1.418 MB / 485.5 MB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003803/0.454, allocations: 232.9 kB / 485.7 MB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006314/0.4603, allocations: 2.837 MB / 488.6 MB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005793/0.4661, allocations: 2.513 MB / 491.1 MB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.4662, allocations: 4.469 kB / 491.1 MB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.4662, allocations: 7.969 kB / 491.1 MB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01239/0.4786, allocations: 6.88 MB / 498 MB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.4786, allocations: 0 / 498 MB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007618/0.4794, allocations: 175.7 kB / 498.2 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004794/0.4842, allocations: 1.443 MB / 499.6 MB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.4843, allocations: 27.98 kB / 499.6 MB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009771/0.4941, allocations: 7.936 MB / 0.4957 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009959/0.4951, allocations: 1.541 MB / 0.4972 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008579/0.5037, allocations: 4.848 MB / 0.5019 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000666/0.5044, allocations: 293.9 kB / 0.5022 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002758/0.5047, allocations: 27.98 kB / 0.5022 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.5058, allocations: 111.2 kB / 0.5023 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/0.5061, allocations: 84.48 kB / 0.5024 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.761e-05/0.5062, allocations: 35.98 kB / 0.5024 GB, free: 10.22 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002434/0.5086, allocations: 1.693 MB / 0.5041 GB, free: 8.52 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5086, allocations: 0 / 0.5041 GB, free: 8.52 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003334/0.512, allocations: 0.7618 MB / 0.5048 GB, free: 7.758 MB / 430.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.008513/0.5205, allocations: 5.507 MB / 0.5102 GB, free: 2.203 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006973/0.5275, allocations: 4.675 MB / 0.5148 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5275, allocations: 0 / 0.5148 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002993/0.5305, allocations: 1.716 MB / 0.5165 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.5321, allocations: 260.9 kB / 0.5167 GB, free: 11.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1701/0.7022, allocations: 35.97 MB / 0.5518 GB, free: 134.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001625/0.7038, allocations: 2.286 MB / 0.5541 GB, free: 133.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002611/0.7065, allocations: 1.415 MB / 0.5554 GB, free: 133.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009863/0.7075, allocations: 1.114 MB / 0.5565 GB, free: 132.1 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.7075, allocations: 0 / 0.5565 GB, free: 132.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8165/1.524, allocations: 51.35 MB / 0.6067 GB, free: 82.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.66/19.18, allocations: 3.984 kB / 0.6067 GB, free: 82.93 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches