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.00139/0.00139, allocations: 116.9 kB / 18.45 MB, free: 4.699 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.001625/0.001625, allocations: 212.3 kB / 21.42 MB, free: 1.738 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.449/1.449, allocations: 207.6 MB / 231.8 MB, free: 4.062 MB / 174.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.001763/0.001763, allocations: 56.55 kB / 342.3 MB, free: 9.98 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1046, allocations: 49.13 MB / 391.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01298/0.1176, allocations: 10.5 MB / 401.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008778/0.1264, allocations: 3.976 MB / 405.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.1279, allocations: 79.56 kB / 406 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004466/0.1324, allocations: 2.246 MB / 408.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00517/0.1375, allocations: 1.907 MB / 410.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001842/0.1394, allocations: 0.7448 MB / 410.9 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007133/0.1465, allocations: 4.843 MB / 415.7 MB, free: 320 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003312/0.1498, allocations: 2.472 MB / 418.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002654/0.1525, allocations: 1.522 MB / 419.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003434/0.1559, allocations: 2.224 MB / 421.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006719/0.1566, allocations: 304 kB / 422.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.1589, allocations: 1.217 MB / 423.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002115/0.161, allocations: 1.913 MB / 425.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002499/0.1635, allocations: 2.214 MB / 427.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008989/0.1725, allocations: 7.067 MB / 434.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.1725, allocations: 7.938 kB / 434.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1725, allocations: 4 kB / 434.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001895/0.1727, allocations: 0 / 434.7 MB, free: 13.26 MB / 366.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.01422/0.187, allocations: 5.073 MB / 439.7 MB, free: 8.105 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.187, allocations: 15.97 kB / 439.8 MB, free: 8.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001135/0.1881, allocations: 0.6243 MB / 440.4 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1711/0.3592, allocations: 12.3 MB / 452.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009897/0.3691, allocations: 4.254 MB / 456.9 MB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000194/0.3693, allocations: 197 kB / 457.1 MB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000906/0.3702, allocations: 271.8 kB / 457.4 MB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2041/0.5743, allocations: 8.729 MB / 466.1 MB, free: 59.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001878/0.5745, allocations: 45.72 kB / 466.2 MB, free: 59.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004326/0.5749, allocations: 128.4 kB / 466.3 MB, free: 59.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004027/0.5789, allocations: 1.77 MB / 468.1 MB, free: 59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01625/0.5952, allocations: 7.532 MB / 475.6 MB, free: 56.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03428/0.6295, allocations: 35.44 MB / 0.4991 GB, free: 26.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006846/0.6363, allocations: 3.573 MB / 0.5025 GB, free: 23.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001906/0.6382, allocations: 1.888 MB / 0.5044 GB, free: 21.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003142/0.6385, allocations: 320.9 kB / 0.5047 GB, free: 20.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.6386, allocations: 48.44 kB / 0.5047 GB, free: 20.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.569e-06/0.6386, allocations: 8 kB / 0.5047 GB, free: 20.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04741/0.686, allocations: 20.35 MB / 0.5246 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/0.6861, allocations: 256.6 kB / 0.5249 GB, free: 348 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006402/0.6925, allocations: 3.988 MB / 0.5288 GB, free: 12.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004927/0.693, allocations: 53.7 kB / 0.5288 GB, free: 12.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002904/0.6959, allocations: 2.927 MB / 0.5317 GB, free: 9.562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001557/0.6974, allocations: 0.7509 MB / 0.5324 GB, free: 8.812 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002051/0.6995, allocations: 1.119 MB / 0.5335 GB, free: 7.684 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.6996, allocations: 301.1 kB / 0.5338 GB, free: 7.387 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00358/0.7032, allocations: 2.166 MB / 0.5359 GB, free: 5.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006418/0.7096, allocations: 5.402 MB / 0.5412 GB, free: 14.19 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01183/0.7214, allocations: 8.2 MB / 0.5492 GB, free: 4.406 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/0.7216, allocations: 32 kB / 0.5492 GB, free: 4.375 MB / 414.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02171/0.7433, allocations: 8.643 MB / 0.5576 GB, free: 11.72 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.7434, allocations: 55.91 kB / 0.5577 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001695/0.7436, allocations: 116.9 kB / 0.5578 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004885/0.7484, allocations: 1.499 MB / 0.5593 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004919/0.7534, allocations: 1.224 MB / 0.5605 GB, free: 8.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01687/0.7702, allocations: 9.939 MB / 0.5702 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005317/0.7756, allocations: 319.6 kB / 0.5705 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009524/0.7765, allocations: 332 kB / 0.5708 GB, free: 14.1 MB / 446.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.004319/0.7808, allocations: 1.939 MB / 0.5727 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/0.7819, allocations: 381.6 kB / 0.5731 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008923/0.7908, allocations: 4.128 MB / 0.5771 GB, free: 7.621 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.965e-05/0.7908, allocations: 23.98 kB / 0.5771 GB, free: 7.598 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/0.7908, allocations: 12 kB / 0.5771 GB, free: 7.586 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.307e-05/0.7909, allocations: 11.97 kB / 0.5771 GB, free: 7.574 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01758/0.8084, allocations: 9.267 MB / 0.5862 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.672e-05/0.8085, allocations: 4 kB / 0.5862 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/0.8098, allocations: 263.6 kB / 0.5864 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004212/0.814, allocations: 1.351 MB / 0.5878 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002059/0.8142, allocations: 31.94 kB / 0.5878 GB, free: 12.56 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01346/0.8276, allocations: 8.952 MB / 0.5965 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.8276, allocations: 4 kB / 0.5965 GB, free: 3.457 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/0.8405, allocations: 7.044 MB / 0.6034 GB, free: 12.38 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002185/0.8427, allocations: 0.7132 MB / 0.6041 GB, free: 11.64 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005122/0.8432, allocations: 28 kB / 0.6041 GB, free: 11.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/0.8447, allocations: 123.8 kB / 0.6043 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004121/0.8451, allocations: 117 kB / 0.6044 GB, free: 11.38 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/0.8453, allocations: 48 kB / 0.6044 GB, free: 11.33 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004341/0.8496, allocations: 2.526 MB / 0.6069 GB, free: 8.793 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.8496, allocations: 0 / 0.6069 GB, free: 8.793 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005128/0.8548, allocations: 1.012 MB / 0.6079 GB, free: 7.781 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.01282/0.8676, allocations: 7.687 MB / 0.6154 GB, free: 52 kB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009333/0.8769, allocations: 5.152 MB / 0.6204 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/0.8769, allocations: 0 / 0.6204 GB, free: 10.91 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003781/0.8807, allocations: 1.933 MB / 0.6223 GB, free: 8.973 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003324/0.884, allocations: 498 kB / 0.6228 GB, free: 8.488 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2649/1.149, allocations: 45.94 MB / 0.6676 GB, free: 161.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002823/1.152, allocations: 3.092 MB / 0.6707 GB, free: 160.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003385/1.155, allocations: 1.826 MB / 0.6724 GB, free: 160 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001998/1.157, allocations: 1.76 MB / 0.6742 GB, free: 158.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.162e-06/1.157, allocations: 0 / 0.6742 GB, free: 158.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1087/1.266, allocations: 75.42 MB / 0.7478 GB, free: 86.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.69/23.95, allocations: 0 / 0.7478 GB, free: 86.57 MB / 0.4981 GB " [Timeout remaining time 636] (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: 26.706103686999995]