Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001528/0.001528, allocations: 114.3 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001513/0.001513, allocations: 208 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.431/1.431, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 63.89 kB / 359.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2397, allocations: 50.53 MB / 410.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01292/0.2526, allocations: 10.43 MB / 420.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008664/0.2613, allocations: 3.982 MB / 424.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.2626, allocations: 63.81 kB / 424.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004098/0.2667, allocations: 2.227 MB / 426.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004771/0.2715, allocations: 1.868 MB / 428.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.2731, allocations: 0.7487 MB / 429.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00698/0.2801, allocations: 5.255 MB / 434.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002932/0.283, allocations: 2.46 MB / 437.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002354/0.2854, allocations: 1.48 MB / 438.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002979/0.2884, allocations: 2.037 MB / 440.8 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005386/0.2889, allocations: 300 kB / 441 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001977/0.2909, allocations: 1.174 MB / 442.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001748/0.2926, allocations: 1.881 MB / 444.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002017/0.2946, allocations: 2.047 MB / 446.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007236/0.3019, allocations: 6.662 MB / 452.8 MB, free: 6.621 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3019, allocations: 0 / 452.8 MB, free: 6.621 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3019, allocations: 0 / 452.8 MB, free: 6.621 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.864e-05/0.302, allocations: 0 / 452.8 MB, free: 6.621 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.008895/0.3109, allocations: 4.785 MB / 457.6 MB, free: 1.758 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.3109, allocations: 8.031 kB / 457.6 MB, free: 1.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02663/0.3375, allocations: 3.111 MB / 460.7 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007625/0.3451, allocations: 3.293 MB / 464 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.3453, allocations: 197 kB / 464.2 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000562/0.3459, allocations: 271.8 kB / 464.5 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.3594, allocations: 8.859 MB / 473.3 MB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/0.3595, allocations: 47.66 kB / 473.4 MB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000351/0.3599, allocations: 131.9 kB / 473.5 MB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003211/0.3631, allocations: 1.77 MB / 475.3 MB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01394/0.377, allocations: 7.788 MB / 483.1 MB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0439/0.4209, allocations: 35.92 MB / 0.5068 GB, free: 2.574 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008178/0.4291, allocations: 3.7 MB / 0.5104 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002594/0.4317, allocations: 2.013 MB / 0.5124 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004154/0.4321, allocations: 328.5 kB / 0.5127 GB, free: 12.33 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/0.4322, allocations: 59.5 kB / 0.5128 GB, free: 12.26 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 3.356e-06/0.4322, allocations: 112 / 0.5128 GB, free: 12.26 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05883/0.491, allocations: 21.58 MB / 0.5338 GB, free: 6.574 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000185/0.4912, allocations: 252.6 kB / 0.5341 GB, free: 6.273 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005959/0.4971, allocations: 3.935 MB / 0.5379 GB, free: 2.355 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003859/0.4975, allocations: 53.7 kB / 0.538 GB, free: 2.297 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2228/0.7203, allocations: 2.877 MB / 0.5408 GB, free: 124 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/0.7214, allocations: 0.7557 MB / 0.5415 GB, free: 124 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002317/0.7237, allocations: 1.185 MB / 0.5427 GB, free: 123.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.362e-05/0.7238, allocations: 306.5 kB / 0.543 GB, free: 123.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003166/0.727, allocations: 2.383 MB / 0.5453 GB, free: 122.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00365/0.7306, allocations: 5.637 MB / 0.5508 GB, free: 117.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006592/0.7372, allocations: 8.578 MB / 0.5592 GB, free: 110.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.122e-05/0.7372, allocations: 35.19 kB / 0.5592 GB, free: 110.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01316/0.7504, allocations: 9.612 MB / 0.5686 GB, free: 104.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.481e-05/0.7505, allocations: 55.94 kB / 0.5687 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.697e-05/0.7505, allocations: 116 kB / 0.5688 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004835/0.7554, allocations: 2.018 MB / 0.5707 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00334/0.7587, allocations: 1.28 MB / 0.572 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/0.7704, allocations: 11.36 MB / 0.5831 GB, free: 90.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003785/0.7742, allocations: 348.6 kB / 0.5834 GB, free: 90.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003837/0.7746, allocations: 336 kB / 0.5837 GB, free: 89.9 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.00213/0.7767, allocations: 1.939 MB / 0.5856 GB, free: 88.02 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004901/0.7772, allocations: 365.6 kB / 0.586 GB, free: 87.66 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007895/0.7851, allocations: 4.864 MB / 0.5907 GB, free: 82.78 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.7e-05/0.7851, allocations: 23.94 kB / 0.5907 GB, free: 82.76 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.7851, allocations: 8 kB / 0.5908 GB, free: 82.75 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.741e-05/0.7851, allocations: 7.969 kB / 0.5908 GB, free: 82.74 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01536/0.8005, allocations: 9.983 MB / 0.6005 GB, free: 72.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.8005, allocations: 0 / 0.6005 GB, free: 72.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/0.8018, allocations: 267.6 kB / 0.6008 GB, free: 72.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004758/0.8066, allocations: 1.842 MB / 0.6026 GB, free: 70.64 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000217/0.8068, allocations: 39.52 kB / 0.6026 GB, free: 70.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01116/0.8179, allocations: 10.41 MB / 0.6128 GB, free: 60.05 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.8179, allocations: 0 / 0.6128 GB, free: 60.05 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/0.8287, allocations: 7.939 MB / 0.6205 GB, free: 52.08 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001113/0.8298, allocations: 427.8 kB / 0.6209 GB, free: 51.65 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005055/0.8303, allocations: 32 kB / 0.621 GB, free: 51.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/0.832, allocations: 139.7 kB / 0.6211 GB, free: 51.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003611/0.8324, allocations: 105.2 kB / 0.6212 GB, free: 51.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/0.8325, allocations: 59.81 kB / 0.6213 GB, free: 51.33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002959/0.8355, allocations: 2.476 MB / 0.6237 GB, free: 48.87 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8355, allocations: 0 / 0.6237 GB, free: 48.87 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004362/0.8398, allocations: 1.053 MB / 0.6247 GB, free: 47.82 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.0004131/0.8402, allocations: 165.2 kB / 0.6249 GB, free: 47.66 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0068/0.847, allocations: 5.571 MB / 0.6303 GB, free: 42.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.8471, allocations: 0 / 0.6303 GB, free: 42.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002259/0.8493, allocations: 1.94 MB / 0.6322 GB, free: 40.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.8517, allocations: 468.2 kB / 0.6326 GB, free: 39.69 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.864, allocations: 9.544 MB / 0.642 GB, free: 30.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00246/0.8665, allocations: 3.09 MB / 0.645 GB, free: 27.01 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003435/0.8699, allocations: 1.819 MB / 0.6468 GB, free: 25.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006613/0.8706, allocations: 239.4 kB / 0.647 GB, free: 24.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.493e-06/0.8706, allocations: 0 / 0.647 GB, free: 24.95 MB / 462.1 MB Notification: Performance of Templates: time 0.07304/0.9436, allocations: 42.47 MB / 0.6885 GB, free: 14.72 MB / 494.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches