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.001526/0.00153, allocations: 108.4 kB / 18.36 MB, free: 4.77 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.001689/0.001689, allocations: 191 kB / 19.29 MB, free: 3.848 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.295/1.295, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001152/0.001152, allocations: 52.39 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08066/0.08182, allocations: 46.62 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01114/0.09299, allocations: 10.46 MB / 339.2 MB, free: 9.242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007891/0.1009, allocations: 3.961 MB / 343.2 MB, free: 5.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001411/0.1024, allocations: 71.75 kB / 343.2 MB, free: 5.199 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00387/0.1063, allocations: 2.2 MB / 345.4 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00418/0.1105, allocations: 1.868 MB / 347.3 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.112, allocations: 0.7487 MB / 348 MB, free: 376 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006059/0.1181, allocations: 4.84 MB / 352.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003171/0.1213, allocations: 2.897 MB / 355.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002152/0.1235, allocations: 1.495 MB / 357.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002746/0.1262, allocations: 2.04 MB / 359.3 MB, free: 5.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006665/0.1269, allocations: 304 kB / 359.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002054/0.129, allocations: 1.182 MB / 360.8 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001625/0.1306, allocations: 1.851 MB / 362.6 MB, free: 1.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002253/0.1329, allocations: 2.07 MB / 364.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0068/0.1397, allocations: 6.688 MB / 371.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1397, allocations: 0 / 371.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1397, allocations: 0 / 371.4 MB, free: 8.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001746/0.1399, allocations: 0 / 371.4 MB, free: 8.895 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.009809/0.1497, allocations: 4.686 MB / 376.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1498, allocations: 8.031 kB / 376.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02339/0.1732, allocations: 3.088 MB / 379.2 MB, free: 1.031 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.136/0.3093, allocations: 3.427 MB / 382.6 MB, free: 48.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.3094, allocations: 200 kB / 382.8 MB, free: 48.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00054/0.31, allocations: 272.8 kB / 383.1 MB, free: 48.61 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01188/0.3219, allocations: 8.856 MB / 391.9 MB, free: 44.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.392e-05/0.322, allocations: 44.81 kB / 392 MB, free: 44.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003032/0.3223, allocations: 130.1 kB / 392.1 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002612/0.3249, allocations: 1.776 MB / 393.9 MB, free: 44.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0107/0.3356, allocations: 7.788 MB / 401.7 MB, free: 39.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02846/0.3641, allocations: 35.88 MB / 437.5 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006983/0.3712, allocations: 3.815 MB / 441.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002507/0.3737, allocations: 2.161 MB / 443.5 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004/0.3741, allocations: 328.3 kB / 443.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.3742, allocations: 55.55 kB / 443.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=160): time 4.299e-06/0.3742, allocations: 0 / 443.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=190): time 0.05353/0.4277, allocations: 21.44 MB / 465.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.4278, allocations: 248.6 kB / 465.6 MB, free: 6.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005378/0.4332, allocations: 3.955 MB / 469.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002233/0.4335, allocations: 53.7 kB / 469.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001826/0.4353, allocations: 2.771 MB / 472.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007178/0.436, allocations: 0.7211 MB / 473.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001552/0.4376, allocations: 1.186 MB / 474.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.327e-05/0.4377, allocations: 301.1 kB / 474.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003129/0.4408, allocations: 2.381 MB / 476.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004998/0.4458, allocations: 5.64 MB / 482.6 MB, free: 4.023 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008888/0.4547, allocations: 8.582 MB / 491.1 MB, free: 9.859 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.287e-05/0.4548, allocations: 36 kB / 491.2 MB, free: 9.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01582/0.4706, allocations: 9.617 MB / 0.4891 GB, free: 196 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.4707, allocations: 56 kB / 0.4891 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.059e-05/0.4708, allocations: 116.2 kB / 0.4892 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005196/0.476, allocations: 2.014 MB / 0.4912 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003627/0.4797, allocations: 1.283 MB / 0.4924 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01468/0.4943, allocations: 11.35 MB / 0.5035 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004175/0.4986, allocations: 347.4 kB / 0.5039 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005858/0.4992, allocations: 336 kB / 0.5042 GB, free: 0.5547 MB / 398.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.002599/0.5018, allocations: 1.947 MB / 0.5061 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005968/0.5024, allocations: 351.4 kB / 0.5064 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008944/0.5113, allocations: 4.892 MB / 0.5112 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.244e-05/0.5114, allocations: 24 kB / 0.5112 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.5114, allocations: 11.94 kB / 0.5112 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.5114, allocations: 7.969 kB / 0.5112 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01679/0.5282, allocations: 10.02 MB / 0.521 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.5283, allocations: 0 / 0.521 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/0.5295, allocations: 263.6 kB / 0.5213 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004936/0.5344, allocations: 1.846 MB / 0.5231 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001624/0.5346, allocations: 32 kB / 0.5231 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/0.5476, allocations: 10.39 MB / 0.5333 GB, free: 2.504 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.5476, allocations: 4.031 kB / 0.5333 GB, free: 2.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1639/0.7116, allocations: 7.947 MB / 0.541 GB, free: 142.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002385/0.714, allocations: 0.7244 MB / 0.5417 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006082/0.7146, allocations: 29.72 kB / 0.5418 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/0.7162, allocations: 139.5 kB / 0.5419 GB, free: 142.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003895/0.7166, allocations: 114.7 kB / 0.542 GB, free: 142.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/0.7168, allocations: 50.44 kB / 0.542 GB, free: 142.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004002/0.7208, allocations: 2.499 MB / 0.5445 GB, free: 141.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7208, allocations: 3.969 kB / 0.5445 GB, free: 141.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00479/0.7256, allocations: 1.068 MB / 0.5455 GB, free: 141.6 MB / 430.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.0004299/0.726, allocations: 165.6 kB / 0.5457 GB, free: 141.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007824/0.7339, allocations: 5.826 MB / 0.5514 GB, free: 139.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/0.7339, allocations: 0 / 0.5514 GB, free: 139.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002382/0.7363, allocations: 2.095 MB / 0.5534 GB, free: 138.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002597/0.7389, allocations: 471.5 kB / 0.5539 GB, free: 138.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/0.7512, allocations: 9.44 MB / 0.5631 GB, free: 134.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002823/0.7541, allocations: 3.101 MB / 0.5661 GB, free: 133.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003625/0.7577, allocations: 1.82 MB / 0.5679 GB, free: 132 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007034/0.7585, allocations: 239.6 kB / 0.5681 GB, free: 131.7 MB / 430.1 MB Notification: Performance of SimCode: time 1.273e-06/0.7585, allocations: 0.9844 kB / 0.5681 GB, free: 131.7 MB / 430.1 MB Notification: Performance of Templates: time 0.05604/0.8145, allocations: 40.45 MB / 0.6076 GB, free: 92.09 MB / 430.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches