Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",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.0012/0.0012, allocations: 115.5 kB / 17.28 MB, free: 6.047 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.0009907/0.0009907, allocations: 185.4 kB / 18.2 MB, free: 5.152 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.361/1.361, allocations: 205.1 MB / 224 MB, free: 12.43 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.001235/0.001235, allocations: 56.14 kB / 280.2 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09257/0.09382, allocations: 46.63 MB / 326.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03514/0.129, allocations: 38.43 MB / 365.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01819/0.1472, allocations: 8.558 MB / 373.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007448/0.1548, allocations: 171.5 kB / 374 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004239/0.1591, allocations: 2.127 MB / 376.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004506/0.1636, allocations: 1.729 MB / 377.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.1651, allocations: 0.6983 MB / 378.6 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1524/0.3175, allocations: 5.065 MB / 383.7 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004253/0.3218, allocations: 3.046 MB / 386.7 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002596/0.3244, allocations: 1.519 MB / 388.2 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00289/0.3273, allocations: 2.297 MB / 390.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000586/0.3279, allocations: 304.3 kB / 390.8 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002068/0.33, allocations: 1.194 MB / 392 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001725/0.3317, allocations: 1.874 MB / 393.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00214/0.3339, allocations: 2.238 MB / 396.1 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006526/0.3404, allocations: 6.87 MB / 403 MB, free: 6.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3404, allocations: 3.938 kB / 403 MB, free: 6.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3404, allocations: 0 / 403 MB, free: 6.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001403/0.3406, allocations: 2.438 kB / 403 MB, free: 6.371 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.0109/0.3515, allocations: 4.952 MB / 407.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3515, allocations: 9.562 kB / 408 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006726/0.3522, allocations: 0.6306 MB / 408.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1498/0.502, allocations: 12.27 MB / 420.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008559/0.5106, allocations: 4.173 MB / 425 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.5108, allocations: 202 kB / 425.2 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006325/0.5114, allocations: 280.3 kB / 425.5 MB, free: 5.109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0125/0.5239, allocations: 8.723 MB / 434.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/0.5241, allocations: 54.55 kB / 434.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003272/0.5244, allocations: 128.7 kB / 434.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002848/0.5273, allocations: 1.764 MB / 436.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/0.5395, allocations: 7.531 MB / 443.7 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03567/0.5752, allocations: 35.55 MB / 479.2 MB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007026/0.5822, allocations: 3.687 MB / 482.9 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002087/0.5843, allocations: 2.027 MB / 485 MB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003383/0.5847, allocations: 330.8 kB / 485.3 MB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.5847, allocations: 58.92 kB / 485.3 MB, free: 8.219 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 3.577e-06/0.5847, allocations: 0 / 485.3 MB, free: 8.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.04811/0.6329, allocations: 20.14 MB / 0.4936 GB, free: 4.023 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.633, allocations: 260.6 kB / 0.4939 GB, free: 3.715 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005084/0.6381, allocations: 3.979 MB / 0.4978 GB, free: 15.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003657/0.6385, allocations: 56.91 kB / 0.4978 GB, free: 15.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00165/0.6401, allocations: 2.821 MB / 0.5006 GB, free: 12.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007431/0.6409, allocations: 0.7131 MB / 0.5013 GB, free: 12.12 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001303/0.6422, allocations: 1.102 MB / 0.5024 GB, free: 11.01 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.322e-05/0.6423, allocations: 305.1 kB / 0.5026 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002749/0.6451, allocations: 2.166 MB / 0.5048 GB, free: 8.535 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00461/0.6497, allocations: 5.409 MB / 0.51 GB, free: 1.562 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008506/0.6582, allocations: 8.191 MB / 0.518 GB, free: 8.262 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.882e-05/0.6583, allocations: 32 kB / 0.5181 GB, free: 8.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01481/0.6731, allocations: 8.663 MB / 0.5265 GB, free: 220 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.045e-05/0.6732, allocations: 56 kB / 0.5266 GB, free: 164 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001083/0.6733, allocations: 114.1 kB / 0.5267 GB, free: 52 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003957/0.6773, allocations: 1.504 MB / 0.5282 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003734/0.6811, allocations: 1.232 MB / 0.5294 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01203/0.6931, allocations: 9.93 MB / 0.5391 GB, free: 3.242 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004127/0.6972, allocations: 319.6 kB / 0.5394 GB, free: 2.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006546/0.6979, allocations: 328 kB / 0.5397 GB, free: 2.609 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (650): * Single equations (assignments): 646 * 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 {(2,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002774/0.7007, allocations: 1.942 MB / 0.5416 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006418/0.7014, allocations: 359.4 kB / 0.5419 GB, free: 308 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1389/0.8403, allocations: 4.143 MB / 0.546 GB, free: 176 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.597e-05/0.8404, allocations: 24.44 kB / 0.546 GB, free: 176 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.317e-05/0.8404, allocations: 7.406 kB / 0.546 GB, free: 176 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.155e-05/0.8405, allocations: 15.14 kB / 0.546 GB, free: 176 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01713/0.8576, allocations: 9.321 MB / 0.5551 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.8576, allocations: 0 / 0.5551 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.8588, allocations: 263.5 kB / 0.5554 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003571/0.8624, allocations: 1.356 MB / 0.5567 GB, free: 172.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/0.8626, allocations: 30.03 kB / 0.5567 GB, free: 172.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009582/0.8722, allocations: 8.957 MB / 0.5655 GB, free: 168.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.8722, allocations: 4.531 kB / 0.5655 GB, free: 168.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008753/0.881, allocations: 7.036 MB / 0.5723 GB, free: 166 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.8823, allocations: 0.6965 MB / 0.573 GB, free: 165.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006808/0.883, allocations: 34.69 kB / 0.573 GB, free: 165.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001594/0.8846, allocations: 113 kB / 0.5732 GB, free: 165.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003273/0.885, allocations: 119.7 kB / 0.5733 GB, free: 165.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.8851, allocations: 47.47 kB / 0.5733 GB, free: 165.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003557/0.8887, allocations: 2.534 MB / 0.5758 GB, free: 164.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8887, allocations: 2.812 kB / 0.5758 GB, free: 164.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00367/0.8923, allocations: 1.005 MB / 0.5768 GB, free: 164.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (136): * Single equations (assignments): 132 * 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00875/0.9011, allocations: 7.689 MB / 0.5843 GB, free: 156.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008418/0.9095, allocations: 6.423 MB / 0.5906 GB, free: 150.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.9096, allocations: 7.938 kB / 0.5906 GB, free: 150.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002836/0.9124, allocations: 2.073 MB / 0.5926 GB, free: 148.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003134/0.9156, allocations: 499.7 kB / 0.5931 GB, free: 147.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06925/0.9848, allocations: 53.49 MB / 0.6453 GB, free: 87.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002343/0.9872, allocations: 3.099 MB / 0.6483 GB, free: 83.99 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003516/0.9908, allocations: 1.827 MB / 0.6501 GB, free: 82.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/0.9926, allocations: 1.761 MB / 0.6518 GB, free: 80.39 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.9927, allocations: 0 / 0.6518 GB, free: 80.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2247/1.217, allocations: 78.11 MB / 0.7281 GB, free: 162.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001394/1.218, allocations: 240 kB / 0.7283 GB, free: 162.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.166/5.383, allocations: 0 / 0.7283 GB, free: 162.3 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches