Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 93.92 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001358, allocations: 173.8 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004502/0.0004503, allocations: 19.98 kB / 281.4 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07838/0.07884, allocations: 47.58 MB / 329 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03284/0.1117, allocations: 37.35 MB / 366.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01931/0.131, allocations: 8.598 MB / 374.9 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007016/0.1381, allocations: 175.5 kB / 375.1 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001407/0.1395, allocations: 394.1 kB / 375.5 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004574/0.1441, allocations: 1.74 MB / 377.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001596/0.1458, allocations: 0.6825 MB / 377.9 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1722/0.318, allocations: 6.732 MB / 384.6 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006732/0.3248, allocations: 3.886 MB / 388.5 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.327, allocations: 1.148 MB / 389.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002815/0.3299, allocations: 1.996 MB / 391.7 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005429/0.3304, allocations: 130.6 kB / 391.8 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.3324, allocations: 1.07 MB / 392.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001629/0.334, allocations: 1.699 MB / 394.6 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001698/0.3357, allocations: 1.876 MB / 396.4 MB, free: 8.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004977/0.3407, allocations: 6.251 MB / 402.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3407, allocations: 0 / 402.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.3408, allocations: 3.156 kB / 402.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001537/0.3409, allocations: 2.906 kB / 402.7 MB, free: 5.664 MB / 318.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.008798/0.3497, allocations: 3.877 MB / 406.6 MB, free: 3.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.282e-05/0.3498, allocations: 11.91 kB / 406.6 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02754/0.3773, allocations: 3.163 MB / 409.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008287/0.3857, allocations: 3.379 MB / 413.1 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.3859, allocations: 195.3 kB / 413.3 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.3871, allocations: 269.7 kB / 413.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01578/0.4029, allocations: 8.881 MB / 422.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001426/0.4031, allocations: 50.47 kB / 422.5 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003909/0.4035, allocations: 129.2 kB / 422.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003323/0.4068, allocations: 1.771 MB / 424.4 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01593/0.4227, allocations: 7.797 MB / 432.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04493/0.4677, allocations: 36.07 MB / 468.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008115/0.4759, allocations: 3.813 MB / 472.1 MB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/0.4786, allocations: 2.16 MB / 474.2 MB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003901/0.479, allocations: 334.2 kB / 474.6 MB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.51e-05/0.4791, allocations: 51.56 kB / 474.6 MB, free: 4.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.288e-06/0.4791, allocations: 0 / 474.6 MB, free: 4.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.06118/0.5403, allocations: 21.45 MB / 496.1 MB, free: 14.67 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.5405, allocations: 252.6 kB / 496.3 MB, free: 14.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005831/0.5463, allocations: 3.958 MB / 0.4885 GB, free: 10.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004129/0.5467, allocations: 53.7 kB / 0.4886 GB, free: 10.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002023/0.5488, allocations: 2.783 MB / 0.4913 GB, free: 7.586 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008608/0.5496, allocations: 0.717 MB / 0.492 GB, free: 6.875 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006837/0.5503, allocations: 0.5024 MB / 0.4925 GB, free: 6.367 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.735e-05/0.5504, allocations: 305.1 kB / 0.4928 GB, free: 6.066 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003448/0.5539, allocations: 2.381 MB / 0.4951 GB, free: 3.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005648/0.5596, allocations: 5.644 MB / 0.5006 GB, free: 12.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009994/0.5696, allocations: 8.564 MB / 0.509 GB, free: 2.785 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.627e-05/0.5697, allocations: 32 kB / 0.509 GB, free: 2.754 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01941/0.5891, allocations: 9.641 MB / 0.5184 GB, free: 9.797 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.631e-05/0.5892, allocations: 52 kB / 0.5185 GB, free: 9.746 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00014/0.5894, allocations: 112 kB / 0.5186 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00585/0.5952, allocations: 2.014 MB / 0.5206 GB, free: 7.617 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004348/0.5996, allocations: 1.287 MB / 0.5218 GB, free: 6.379 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0163/0.6159, allocations: 10.59 MB / 0.5322 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004574/0.6206, allocations: 342.7 kB / 0.5325 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001079/0.6217, allocations: 343.9 kB / 0.5328 GB, free: 10.98 MB / 462.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 (688): * Single equations (assignments): 684 * 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 {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004077/0.6258, allocations: 1.947 MB / 0.5347 GB, free: 9.016 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009381/0.6267, allocations: 347.5 kB / 0.535 GB, free: 8.672 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01056/0.6373, allocations: 4.884 MB / 0.5398 GB, free: 3.773 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.142e-05/0.6374, allocations: 20 kB / 0.5398 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.032e-05/0.6374, allocations: 8 kB / 0.5398 GB, free: 3.746 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.27e-05/0.6374, allocations: 7.969 kB / 0.5399 GB, free: 3.738 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1937/0.8312, allocations: 10.05 MB / 0.5497 GB, free: 173.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/0.8312, allocations: 1.344 kB / 0.5497 GB, free: 173.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.8325, allocations: 271.4 kB / 0.5499 GB, free: 173.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005359/0.8379, allocations: 1.839 MB / 0.5517 GB, free: 173.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001981/0.8381, allocations: 29.86 kB / 0.5517 GB, free: 173.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.85, allocations: 9.71 MB / 0.5612 GB, free: 169.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.8501, allocations: 5.891 kB / 0.5612 GB, free: 169.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0164/0.8665, allocations: 7.946 MB / 0.569 GB, free: 166.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002541/0.869, allocations: 0.7316 MB / 0.5697 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008942/0.87, allocations: 27.62 kB / 0.5697 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002523/0.8725, allocations: 143.4 kB / 0.5699 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005387/0.8731, allocations: 111 kB / 0.57 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002169/0.8733, allocations: 50.06 kB / 0.57 GB, free: 166.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005372/0.8787, allocations: 2.502 MB / 0.5725 GB, free: 165.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.8787, allocations: 0 / 0.5725 GB, free: 165.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008181/0.8869, allocations: 1.067 MB / 0.5735 GB, free: 165.6 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 {(2,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006048/0.8876, allocations: 167.7 kB / 0.5737 GB, free: 165.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01095/0.8985, allocations: 5.803 MB / 0.5793 GB, free: 161.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.8986, allocations: 4 kB / 0.5793 GB, free: 161.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00402/0.9026, allocations: 2.094 MB / 0.5814 GB, free: 159.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005521/0.9081, allocations: 451 kB / 0.5818 GB, free: 159.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01419/0.9223, allocations: 11.42 MB / 0.593 GB, free: 148.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002628/0.925, allocations: 3.107 MB / 0.596 GB, free: 145 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004162/0.9292, allocations: 1.818 MB / 0.5978 GB, free: 143.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006557/0.9299, allocations: 235.4 kB / 0.598 GB, free: 142.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.9299, allocations: 8 kB / 0.598 GB, free: 142.9 MB / 462.1 MB Notification: Performance of Templates: time 0.06369/0.9936, allocations: 42.67 MB / 0.6397 GB, free: 100.3 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches