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.001837/0.001837, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002052/0.002052, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.484/1.484, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001622/0.001622, allocations: 47.92 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2488, allocations: 53.36 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01232/0.2611, allocations: 10.47 MB / 441.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00805/0.2691, allocations: 4.018 MB / 445.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001497/0.2706, allocations: 79.56 kB / 445.7 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004631/0.2752, allocations: 2.235 MB / 447.9 MB, free: 5.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004789/0.28, allocations: 1.88 MB / 449.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001867/0.2819, allocations: 0.7447 MB / 450.6 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007614/0.2895, allocations: 5.276 MB / 455.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003751/0.2933, allocations: 2.397 MB / 458.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.296, allocations: 1.503 MB / 459.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003616/0.2996, allocations: 2.212 MB / 462 MB, free: 7.879 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009737/0.3006, allocations: 303.9 kB / 462.3 MB, free: 7.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002658/0.3032, allocations: 1.205 MB / 463.5 MB, free: 6.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002539/0.3058, allocations: 1.893 MB / 465.3 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003579/0.3093, allocations: 2.191 MB / 467.5 MB, free: 2.273 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009315/0.3186, allocations: 6.993 MB / 474.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3187, allocations: 0 / 474.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3187, allocations: 3.844 kB / 474.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000203/0.3189, allocations: 0 / 474.5 MB, free: 11.25 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.01468/0.3335, allocations: 4.967 MB / 479.5 MB, free: 6.223 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3336, allocations: 8.031 kB / 479.5 MB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001501/0.3351, allocations: 0.6206 MB / 480.1 MB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1687/0.5038, allocations: 12.3 MB / 492.4 MB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009396/0.5132, allocations: 3.631 MB / 496.1 MB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000205/0.5134, allocations: 197 kB / 496.3 MB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.5144, allocations: 275.8 kB / 496.5 MB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01657/0.531, allocations: 8.73 MB / 0.4934 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002089/0.5312, allocations: 55.58 kB / 0.4935 GB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008764/0.5321, allocations: 127.9 kB / 0.4936 GB, free: 11.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003421/0.5355, allocations: 1.774 MB / 0.4953 GB, free: 9.785 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01571/0.5512, allocations: 7.522 MB / 0.5027 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2562/0.8074, allocations: 35.31 MB / 0.5372 GB, free: 92.76 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007221/0.8147, allocations: 3.109 MB / 0.5402 GB, free: 92.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002001/0.8167, allocations: 1.903 MB / 0.542 GB, free: 92.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002935/0.817, allocations: 101.3 kB / 0.5421 GB, free: 92.63 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.817, allocations: 51.81 kB / 0.5422 GB, free: 92.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.057e-06/0.817, allocations: 0 / 0.5422 GB, free: 92.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04613/0.8631, allocations: 20 MB / 0.5617 GB, free: 83.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/0.8632, allocations: 254.6 kB / 0.562 GB, free: 83.19 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004371/0.8676, allocations: 3.947 MB / 0.5658 GB, free: 79.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003674/0.8679, allocations: 53.7 kB / 0.5659 GB, free: 79.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.8692, allocations: 2.922 MB / 0.5687 GB, free: 76.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006276/0.8698, allocations: 0.7501 MB / 0.5695 GB, free: 75.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001188/0.871, allocations: 1.104 MB / 0.5705 GB, free: 74.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.389e-05/0.871, allocations: 307.3 kB / 0.5708 GB, free: 74.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002422/0.8735, allocations: 2.166 MB / 0.5729 GB, free: 72.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003411/0.8769, allocations: 5.395 MB / 0.5782 GB, free: 65.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006514/0.8834, allocations: 8.199 MB / 0.5862 GB, free: 55.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.426e-05/0.8835, allocations: 35.94 kB / 0.5863 GB, free: 55.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01336/0.8968, allocations: 8.65 MB / 0.5947 GB, free: 47.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.009e-05/0.8969, allocations: 56 kB / 0.5948 GB, free: 47.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.745e-05/0.897, allocations: 121.5 kB / 0.5949 GB, free: 46.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00376/0.9008, allocations: 1.497 MB / 0.5963 GB, free: 45.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003678/0.9044, allocations: 1.224 MB / 0.5975 GB, free: 44.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.9154, allocations: 9.836 MB / 0.6071 GB, free: 34.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00412/0.9196, allocations: 319.6 kB / 0.6074 GB, free: 33.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007459/0.9203, allocations: 332 kB / 0.6078 GB, free: 33.58 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.002808/0.9231, allocations: 1.946 MB / 0.6097 GB, free: 31.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006915/0.9238, allocations: 373.6 kB / 0.61 GB, free: 31.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006724/0.9305, allocations: 4.123 MB / 0.614 GB, free: 27.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.792e-05/0.9306, allocations: 20 kB / 0.6141 GB, free: 27.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.9306, allocations: 8 kB / 0.6141 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.711e-05/0.9306, allocations: 11.97 kB / 0.6141 GB, free: 27.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01536/0.946, allocations: 9.222 MB / 0.6231 GB, free: 17.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.946, allocations: 0 / 0.6231 GB, free: 17.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.9472, allocations: 267.6 kB / 0.6233 GB, free: 17.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003498/0.9507, allocations: 1.351 MB / 0.6247 GB, free: 16.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002984/0.951, allocations: 37.73 kB / 0.6247 GB, free: 16.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/0.9612, allocations: 8.86 MB / 0.6333 GB, free: 7.207 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.9612, allocations: 0 / 0.6333 GB, free: 7.207 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009835/0.971, allocations: 7.04 MB / 0.6402 GB, free: 144 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/0.9724, allocations: 349.5 kB / 0.6406 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001017/0.9734, allocations: 32 kB / 0.6406 GB, free: 15.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002129/0.9755, allocations: 119.8 kB / 0.6407 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004693/0.976, allocations: 116.8 kB / 0.6408 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000159/0.9762, allocations: 51.94 kB / 0.6409 GB, free: 15.48 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004018/0.9802, allocations: 2.501 MB / 0.6433 GB, free: 13 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.9802, allocations: 0 / 0.6433 GB, free: 13 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004686/0.9849, allocations: 0.9956 MB / 0.6443 GB, free: 12 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.01257/0.9974, allocations: 7.687 MB / 0.6518 GB, free: 4.281 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00914/1.007, allocations: 5.153 MB / 0.6568 GB, free: 15.14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/1.007, allocations: 0 / 0.6568 GB, free: 15.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003621/1.01, allocations: 1.938 MB / 0.6587 GB, free: 13.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003618/1.014, allocations: 493.2 kB / 0.6592 GB, free: 12.72 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07499/1.089, allocations: 45.79 MB / 0.7039 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003894/1.093, allocations: 3.087 MB / 0.7069 GB, free: 6.855 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004012/1.097, allocations: 1.826 MB / 0.7087 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002536/1.099, allocations: 1.749 MB / 0.7104 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of SimCode: time 1.453e-06/1.099, allocations: 0 / 0.7104 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9691/2.068, allocations: 79.69 MB / 0.7882 GB, free: 166.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.87/29.93, allocations: 0 / 0.7882 GB, free: 166.3 MB / 0.545 GB " [Timeout remaining time 630] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 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.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_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: 33.665420070057735]