Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001575/0.001575, allocations: 182.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.167/2.167, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001097, allocations: 82.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.178e-05/3.18e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09778/0.09784, allocations: 47.57 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4393/0.5372, allocations: 92.22 MB / 461.3 MB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/0.5376, allocations: 90.12 kB / 461.4 MB, free: 1.121 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6496/1.187, allocations: 83.11 MB / 0.5317 GB, free: 90.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.255e-06/1.187, allocations: 0 / 0.5317 GB, free: 90.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003293/1.188, allocations: 77.7 kB / 0.5318 GB, free: 90.82 MB / 410.7 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.01765/1.205, allocations: 3.965 MB / 0.5357 GB, free: 90.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/1.205, allocations: 9.438 kB / 0.5357 GB, free: 90.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05059/1.256, allocations: 6.622 MB / 0.5422 GB, free: 89.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02308/1.279, allocations: 5.83 MB / 0.5479 GB, free: 89.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004858/1.28, allocations: 265.3 kB / 0.5481 GB, free: 89.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002265/1.282, allocations: 372.5 kB / 0.5485 GB, free: 89.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02726/1.309, allocations: 9.043 MB / 0.5573 GB, free: 86.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000317/1.31, allocations: 56.94 kB / 0.5573 GB, free: 86.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001742/1.311, allocations: 172.2 kB / 0.5575 GB, free: 86.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00203/1.313, allocations: 0.8963 MB / 0.5584 GB, free: 86.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02181/1.335, allocations: 7.48 MB / 0.5657 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05764/1.393, allocations: 42.31 MB / 0.607 GB, free: 55.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01336/1.406, allocations: 3.734 MB / 0.6107 GB, free: 53.91 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003565/1.41, allocations: 1.939 MB / 0.6125 GB, free: 53.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005626/1.411, allocations: 339.1 kB / 0.6129 GB, free: 52.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4e-05/1.411, allocations: 51.94 kB / 0.6129 GB, free: 52.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 6.021e-06/1.411, allocations: 0 / 0.6129 GB, free: 52.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.07738/1.488, allocations: 17.2 MB / 0.6297 GB, free: 41.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/1.488, allocations: 256.6 kB / 0.63 GB, free: 41.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007701/1.496, allocations: 3.444 MB / 0.6333 GB, free: 37.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005196/1.497, allocations: 57.61 kB / 0.6334 GB, free: 37.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002352/1.499, allocations: 2.738 MB / 0.6361 GB, free: 35.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001142/1.5, allocations: 0.7198 MB / 0.6368 GB, free: 34.76 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006513/1.501, allocations: 108 kB / 0.6369 GB, free: 34.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003751/1.501, allocations: 0.5416 MB / 0.6374 GB, free: 34.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004998/1.506, allocations: 2.042 MB / 0.6394 GB, free: 32.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007228/1.513, allocations: 5.283 MB / 0.6445 GB, free: 25.72 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00712/1.521, allocations: 3.269 MB / 0.6477 GB, free: 22.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.597e-05/1.521, allocations: 32 kB / 0.6478 GB, free: 22.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.02358/1.544, allocations: 8.19 MB / 0.6558 GB, free: 15.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.835e-05/1.544, allocations: 56.03 kB / 0.6558 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001626/1.545, allocations: 119.8 kB / 0.6559 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006681/1.551, allocations: 1.377 MB / 0.6573 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007438/1.559, allocations: 1.228 MB / 0.6585 GB, free: 13.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01768/1.577, allocations: 8.4 MB / 0.6667 GB, free: 4.625 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006734/1.583, allocations: 307.5 kB / 0.667 GB, free: 4.324 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/1.585, allocations: 340 kB / 0.6673 GB, free: 3.992 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (653): * Single equations (assignments): 649 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001174/1.586, allocations: 0.5128 MB / 0.6678 GB, free: 3.469 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009445/1.587, allocations: 363.4 kB / 0.6681 GB, free: 3.109 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01231/1.599, allocations: 3.884 MB / 0.6719 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.895e-05/1.599, allocations: 28 kB / 0.672 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-05/1.599, allocations: 4 kB / 0.672 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.841e-05/1.599, allocations: 11.97 kB / 0.672 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02938/1.629, allocations: 8.898 MB / 0.6807 GB, free: 6.223 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-05/1.629, allocations: 8 kB / 0.6807 GB, free: 6.215 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002655/1.631, allocations: 263.6 kB / 0.6809 GB, free: 5.957 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006699/1.638, allocations: 1.216 MB / 0.6821 GB, free: 4.738 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004629/1.639, allocations: 32 kB / 0.6821 GB, free: 4.707 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3111/1.95, allocations: 7.531 MB / 0.6895 GB, free: 94.42 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/1.95, allocations: 8.578 kB / 0.6895 GB, free: 94.42 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01988/1.97, allocations: 6.767 MB / 0.6961 GB, free: 93.79 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002751/1.973, allocations: 0.6765 MB / 0.6968 GB, free: 93.69 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00125/1.974, allocations: 35.38 kB / 0.6968 GB, free: 93.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003343/1.977, allocations: 112.5 kB / 0.6969 GB, free: 93.69 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006511/1.978, allocations: 109.5 kB / 0.697 GB, free: 93.69 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002318/1.978, allocations: 52.7 kB / 0.6971 GB, free: 93.69 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007113/1.985, allocations: 2.438 MB / 0.6994 GB, free: 93.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.985, allocations: 0 / 0.6994 GB, free: 93.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006945/1.992, allocations: 0.999 MB / 0.7004 GB, free: 93.48 MB / 426.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 131 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008836/1.993, allocations: 169.2 kB / 0.7006 GB, free: 93.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01188/2.005, allocations: 5.126 MB / 0.7056 GB, free: 93.23 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/2.005, allocations: 0 / 0.7056 GB, free: 93.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005181/2.01, allocations: 1.95 MB / 0.7075 GB, free: 93.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004026/2.015, allocations: 454 kB / 0.7079 GB, free: 93.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0212/2.036, allocations: 7.986 MB / 0.7157 GB, free: 91.65 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005931/2.042, allocations: 3.182 MB / 0.7188 GB, free: 90.86 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/2.043, allocations: 282.1 kB / 0.7191 GB, free: 90.86 MB / 426.7 MB Notification: Performance of SimCode: time 1.262e-06/2.043, allocations: 0 / 0.7191 GB, free: 90.86 MB / 426.7 MB Notification: Performance of Templates: time 0.1305/2.174, allocations: 70.6 MB / 0.788 GB, free: 50.8 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/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","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches