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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002355/0.002355, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 55.92 kB / 347.2 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2643, allocations: 49.16 MB / 396.4 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.009466/0.2738, allocations: 10.53 MB / 406.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008498/0.2823, allocations: 3.999 MB / 410.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.2838, allocations: 80.31 kB / 411 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004629/0.2884, allocations: 2.254 MB / 413.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007075/0.2955, allocations: 1.917 MB / 415.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001969/0.2975, allocations: 0.7418 MB / 415.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007963/0.3055, allocations: 4.849 MB / 420.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003745/0.3092, allocations: 2.404 MB / 423.1 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003119/0.3123, allocations: 1.538 MB / 424.7 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004206/0.3165, allocations: 2.221 MB / 426.9 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009442/0.3175, allocations: 300 kB / 427.2 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002821/0.3203, allocations: 1.225 MB / 428.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0022/0.3225, allocations: 1.92 MB / 430.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003013/0.3255, allocations: 2.214 MB / 432.5 MB, free: 15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.3355, allocations: 7.067 MB / 439.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3356, allocations: 0 / 439.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3356, allocations: 4 kB / 439.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002094/0.3358, allocations: 0 / 439.6 MB, free: 7.902 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01386/0.3496, allocations: 5.006 MB / 444.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.3497, allocations: 11.98 kB / 444.6 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009253/0.3506, allocations: 0.6206 MB / 445.3 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1523/0.5029, allocations: 12.31 MB / 457.6 MB, free: 5.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01082/0.5137, allocations: 4.178 MB / 461.7 MB, free: 1.637 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001946/0.5139, allocations: 197 kB / 461.9 MB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001026/0.5149, allocations: 267.8 kB / 462.2 MB, free: 1.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01601/0.5309, allocations: 8.738 MB / 470.9 MB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001566/0.5311, allocations: 47.59 kB / 471 MB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003754/0.5315, allocations: 127.9 kB / 471.1 MB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003205/0.5347, allocations: 1.77 MB / 472.9 MB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01605/0.5507, allocations: 7.53 MB / 480.4 MB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04892/0.5996, allocations: 35.34 MB / 0.5037 GB, free: 9.883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007965/0.6076, allocations: 3.103 MB / 0.5067 GB, free: 6.738 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002844/0.6105, allocations: 1.896 MB / 0.5085 GB, free: 4.832 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004515/0.6109, allocations: 108.9 kB / 0.5087 GB, free: 4.723 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.865e-05/0.611, allocations: 51.55 kB / 0.5087 GB, free: 4.664 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 7.073e-06/0.611, allocations: 7.922 kB / 0.5087 GB, free: 4.656 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05567/0.6666, allocations: 20.13 MB / 0.5284 GB, free: 492 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001708/0.6668, allocations: 260.6 kB / 0.5286 GB, free: 172 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006245/0.6731, allocations: 3.984 MB / 0.5325 GB, free: 12.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004081/0.6735, allocations: 53.7 kB / 0.5326 GB, free: 12.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00237/0.6758, allocations: 2.932 MB / 0.5354 GB, free: 9.137 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009697/0.6768, allocations: 0.7557 MB / 0.5362 GB, free: 8.375 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001538/0.6783, allocations: 1.112 MB / 0.5372 GB, free: 7.254 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.6785, allocations: 301.1 kB / 0.5375 GB, free: 6.957 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003418/0.6819, allocations: 2.166 MB / 0.5396 GB, free: 4.785 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006072/0.688, allocations: 5.402 MB / 0.5449 GB, free: 13.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01056/0.6985, allocations: 8.191 MB / 0.5529 GB, free: 3.988 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.046e-05/0.6986, allocations: 32 kB / 0.553 GB, free: 3.957 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.2105/0.9092, allocations: 8.642 MB / 0.5614 GB, free: 140.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.9093, allocations: 53.75 kB / 0.5614 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001856/0.9095, allocations: 111.8 kB / 0.5616 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004261/0.9137, allocations: 1.502 MB / 0.563 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/0.9181, allocations: 1.224 MB / 0.5642 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/0.931, allocations: 9.844 MB / 0.5738 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00437/0.9354, allocations: 316.7 kB / 0.5741 GB, free: 136.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008502/0.9362, allocations: 332.3 kB / 0.5744 GB, free: 136.2 MB / 478.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.002828/0.9391, allocations: 1.942 MB / 0.5763 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006224/0.9397, allocations: 384.1 kB / 0.5767 GB, free: 135.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006749/0.9464, allocations: 4.122 MB / 0.5807 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.672e-05/0.9465, allocations: 23.5 kB / 0.5808 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.9465, allocations: 11.81 kB / 0.5808 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.9465, allocations: 7.266 kB / 0.5808 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/0.961, allocations: 9.236 MB / 0.5898 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.961, allocations: 0 / 0.5898 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.9621, allocations: 270.6 kB / 0.5901 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003306/0.9654, allocations: 1.342 MB / 0.5914 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001643/0.9656, allocations: 35.83 kB / 0.5914 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00937/0.975, allocations: 8.849 MB / 0.6 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.975, allocations: 4 kB / 0.6 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009173/0.9841, allocations: 7.036 MB / 0.6069 GB, free: 112.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002282/0.9864, allocations: 0.6371 MB / 0.6075 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004455/0.9869, allocations: 36.88 kB / 0.6076 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.9883, allocations: 115.8 kB / 0.6077 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000393/0.9887, allocations: 119 kB / 0.6078 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.9888, allocations: 53.86 kB / 0.6078 GB, free: 111.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003527/0.9924, allocations: 2.526 MB / 0.6103 GB, free: 109.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.9924, allocations: 0 / 0.6103 GB, free: 109.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004348/0.9967, allocations: 1.012 MB / 0.6113 GB, free: 108.3 MB / 478.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.008767/1.005, allocations: 7.679 MB / 0.6188 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006807/1.012, allocations: 5.156 MB / 0.6238 GB, free: 95.43 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/1.012, allocations: 0 / 0.6238 GB, free: 95.43 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002585/1.015, allocations: 1.932 MB / 0.6257 GB, free: 93.49 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002657/1.018, allocations: 496.3 kB / 0.6262 GB, free: 93 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05686/1.074, allocations: 46.04 MB / 0.6712 GB, free: 42.03 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002391/1.077, allocations: 3.091 MB / 0.6742 GB, free: 38.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003391/1.08, allocations: 1.823 MB / 0.676 GB, free: 37.08 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001835/1.082, allocations: 1.761 MB / 0.6777 GB, free: 35.32 MB / 478.1 MB Notification: Performance of SimCode: time 1.353e-06/1.082, allocations: 0 / 0.6777 GB, free: 35.32 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3613/1.443, allocations: 80.02 MB / 0.7558 GB, free: 166.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.48/25.92, allocations: 4.828 kB / 0.7558 GB, free: 166.8 MB / 0.4981 GB " [Timeout remaining time 634] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00059976 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 28.65562802000204]