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.00133/0.00133, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001205/0.001205, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.492/1.492, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001638/0.001638, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1078, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.237/0.3448, allocations: 10.23 MB / 384.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008149/0.353, allocations: 3.787 MB / 388.7 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002408/0.3555, allocations: 58.59 kB / 388.7 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004303/0.3599, allocations: 1.947 MB / 390.7 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00598/0.3659, allocations: 1.658 MB / 392.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.3678, allocations: 0.6104 MB / 393 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006316/0.3742, allocations: 3.331 MB / 396.3 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004203/0.3784, allocations: 2.589 MB / 398.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002963/0.3814, allocations: 1.246 MB / 400.1 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003297/0.3847, allocations: 1.676 MB / 401.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001174/0.386, allocations: 253.6 kB / 402 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003272/0.3892, allocations: 1.017 MB / 403.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002459/0.3917, allocations: 1.571 MB / 404.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004023/0.3958, allocations: 1.837 MB / 406.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009878/0.4057, allocations: 5.866 MB / 412.3 MB, free: 9.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.354e-05/0.4057, allocations: 7.984 kB / 412.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.4057, allocations: 1.094 kB / 412.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002672/0.406, allocations: 0 / 412.3 MB, free: 9.234 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.01137/0.4174, allocations: 4.142 MB / 416.5 MB, free: 5.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.929e-05/0.4175, allocations: 16.03 kB / 416.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001406/0.4189, allocations: 0.6082 MB / 417.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00678/0.4257, allocations: 1.8 MB / 418.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005613/0.4313, allocations: 2.44 MB / 421.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/0.4316, allocations: 184.8 kB / 421.5 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008317/0.4324, allocations: 255.8 kB / 421.8 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01679/0.4492, allocations: 8.427 MB / 430.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000119/0.4494, allocations: 39.64 kB / 430.2 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000425/0.4498, allocations: 127.8 kB / 430.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003025/0.4529, allocations: 1.699 MB / 432.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01512/0.468, allocations: 7.098 MB / 439.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04755/0.5156, allocations: 34.1 MB / 473.3 MB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007933/0.5236, allocations: 3.294 MB / 476.6 MB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002133/0.5258, allocations: 1.459 MB / 478 MB, free: 6.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007605/0.5334, allocations: 4.363 MB / 482.4 MB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.5335, allocations: 47.06 kB / 482.4 MB, free: 1.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 4.529e-06/0.5335, allocations: 0 / 482.4 MB, free: 1.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03065/0.5641, allocations: 11.77 MB / 494.2 MB, free: 5.883 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.5643, allocations: 141.2 kB / 494.3 MB, free: 5.715 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006121/0.5704, allocations: 3.755 MB / 498.1 MB, free: 1.969 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003175/0.5708, allocations: 41.7 kB / 498.1 MB, free: 1.922 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002582/0.5734, allocations: 2.87 MB / 0.4893 GB, free: 15.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008251/0.5742, allocations: 0.5429 MB / 0.4898 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001661/0.5759, allocations: 1.084 MB / 0.4909 GB, free: 13.38 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.576, allocations: 305.1 kB / 0.4911 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002663/0.5787, allocations: 1.697 MB / 0.4928 GB, free: 11.38 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005887/0.5846, allocations: 5.112 MB / 0.4978 GB, free: 4.535 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009718/0.5943, allocations: 7.404 MB / 0.505 GB, free: 11.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.954e-05/0.5945, allocations: 32 kB / 0.5051 GB, free: 11.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01326/0.6078, allocations: 6.725 MB / 0.5116 GB, free: 4.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.666e-05/0.6079, allocations: 60 kB / 0.5117 GB, free: 4.602 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001541/0.6081, allocations: 124.1 kB / 0.5118 GB, free: 4.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007382/0.6088, allocations: 316.7 kB / 0.5121 GB, free: 4.168 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004289/0.6131, allocations: 1.24 MB / 0.5133 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003084/0.6162, allocations: 2.505 MB / 0.5158 GB, free: 288 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004446/0.6207, allocations: 283.6 kB / 0.516 GB, free: 4 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007447/0.6214, allocations: 332 kB / 0.5163 GB, free: 15.68 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.003521/0.625, allocations: 1.783 MB / 0.5181 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007961/0.6258, allocations: 329.7 kB / 0.5184 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005079/0.6309, allocations: 2.371 MB / 0.5207 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-05/0.6309, allocations: 16 kB / 0.5207 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.6309, allocations: 4 kB / 0.5207 GB, free: 11.15 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.631, allocations: 7.984 kB / 0.5207 GB, free: 11.14 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/0.6438, allocations: 5.922 MB / 0.5265 GB, free: 5.152 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/0.6438, allocations: 0 / 0.5265 GB, free: 5.152 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008788/0.6447, allocations: 171.8 kB / 0.5267 GB, free: 4.984 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002268/0.647, allocations: 0.7147 MB / 0.5274 GB, free: 4.266 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/0.6471, allocations: 20 kB / 0.5274 GB, free: 4.246 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006791/0.6539, allocations: 4.813 MB / 0.5321 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.654, allocations: 3.938 kB / 0.5321 GB, free: 15.28 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007701/0.6617, allocations: 4.331 MB / 0.5363 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/0.6634, allocations: 0.5495 MB / 0.5369 GB, free: 10.35 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005385/0.664, allocations: 24 kB / 0.5369 GB, free: 10.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.6652, allocations: 67.91 kB / 0.537 GB, free: 10.26 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.6654, allocations: 72.5 kB / 0.537 GB, free: 10.19 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.6655, allocations: 35.98 kB / 0.5371 GB, free: 10.15 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004449/0.67, allocations: 2.339 MB / 0.5393 GB, free: 7.828 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.67, allocations: 0 / 0.5393 GB, free: 7.828 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005338/0.6753, allocations: 0.8202 MB / 0.5401 GB, free: 7.008 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.008173/0.6835, allocations: 4.976 MB / 0.545 GB, free: 1.996 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2263/0.9098, allocations: 4.027 MB / 0.5489 GB, free: 155.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.9099, allocations: 0 / 0.5489 GB, free: 155.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002006/0.9119, allocations: 1.115 MB / 0.55 GB, free: 155.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00343/0.9154, allocations: 387.2 kB / 0.5504 GB, free: 155.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07091/0.9863, allocations: 37.81 MB / 0.5873 GB, free: 129.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004063/0.9905, allocations: 2.78 MB / 0.59 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003856/0.9944, allocations: 1.656 MB / 0.5916 GB, free: 126.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00277/0.9972, allocations: 1.53 MB / 0.5931 GB, free: 125 MB / 478.1 MB Notification: Performance of SimCode: time 3.247e-06/0.9972, allocations: 3.938 kB / 0.5931 GB, free: 125 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1063/1.104, allocations: 57.72 MB / 0.6495 GB, free: 67.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.22/25.33, allocations: 7.922 kB / 0.6495 GB, free: 67.26 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