Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001567/0.001567, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001588/0.001588, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.558/1.558, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.114, allocations: 53.33 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2197/0.3337, allocations: 10.43 MB / 436.8 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00819/0.3419, allocations: 3.988 MB / 440.7 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002387/0.3443, allocations: 84.56 kB / 440.8 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004761/0.3491, allocations: 2.229 MB / 443.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005655/0.3547, allocations: 1.857 MB / 444.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002016/0.3567, allocations: 0.7462 MB / 445.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008658/0.3654, allocations: 5.257 MB / 450.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004282/0.3697, allocations: 2.462 MB / 453.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003727/0.3734, allocations: 1.506 MB / 454.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004251/0.3777, allocations: 2.216 MB / 457.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001139/0.3788, allocations: 299.3 kB / 457.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003338/0.3821, allocations: 1.213 MB / 458.6 MB, free: 12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003187/0.3853, allocations: 1.89 MB / 460.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005026/0.3904, allocations: 2.186 MB / 462.7 MB, free: 9.203 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01229/0.4026, allocations: 6.993 MB / 469.7 MB, free: 4.379 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/0.4027, allocations: 0 / 469.7 MB, free: 4.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4027, allocations: 1.406 kB / 469.7 MB, free: 4.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003255/0.403, allocations: 0 / 469.7 MB, free: 4.379 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.02135/0.4243, allocations: 5.045 MB / 474.7 MB, free: 252 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.4244, allocations: 8.031 kB / 474.7 MB, free: 244 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002271/0.4267, allocations: 0.6189 MB / 475.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1726/0.5993, allocations: 12.3 MB / 487.7 MB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01056/0.6099, allocations: 3.715 MB / 491.4 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/0.6101, allocations: 197 kB / 491.6 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001401/0.6115, allocations: 271.8 kB / 491.8 MB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01987/0.6313, allocations: 8.738 MB / 0.4888 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002056/0.6316, allocations: 47.59 kB / 0.4889 GB, free: 5.617 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000888/0.6324, allocations: 127.9 kB / 0.489 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003683/0.6361, allocations: 1.777 MB / 0.4907 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01751/0.6536, allocations: 7.525 MB / 0.4981 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0567/0.7103, allocations: 35.4 MB / 0.5326 GB, free: 7.754 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009122/0.7195, allocations: 3.569 MB / 0.5361 GB, free: 4.043 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003073/0.7225, allocations: 1.889 MB / 0.538 GB, free: 2.141 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005562/0.7231, allocations: 336 kB / 0.5383 GB, free: 1.754 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.02e-05/0.7231, allocations: 59.5 kB / 0.5384 GB, free: 1.688 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.728e-06/0.7232, allocations: 3.938 kB / 0.5384 GB, free: 1.684 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.06311/0.7863, allocations: 20.21 MB / 0.5581 GB, free: 13.38 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/0.7864, allocations: 248.6 kB / 0.5583 GB, free: 13.08 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008803/0.7952, allocations: 3.947 MB / 0.5622 GB, free: 9.156 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007012/0.7959, allocations: 53.7 kB / 0.5622 GB, free: 9.098 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003528/0.7995, allocations: 2.924 MB / 0.5651 GB, free: 6.148 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001676/0.8012, allocations: 0.7597 MB / 0.5658 GB, free: 5.383 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002708/0.8039, allocations: 1.104 MB / 0.5669 GB, free: 4.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.804, allocations: 301.1 kB / 0.5672 GB, free: 3.973 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004244/0.8083, allocations: 2.166 MB / 0.5693 GB, free: 1.801 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007351/0.8156, allocations: 5.402 MB / 0.5746 GB, free: 10.78 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01185/0.8275, allocations: 8.203 MB / 0.5826 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/0.8276, allocations: 32 kB / 0.5826 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01936/0.8469, allocations: 8.643 MB / 0.5911 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.815e-05/0.847, allocations: 56 kB / 0.5911 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001554/0.8472, allocations: 116.2 kB / 0.5912 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004781/0.852, allocations: 1.495 MB / 0.5927 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004814/0.8568, allocations: 1.228 MB / 0.5939 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01649/0.8733, allocations: 9.934 MB / 0.6036 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005621/0.8789, allocations: 315.6 kB / 0.6039 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001421/0.8803, allocations: 335.9 kB / 0.6042 GB, free: 10.7 MB / 0.5137 GB 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.005333/0.8857, allocations: 1.938 MB / 0.6061 GB, free: 8.75 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/0.8868, allocations: 373.5 kB / 0.6065 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009958/0.8968, allocations: 4.127 MB / 0.6105 GB, free: 4.242 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.099e-05/0.8968, allocations: 20 kB / 0.6105 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/0.8969, allocations: 11.94 kB / 0.6105 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.261e-05/0.8969, allocations: 11.97 kB / 0.6105 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2391/1.136, allocations: 9.251 MB / 0.6196 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.217e-05/1.136, allocations: 1.766 kB / 0.6196 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/1.138, allocations: 279.2 kB / 0.6198 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004623/1.142, allocations: 1.34 MB / 0.6212 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004606/1.143, allocations: 30.92 kB / 0.6212 GB, free: 161.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01308/1.156, allocations: 8.949 MB / 0.6299 GB, free: 157.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.156, allocations: 1.781 kB / 0.6299 GB, free: 157.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01198/1.168, allocations: 7.038 MB / 0.6368 GB, free: 155.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001086/1.169, allocations: 418.1 kB / 0.6372 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006617/1.169, allocations: 42.62 kB / 0.6372 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001745/1.171, allocations: 114 kB / 0.6373 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004452/1.172, allocations: 107 kB / 0.6374 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/1.172, allocations: 58.08 kB / 0.6375 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004552/1.176, allocations: 2.504 MB / 0.6399 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.3e-07/1.176, allocations: 0 / 0.6399 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005802/1.182, allocations: 0.9908 MB / 0.6409 GB, free: 154.2 MB / 0.5137 GB 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.01091/1.193, allocations: 7.688 MB / 0.6484 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007957/1.201, allocations: 5.158 MB / 0.6535 GB, free: 149.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.201, allocations: 0 / 0.6535 GB, free: 149.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003219/1.204, allocations: 1.936 MB / 0.6553 GB, free: 148.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003787/1.208, allocations: 0.4936 MB / 0.6558 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.068/1.276, allocations: 45.7 MB / 0.7005 GB, free: 98.46 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004204/1.28, allocations: 3.09 MB / 0.7035 GB, free: 95.36 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003866/1.284, allocations: 1.824 MB / 0.7053 GB, free: 93.53 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003161/1.287, allocations: 1.745 MB / 0.707 GB, free: 91.79 MB / 0.5137 GB Notification: Performance of SimCode: time 2.285e-06/1.287, allocations: 4 kB / 0.707 GB, free: 91.78 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1165/1.404, allocations: 75.09 MB / 0.7803 GB, free: 17.21 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.98/24.38, allocations: 0 / 0.7803 GB, free: 17.21 MB / 0.5137 GB " [Timeout remaining time 635] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 27.20478536200244]