Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001845/0.001845, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002325/0.002325, allocations: 213.9 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 230.5 MB / 257.4 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 75.88 kB / 377.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3022, allocations: 53.41 MB / 431.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01297/0.3152, allocations: 10.45 MB / 441.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009167/0.3243, allocations: 4.019 MB / 445.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.3262, allocations: 79.56 kB / 445.7 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004851/0.3311, allocations: 2.246 MB / 448 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005492/0.3366, allocations: 1.883 MB / 449.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001851/0.3384, allocations: 0.7447 MB / 450.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008083/0.3465, allocations: 5.264 MB / 455.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003773/0.3503, allocations: 2.401 MB / 458.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002872/0.3532, allocations: 1.499 MB / 459.8 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00383/0.357, allocations: 2.208 MB / 462 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007795/0.3578, allocations: 300 kB / 462.3 MB, free: 7.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002583/0.3603, allocations: 1.217 MB / 463.5 MB, free: 6.211 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002358/0.3627, allocations: 1.897 MB / 465.4 MB, free: 4.309 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003492/0.3662, allocations: 2.187 MB / 467.6 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.3766, allocations: 6.993 MB / 474.6 MB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3766, allocations: 0 / 474.6 MB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3766, allocations: 0 / 474.6 MB, free: 11.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000252/0.3768, allocations: 0 / 474.6 MB, free: 11.09 MB / 382.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.01601/0.3928, allocations: 4.967 MB / 479.5 MB, free: 6.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/0.3929, allocations: 12.03 kB / 479.6 MB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001569/0.3945, allocations: 0.6167 MB / 480.2 MB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.151/0.5455, allocations: 12.3 MB / 492.5 MB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009445/0.555, allocations: 3.635 MB / 496.1 MB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001915/0.5551, allocations: 197 kB / 496.3 MB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009176/0.5561, allocations: 263.8 kB / 496.6 MB, free: 4.969 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0156/0.5717, allocations: 8.742 MB / 0.4935 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001392/0.5718, allocations: 51.59 kB / 0.4935 GB, free: 11.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003641/0.5722, allocations: 131.8 kB / 0.4936 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003147/0.5753, allocations: 1.77 MB / 0.4954 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/0.5901, allocations: 7.526 MB / 0.5027 GB, free: 2.094 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.257/0.8471, allocations: 35.31 MB / 0.5372 GB, free: 92.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007415/0.8545, allocations: 3.113 MB / 0.5402 GB, free: 92.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00221/0.8567, allocations: 1.904 MB / 0.5421 GB, free: 92.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003396/0.857, allocations: 101.7 kB / 0.5422 GB, free: 92.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.8571, allocations: 59.19 kB / 0.5422 GB, free: 92.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.098e-06/0.8571, allocations: 0 / 0.5422 GB, free: 92.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04732/0.9044, allocations: 20.01 MB / 0.5618 GB, free: 83.18 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.191e-05/0.9045, allocations: 248.6 kB / 0.562 GB, free: 82.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004863/0.9093, allocations: 3.944 MB / 0.5659 GB, free: 79.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004898/0.9098, allocations: 53.7 kB / 0.5659 GB, free: 78.97 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001686/0.9115, allocations: 2.925 MB / 0.5688 GB, free: 76.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008645/0.9124, allocations: 0.7503 MB / 0.5695 GB, free: 75.63 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001345/0.9137, allocations: 1.104 MB / 0.5706 GB, free: 74.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.896e-05/0.9138, allocations: 310.8 kB / 0.5709 GB, free: 74.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00241/0.9162, allocations: 2.166 MB / 0.573 GB, free: 72.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003487/0.9197, allocations: 5.403 MB / 0.5783 GB, free: 65.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006892/0.9266, allocations: 8.194 MB / 0.5863 GB, free: 55.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.166e-05/0.9266, allocations: 35.56 kB / 0.5863 GB, free: 55.42 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01334/0.94, allocations: 8.645 MB / 0.5948 GB, free: 46.76 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.98e-05/0.94, allocations: 56 kB / 0.5948 GB, free: 46.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.921e-05/0.9401, allocations: 112 kB / 0.5949 GB, free: 46.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003658/0.9438, allocations: 1.509 MB / 0.5964 GB, free: 45.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003607/0.9474, allocations: 1.224 MB / 0.5976 GB, free: 43.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.9582, allocations: 9.832 MB / 0.6072 GB, free: 33.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004885/0.9631, allocations: 326.1 kB / 0.6075 GB, free: 33.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001373/0.9645, allocations: 332 kB / 0.6078 GB, free: 33.27 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.003801/0.9683, allocations: 1.934 MB / 0.6097 GB, free: 31.33 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000838/0.9691, allocations: 377.5 kB / 0.6101 GB, free: 30.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006719/0.9758, allocations: 4.127 MB / 0.6141 GB, free: 26.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-05/0.9759, allocations: 20 kB / 0.6141 GB, free: 26.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.9759, allocations: 8 kB / 0.6141 GB, free: 26.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.737e-05/0.9759, allocations: 7.969 kB / 0.6141 GB, free: 26.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.9902, allocations: 9.228 MB / 0.6231 GB, free: 17.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-05/0.9902, allocations: 0 / 0.6231 GB, free: 17.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/0.9915, allocations: 263.6 kB / 0.6234 GB, free: 17.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003407/0.9949, allocations: 1.347 MB / 0.6247 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00026/0.9951, allocations: 37.81 kB / 0.6247 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0101/1.005, allocations: 8.845 MB / 0.6334 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.005, allocations: 3.984 kB / 0.6334 GB, free: 6.918 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009662/1.015, allocations: 7.042 MB / 0.6403 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/1.016, allocations: 357.3 kB / 0.6406 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007161/1.017, allocations: 28 kB / 0.6406 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/1.019, allocations: 119.8 kB / 0.6407 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004192/1.019, allocations: 129 kB / 0.6409 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000152/1.019, allocations: 51.52 kB / 0.6409 GB, free: 15.18 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004645/1.024, allocations: 2.501 MB / 0.6434 GB, free: 12.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.41e-07/1.024, allocations: 0 / 0.6434 GB, free: 12.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005471/1.029, allocations: 0.9921 MB / 0.6443 GB, free: 11.7 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.01334/1.043, allocations: 7.676 MB / 0.6518 GB, free: 3.992 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009568/1.052, allocations: 5.16 MB / 0.6569 GB, free: 14.85 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/1.052, allocations: 0 / 0.6569 GB, free: 14.85 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00369/1.056, allocations: 1.936 MB / 0.6588 GB, free: 12.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003433/1.059, allocations: 499.6 kB / 0.6592 GB, free: 12.42 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08516/1.145, allocations: 45.79 MB / 0.7039 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004806/1.149, allocations: 3.087 MB / 0.707 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004451/1.154, allocations: 1.815 MB / 0.7087 GB, free: 4.73 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002898/1.157, allocations: 1.757 MB / 0.7104 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of SimCode: time 1.733e-06/1.157, allocations: 0 / 0.7104 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3513/1.508, allocations: 79.67 MB / 0.7882 GB, free: 166 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.07/26.58, allocations: 0.75 kB / 0.7882 GB, free: 166 MB / 0.545 GB " [Timeout remaining time 633] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 29.421466029998555]