Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_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.001207/0.001207, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001071/0.001071, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001337, allocations: 55.91 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08566, allocations: 46.61 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.1839/0.2696, allocations: 10.25 MB / 384.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007577/0.2772, allocations: 3.782 MB / 388.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002117/0.2795, allocations: 59.38 kB / 388.7 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00405/0.2835, allocations: 1.944 MB / 390.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005599/0.2892, allocations: 1.701 MB / 392.4 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00164/0.2908, allocations: 0.6103 MB / 393 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005317/0.2961, allocations: 3.337 MB / 396.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003118/0.2993, allocations: 2.587 MB / 398.9 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002278/0.3016, allocations: 1.244 MB / 400.2 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002765/0.3044, allocations: 1.682 MB / 401.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007854/0.3052, allocations: 254.1 kB / 402.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002381/0.3076, allocations: 1.028 MB / 403.1 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001784/0.3094, allocations: 1.586 MB / 404.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002544/0.3119, allocations: 1.837 MB / 406.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007493/0.3194, allocations: 5.866 MB / 412.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3195, allocations: 0 / 412.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3195, allocations: 0 / 412.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002048/0.3197, allocations: 4 kB / 412.4 MB, free: 9.219 MB / 334.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.009881/0.3296, allocations: 4.146 MB / 416.6 MB, free: 5.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.3297, allocations: 16.02 kB / 416.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001383/0.331, allocations: 0.6043 MB / 417.2 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006793/0.3379, allocations: 1.804 MB / 419 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005416/0.3433, allocations: 2.432 MB / 421.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00016/0.3435, allocations: 188.8 kB / 421.6 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006546/0.3442, allocations: 251.8 kB / 421.8 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01401/0.3582, allocations: 8.435 MB / 430.3 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001018/0.3583, allocations: 35.7 kB / 430.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003566/0.3587, allocations: 123.9 kB / 430.4 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002768/0.3615, allocations: 1.707 MB / 432.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01297/0.3744, allocations: 7.098 MB / 439.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03982/0.4143, allocations: 34.09 MB / 473.3 MB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007461/0.4218, allocations: 3.298 MB / 476.6 MB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00184/0.4237, allocations: 1.459 MB / 478.1 MB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00746/0.4312, allocations: 4.367 MB / 482.5 MB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/0.4313, allocations: 51.05 kB / 482.5 MB, free: 1.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 5.099e-06/0.4313, allocations: 0 / 482.5 MB, free: 1.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02916/0.4604, allocations: 11.76 MB / 494.3 MB, free: 5.832 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/0.4606, allocations: 145.1 kB / 494.4 MB, free: 5.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005215/0.4658, allocations: 3.755 MB / 498.2 MB, free: 1.914 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002634/0.4661, allocations: 41.7 kB / 498.2 MB, free: 1.867 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/0.4678, allocations: 2.866 MB / 0.4893 GB, free: 14.97 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006249/0.4685, allocations: 0.5429 MB / 0.4899 GB, free: 14.42 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/0.4698, allocations: 1.087 MB / 0.4909 GB, free: 13.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4699, allocations: 301.1 kB / 0.4912 GB, free: 13.03 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002432/0.4724, allocations: 1.697 MB / 0.4929 GB, free: 11.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004618/0.477, allocations: 5.112 MB / 0.4979 GB, free: 4.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007941/0.485, allocations: 7.409 MB / 0.5051 GB, free: 11.37 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.238e-05/0.4851, allocations: 32 kB / 0.5051 GB, free: 11.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.0108/0.4959, allocations: 6.72 MB / 0.5117 GB, free: 4.609 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.866e-05/0.496, allocations: 56 kB / 0.5117 GB, free: 4.555 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/0.4962, allocations: 120.9 kB / 0.5118 GB, free: 4.438 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006229/0.4968, allocations: 325.1 kB / 0.5122 GB, free: 4.117 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003762/0.5006, allocations: 1.236 MB / 0.5134 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002593/0.5032, allocations: 2.498 MB / 0.5158 GB, free: 248 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003953/0.5071, allocations: 287.6 kB / 0.5161 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007166/0.5079, allocations: 335.9 kB / 0.5164 GB, free: 15.63 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.003137/0.511, allocations: 1.783 MB / 0.5181 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007468/0.5118, allocations: 333.8 kB / 0.5185 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005165/0.517, allocations: 2.367 MB / 0.5208 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.734e-05/0.517, allocations: 16 kB / 0.5208 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.5171, allocations: 4 kB / 0.5208 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.5171, allocations: 7.984 kB / 0.5208 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01543/0.5325, allocations: 5.918 MB / 0.5266 GB, free: 5.109 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.637e-05/0.5326, allocations: 4.062 kB / 0.5266 GB, free: 5.105 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009116/0.5335, allocations: 171.8 kB / 0.5267 GB, free: 4.938 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002285/0.5358, allocations: 0.7185 MB / 0.5274 GB, free: 4.215 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001794/0.536, allocations: 20 kB / 0.5275 GB, free: 4.195 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00626/0.5423, allocations: 4.817 MB / 0.5322 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.5423, allocations: 0 / 0.5322 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007355/0.5497, allocations: 4.339 MB / 0.5364 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/0.5513, allocations: 0.5494 MB / 0.5369 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000719/0.552, allocations: 19.98 kB / 0.537 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/0.5536, allocations: 59.98 kB / 0.537 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002586/0.5538, allocations: 72.56 kB / 0.5371 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001646/0.554, allocations: 39.97 kB / 0.5371 GB, free: 10.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00483/0.5589, allocations: 2.335 MB / 0.5394 GB, free: 7.781 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.733e-06/0.5589, allocations: 0 / 0.5394 GB, free: 7.781 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00501/0.5639, allocations: 0.8201 MB / 0.5402 GB, free: 6.961 MB / 478.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.007659/0.5716, allocations: 4.98 MB / 0.5451 GB, free: 1.945 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2025/0.7741, allocations: 4.026 MB / 0.549 GB, free: 155.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/0.7741, allocations: 1.344 kB / 0.549 GB, free: 155.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.7756, allocations: 1.111 MB / 0.5501 GB, free: 155.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002285/0.7779, allocations: 392.8 kB / 0.5505 GB, free: 155.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04795/0.8259, allocations: 37.8 MB / 0.5874 GB, free: 129.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002362/0.8283, allocations: 2.793 MB / 0.5901 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003077/0.8314, allocations: 1.65 MB / 0.5917 GB, free: 126.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/0.833, allocations: 1.53 MB / 0.5932 GB, free: 125 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.833, allocations: 0 / 0.5932 GB, free: 125 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07996/0.9129, allocations: 57.72 MB / 0.6496 GB, free: 67.22 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.63/24.54, allocations: 11.12 kB / 0.6496 GB, free: 67.21 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches