Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001553/0.001553, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.001806/0.001806, allocations: 187.1 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001178, allocations: 51.91 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.272, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01147/0.2835, allocations: 10.42 MB / 411.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008385/0.2919, allocations: 3.948 MB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00172/0.2937, allocations: 71.75 kB / 415.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004349/0.2981, allocations: 2.204 MB / 418.1 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004636/0.3028, allocations: 1.858 MB / 419.9 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001766/0.3046, allocations: 0.7448 MB / 420.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007075/0.3117, allocations: 5.176 MB / 425.8 MB, free: 372 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003991/0.3157, allocations: 2.887 MB / 428.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002883/0.3186, allocations: 1.487 MB / 430.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003274/0.3219, allocations: 2.04 MB / 432.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.323, allocations: 300 kB / 432.5 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00262/0.3256, allocations: 1.194 MB / 433.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002233/0.3278, allocations: 1.866 MB / 435.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003229/0.3311, allocations: 2.066 MB / 437.7 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008071/0.3392, allocations: 6.681 MB / 444.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.3392, allocations: 0 / 444.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.901e-06/0.3393, allocations: 4 kB / 444.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002595/0.3395, allocations: 3.938 kB / 444.4 MB, free: 13.74 MB / 366.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.01174/0.3513, allocations: 4.666 MB / 449 MB, free: 9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3513, allocations: 12.03 kB / 449 MB, free: 8.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02721/0.3786, allocations: 3.085 MB / 452.1 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008256/0.3869, allocations: 3.331 MB / 455.4 MB, free: 2.504 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/0.3871, allocations: 205 kB / 455.6 MB, free: 2.301 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00109/0.3882, allocations: 271.8 kB / 455.9 MB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01681/0.405, allocations: 8.855 MB / 464.8 MB, free: 8.531 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002155/0.4053, allocations: 47.55 kB / 464.8 MB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009901/0.4063, allocations: 127.9 kB / 464.9 MB, free: 8.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003332/0.4096, allocations: 1.762 MB / 466.7 MB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01602/0.4257, allocations: 7.803 MB / 474.5 MB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04648/0.4722, allocations: 35.85 MB / 0.4984 GB, free: 9.852 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008133/0.4804, allocations: 3.821 MB / 0.5021 GB, free: 5.887 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002645/0.4831, allocations: 2.154 MB / 0.5042 GB, free: 3.723 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004463/0.4836, allocations: 324.2 kB / 0.5045 GB, free: 3.348 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.226e-05/0.4836, allocations: 59.5 kB / 0.5046 GB, free: 3.281 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 4.559e-06/0.4836, allocations: 3.938 kB / 0.5046 GB, free: 3.277 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05657/0.5402, allocations: 21.4 MB / 0.5255 GB, free: 13.75 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/0.5404, allocations: 256.6 kB / 0.5257 GB, free: 13.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006193/0.5466, allocations: 3.934 MB / 0.5296 GB, free: 9.531 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007125/0.5474, allocations: 57.69 kB / 0.5296 GB, free: 9.469 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002293/0.5497, allocations: 2.775 MB / 0.5324 GB, free: 6.656 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001322/0.551, allocations: 0.7211 MB / 0.5331 GB, free: 5.926 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001832/0.5529, allocations: 1.182 MB / 0.5342 GB, free: 4.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.553, allocations: 301.1 kB / 0.5345 GB, free: 4.434 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003336/0.5563, allocations: 2.381 MB / 0.5368 GB, free: 2.047 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2411/0.7974, allocations: 5.633 MB / 0.5423 GB, free: 125.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009411/0.8069, allocations: 8.578 MB / 0.5507 GB, free: 119.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001776/0.8071, allocations: 31.28 kB / 0.5507 GB, free: 119.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01634/0.8234, allocations: 9.617 MB / 0.5601 GB, free: 116.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001164/0.8236, allocations: 59.77 kB / 0.5602 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/0.8238, allocations: 110.2 kB / 0.5603 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005353/0.8291, allocations: 2.027 MB / 0.5623 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004146/0.8333, allocations: 1.283 MB / 0.5635 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/0.8462, allocations: 11.35 MB / 0.5746 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004847/0.8511, allocations: 346.4 kB / 0.5749 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008691/0.852, allocations: 343.8 kB / 0.5753 GB, free: 103 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.002813/0.8548, allocations: 1.949 MB / 0.5772 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006286/0.8555, allocations: 349.2 kB / 0.5775 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007988/0.8635, allocations: 4.884 MB / 0.5823 GB, free: 96.05 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-05/0.8635, allocations: 20 kB / 0.5823 GB, free: 96.03 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.8636, allocations: 11.94 kB / 0.5823 GB, free: 96.02 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-05/0.8636, allocations: 7.969 kB / 0.5823 GB, free: 96.01 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/0.8786, allocations: 10 MB / 0.5921 GB, free: 86.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/0.8786, allocations: 0 / 0.5921 GB, free: 86.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.8799, allocations: 273.5 kB / 0.5923 GB, free: 85.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004534/0.8844, allocations: 1.849 MB / 0.5941 GB, free: 83.91 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002411/0.8847, allocations: 28 kB / 0.5942 GB, free: 83.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/0.8958, allocations: 10.39 MB / 0.6043 GB, free: 73.41 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.8958, allocations: 7.969 kB / 0.6043 GB, free: 73.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01075/0.9066, allocations: 7.947 MB / 0.6121 GB, free: 65.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009885/0.9076, allocations: 416.4 kB / 0.6125 GB, free: 65.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005757/0.9082, allocations: 28 kB / 0.6125 GB, free: 65.03 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/0.9098, allocations: 144 kB / 0.6126 GB, free: 64.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003669/0.9102, allocations: 113 kB / 0.6127 GB, free: 64.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.9103, allocations: 51.98 kB / 0.6128 GB, free: 64.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002948/0.9133, allocations: 2.484 MB / 0.6152 GB, free: 62.26 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9133, allocations: 0 / 0.6152 GB, free: 62.26 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004795/0.9181, allocations: 1.064 MB / 0.6163 GB, free: 61.2 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.0005116/0.9186, allocations: 173 kB / 0.6164 GB, free: 61.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007507/0.9261, allocations: 5.829 MB / 0.6221 GB, free: 55.21 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.9262, allocations: 4 kB / 0.6221 GB, free: 55.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002379/0.9286, allocations: 2.092 MB / 0.6242 GB, free: 53.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002724/0.9313, allocations: 464.9 kB / 0.6246 GB, free: 52.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/0.9445, allocations: 9.769 MB / 0.6341 GB, free: 42.85 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002453/0.947, allocations: 3.075 MB / 0.6371 GB, free: 39.74 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.9481, allocations: 271.4 kB / 0.6374 GB, free: 39.48 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/0.9481, allocations: 5.641 kB / 0.6374 GB, free: 39.47 MB / 462.1 MB Notification: Performance of Templates: time 0.09024/1.038, allocations: 74.5 MB / 0.7102 GB, free: 13.07 MB / 0.4981 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches