Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.00178/0.00178, allocations: 198.9 kB / 18 MB, free: 5.082 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.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 51.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2386, allocations: 49.44 MB / 400.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01096/0.2496, allocations: 10.22 MB / 410.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006785/0.2564, allocations: 3.775 MB / 414.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.2576, allocations: 59.81 kB / 414.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003611/0.2613, allocations: 1.946 MB / 416.2 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003682/0.265, allocations: 1.665 MB / 417.9 MB, free: 7.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.2664, allocations: 0.6121 MB / 418.5 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004149/0.2705, allocations: 3.332 MB / 421.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002866/0.2734, allocations: 2.573 MB / 424.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.2751, allocations: 1.238 MB / 425.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002181/0.2773, allocations: 1.674 MB / 427.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005658/0.2779, allocations: 252 kB / 427.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.2797, allocations: 1.034 MB / 428.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001441/0.2812, allocations: 1.574 MB / 430.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002024/0.2832, allocations: 1.844 MB / 432 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005899/0.2891, allocations: 5.831 MB / 437.9 MB, free: 3.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.2891, allocations: 3.984 kB / 437.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2892, allocations: 3.938 kB / 437.9 MB, free: 3.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002065/0.2894, allocations: 0 / 437.9 MB, free: 3.117 MB / 350.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.00902/0.2984, allocations: 4.026 MB / 441.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.2985, allocations: 8.031 kB / 441.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001298/0.2998, allocations: 0.6043 MB / 442.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006793/0.3066, allocations: 1.782 MB / 444.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005077/0.3117, allocations: 2.259 MB / 446.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001736/0.3119, allocations: 192.8 kB / 446.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008104/0.3127, allocations: 255.8 kB / 447 MB, free: 9.852 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01429/0.327, allocations: 8.427 MB / 455.4 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/0.3272, allocations: 39.59 kB / 455.5 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005382/0.3277, allocations: 127.9 kB / 455.6 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002739/0.3305, allocations: 1.695 MB / 457.3 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01257/0.343, allocations: 7.094 MB / 464.4 MB, free: 7.797 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03641/0.3795, allocations: 34.03 MB / 498.4 MB, free: 4.773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007328/0.3868, allocations: 3.279 MB / 0.4899 GB, free: 1.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001778/0.3886, allocations: 1.468 MB / 0.4914 GB, free: 15.86 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006637/0.3953, allocations: 4.361 MB / 0.4956 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.3954, allocations: 47.12 kB / 0.4957 GB, free: 11.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 4.067e-06/0.3954, allocations: 0 / 0.4957 GB, free: 11.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.03124/0.4266, allocations: 11.51 MB / 0.5069 GB, free: 15.57 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.4268, allocations: 149.1 kB / 0.507 GB, free: 15.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006055/0.4328, allocations: 3.726 MB / 0.5107 GB, free: 11.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002016/0.4331, allocations: 45.7 kB / 0.5107 GB, free: 11.63 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001839/0.4349, allocations: 2.748 MB / 0.5134 GB, free: 8.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005717/0.4355, allocations: 0.521 MB / 0.5139 GB, free: 8.312 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001557/0.4371, allocations: 1.071 MB / 0.515 GB, free: 7.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.583e-05/0.4372, allocations: 301.1 kB / 0.5153 GB, free: 6.934 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002413/0.4396, allocations: 1.701 MB / 0.5169 GB, free: 5.227 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004344/0.444, allocations: 5.112 MB / 0.5219 GB, free: 14.38 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007314/0.4513, allocations: 7.398 MB / 0.5291 GB, free: 5.277 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.573e-05/0.4514, allocations: 44 kB / 0.5292 GB, free: 5.234 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.2005/0.6519, allocations: 6.699 MB / 0.5357 GB, free: 125.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003096/0.6523, allocations: 57.03 kB / 0.5358 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004347/0.6528, allocations: 126.6 kB / 0.5359 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.6541, allocations: 322.3 kB / 0.5362 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007117/0.6612, allocations: 1.243 MB / 0.5374 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003557/0.6648, allocations: 2.489 MB / 0.5398 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006319/0.6711, allocations: 285.2 kB / 0.5401 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009213/0.6721, allocations: 335.3 kB / 0.5404 GB, free: 123.7 MB / 462.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.003736/0.6758, allocations: 1.789 MB / 0.5422 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007494/0.6766, allocations: 305.7 kB / 0.5425 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00704/0.6837, allocations: 2.365 MB / 0.5448 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.886e-05/0.6837, allocations: 16.28 kB / 0.5448 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.6838, allocations: 3.844 kB / 0.5448 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.6838, allocations: 3.75 kB / 0.5448 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01832/0.7021, allocations: 5.91 MB / 0.5506 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.273e-05/0.7022, allocations: 3.469 kB / 0.5506 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/0.7037, allocations: 174.2 kB / 0.5507 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003852/0.7075, allocations: 0.7123 MB / 0.5514 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001981/0.7078, allocations: 22.69 kB / 0.5515 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008528/0.7163, allocations: 4.819 MB / 0.5562 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.7164, allocations: 4 kB / 0.5562 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009681/0.7261, allocations: 4.323 MB / 0.5604 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/0.7272, allocations: 369.3 kB / 0.5607 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006714/0.7279, allocations: 19.36 kB / 0.5608 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001927/0.7298, allocations: 71.91 kB / 0.5608 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002821/0.7301, allocations: 64.56 kB / 0.5609 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.7303, allocations: 36.7 kB / 0.5609 GB, free: 112.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004839/0.7351, allocations: 2.323 MB / 0.5632 GB, free: 109.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.7352, allocations: 0 / 0.5632 GB, free: 109.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006814/0.742, allocations: 0.819 MB / 0.564 GB, free: 109.1 MB / 462.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.009807/0.7518, allocations: 4.964 MB / 0.5688 GB, free: 104.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006157/0.758, allocations: 4.03 MB / 0.5728 GB, free: 100.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.758, allocations: 1.219 kB / 0.5728 GB, free: 100.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.7592, allocations: 1.115 MB / 0.5739 GB, free: 98.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/0.7614, allocations: 388.4 kB / 0.5742 GB, free: 98.61 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0359/0.7973, allocations: 37.56 MB / 0.6109 GB, free: 55.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002375/0.7997, allocations: 2.773 MB / 0.6136 GB, free: 53.11 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003029/0.8028, allocations: 1.664 MB / 0.6152 GB, free: 51.44 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00155/0.8043, allocations: 1.519 MB / 0.6167 GB, free: 49.92 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.8043, allocations: 0 / 0.6167 GB, free: 49.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09935/0.9037, allocations: 58.5 MB / 0.6739 GB, free: 7.883 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.96/24.86, allocations: 12.92 kB / 0.6739 GB, free: 7.871 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches