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.001584/0.001584, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00206/0.00206, allocations: 212.7 kB / 23.73 MB, free: 4.164 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.435/1.435, allocations: 230.5 MB / 257.4 MB, free: 7.781 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.002074/0.002074, allocations: 59.91 kB / 377.7 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2738, allocations: 53.4 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0164/0.2902, allocations: 9.129 MB / 440.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008339/0.2985, allocations: 3.791 MB / 444.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001514/0.3, allocations: 79.56 kB / 444.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004775/0.3048, allocations: 2.141 MB / 446.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004911/0.3097, allocations: 1.887 MB / 448.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001837/0.3116, allocations: 0.7487 MB / 448.9 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007615/0.3192, allocations: 5.268 MB / 454.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003867/0.3231, allocations: 2.389 MB / 456.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002741/0.3258, allocations: 1.507 MB / 458.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003781/0.3296, allocations: 2.099 MB / 460.2 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001217/0.3308, allocations: 300 kB / 460.5 MB, free: 8.992 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002858/0.3336, allocations: 1.084 MB / 461.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002557/0.3362, allocations: 1.885 MB / 463.4 MB, free: 6.016 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003575/0.3398, allocations: 1.655 MB / 465.1 MB, free: 4.352 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009829/0.3496, allocations: 7.016 MB / 472.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3496, allocations: 4 kB / 472.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3496, allocations: 0 / 472.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002532/0.3499, allocations: 7.984 kB / 472.1 MB, free: 13.29 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.01589/0.3658, allocations: 4.959 MB / 477.1 MB, free: 8.273 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001043/0.3659, allocations: 15.98 kB / 477.1 MB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001895/0.3678, allocations: 0.6205 MB / 477.7 MB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2065/0.5742, allocations: 12.3 MB / 490 MB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009564/0.5838, allocations: 3.639 MB / 493.7 MB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002102/0.584, allocations: 201 kB / 493.9 MB, free: 7.418 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.585, allocations: 275.8 kB / 494.1 MB, free: 7.148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01732/0.6023, allocations: 8.834 MB / 0.4912 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002027/0.6026, allocations: 47.66 kB / 0.4912 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008973/0.6034, allocations: 123.9 kB / 0.4913 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003534/0.607, allocations: 1.77 MB / 0.4931 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01635/0.6233, allocations: 7.507 MB / 0.5004 GB, free: 4.191 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05047/0.6738, allocations: 33.59 MB / 0.5332 GB, free: 1.629 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1957/0.8695, allocations: 3.112 MB / 0.5362 GB, free: 101.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00245/0.872, allocations: 1.9 MB / 0.5381 GB, free: 100.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003322/0.8723, allocations: 97.95 kB / 0.5382 GB, free: 100.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.8723, allocations: 50.19 kB / 0.5382 GB, free: 100.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.389e-06/0.8723, allocations: 0 / 0.5382 GB, free: 100.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04875/0.9211, allocations: 20.07 MB / 0.5578 GB, free: 89.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.909e-05/0.9211, allocations: 260.2 kB / 0.5581 GB, free: 89.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004299/0.9254, allocations: 4.136 MB / 0.5621 GB, free: 85.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003642/0.9258, allocations: 49.7 kB / 0.5622 GB, free: 85.29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001211/0.927, allocations: 2.923 MB / 0.565 GB, free: 82.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005649/0.9276, allocations: 0.7511 MB / 0.5658 GB, free: 81.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001116/0.9287, allocations: 1.115 MB / 0.5668 GB, free: 80.76 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.812e-05/0.9287, allocations: 308.7 kB / 0.5671 GB, free: 80.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002326/0.9311, allocations: 2.162 MB / 0.5693 GB, free: 78.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003584/0.9346, allocations: 5.507 MB / 0.5746 GB, free: 71.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007119/0.9418, allocations: 8.191 MB / 0.5826 GB, free: 61.39 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.615e-05/0.9418, allocations: 35.94 kB / 0.5827 GB, free: 61.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.013/0.9548, allocations: 8.649 MB / 0.5911 GB, free: 52.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.732e-05/0.9549, allocations: 59.94 kB / 0.5912 GB, free: 52.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.522e-05/0.955, allocations: 112 kB / 0.5913 GB, free: 52.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003813/0.9588, allocations: 1.496 MB / 0.5927 GB, free: 51.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00351/0.9623, allocations: 1.228 MB / 0.5939 GB, free: 49.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/0.9735, allocations: 9.738 MB / 0.6034 GB, free: 39.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004089/0.9776, allocations: 326.8 kB / 0.6038 GB, free: 39.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006296/0.9782, allocations: 332 kB / 0.6041 GB, free: 39.31 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.002444/0.9807, allocations: 1.937 MB / 0.606 GB, free: 37.37 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006061/0.9813, allocations: 365.6 kB / 0.6063 GB, free: 37.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006993/0.9883, allocations: 4.131 MB / 0.6103 GB, free: 32.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.28e-05/0.9883, allocations: 20 kB / 0.6104 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.9883, allocations: 8 kB / 0.6104 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-05/0.9884, allocations: 11.97 kB / 0.6104 GB, free: 32.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/1.003, allocations: 8.788 MB / 0.619 GB, free: 24.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/1.003, allocations: 0 / 0.619 GB, free: 24.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/1.005, allocations: 267.6 kB / 0.6192 GB, free: 23.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003589/1.008, allocations: 1.351 MB / 0.6205 GB, free: 22.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/1.009, allocations: 35.89 kB / 0.6206 GB, free: 22.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/1.019, allocations: 8.755 MB / 0.6291 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/1.019, allocations: 7.938 kB / 0.6291 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.029, allocations: 7.04 MB / 0.636 GB, free: 6.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/1.03, allocations: 345.4 kB / 0.6363 GB, free: 6.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006909/1.031, allocations: 32 kB / 0.6364 GB, free: 6.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/1.032, allocations: 115.8 kB / 0.6365 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003488/1.033, allocations: 117.1 kB / 0.6366 GB, free: 5.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/1.033, allocations: 52 kB / 0.6366 GB, free: 5.777 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003244/1.036, allocations: 2.497 MB / 0.6391 GB, free: 3.301 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/1.036, allocations: 0 / 0.6391 GB, free: 3.301 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004153/1.04, allocations: 0.9996 MB / 0.6401 GB, free: 2.305 MB / 446.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.01185/1.052, allocations: 7.682 MB / 0.6476 GB, free: 10.58 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008767/1.061, allocations: 5.146 MB / 0.6526 GB, free: 5.445 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/1.061, allocations: 0 / 0.6526 GB, free: 5.445 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003561/1.065, allocations: 1.937 MB / 0.6545 GB, free: 3.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002945/1.067, allocations: 0.4958 MB / 0.655 GB, free: 3.016 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07817/1.146, allocations: 45.78 MB / 0.6997 GB, free: 264 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004119/1.15, allocations: 2.539 MB / 0.7021 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00449/1.154, allocations: 1.823 MB / 0.7039 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002963/1.157, allocations: 1.753 MB / 0.7056 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/1.157, allocations: 0 / 0.7056 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3281/1.485, allocations: 76 MB / 0.7799 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.06/17.54, allocations: 0 / 0.7799 GB, free: 148.7 MB / 0.5294 GB " [Timeout remaining time 642] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 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.mat","/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: 20.97258310392499]