Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00113/0.00113, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2954, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01249/0.3079, allocations: 10.4 MB / 419.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008181/0.3161, allocations: 3.944 MB / 423.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.318, allocations: 67.81 kB / 423.7 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004215/0.3223, allocations: 2.207 MB / 425.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004698/0.327, allocations: 1.869 MB / 427.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001673/0.3287, allocations: 0.7409 MB / 428.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007143/0.3359, allocations: 5.26 MB / 433.7 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004047/0.3399, allocations: 2.878 MB / 436.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002739/0.3427, allocations: 1.48 MB / 438.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003172/0.3459, allocations: 2.029 MB / 440.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001082/0.347, allocations: 304 kB / 440.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003149/0.3502, allocations: 1.174 MB / 441.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002747/0.353, allocations: 1.859 MB / 443.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003895/0.3569, allocations: 2.043 MB / 445.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007905/0.3648, allocations: 6.642 MB / 452.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3649, allocations: 3.938 kB / 452.1 MB, free: 6.512 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3649, allocations: 0 / 452.1 MB, free: 6.512 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002119/0.3651, allocations: 0 / 452.1 MB, free: 6.512 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.01224/0.3773, allocations: 4.655 MB / 456.8 MB, free: 1.785 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.3774, allocations: 12.03 kB / 456.8 MB, free: 1.773 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02384/0.4013, allocations: 3.088 MB / 459.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007939/0.4092, allocations: 3.284 MB / 463.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000252/0.4095, allocations: 205 kB / 463.4 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001221/0.4108, allocations: 275.7 kB / 463.7 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01402/0.4248, allocations: 8.851 MB / 472.5 MB, free: 1.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/0.4249, allocations: 39.66 kB / 472.5 MB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003228/0.4253, allocations: 131.9 kB / 472.7 MB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002706/0.428, allocations: 1.77 MB / 474.4 MB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01321/0.4412, allocations: 7.796 MB / 482.2 MB, free: 7.613 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0396/0.4808, allocations: 35.86 MB / 0.506 GB, free: 2.676 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007851/0.4887, allocations: 3.805 MB / 0.5097 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002535/0.4913, allocations: 2.162 MB / 0.5118 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004065/0.4917, allocations: 332 kB / 0.5121 GB, free: 12.17 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.4918, allocations: 59.5 kB / 0.5122 GB, free: 12.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 3.757e-06/0.4918, allocations: 0 / 0.5122 GB, free: 12.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05269/0.5445, allocations: 21.4 MB / 0.5331 GB, free: 6.582 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.5446, allocations: 248.6 kB / 0.5333 GB, free: 6.285 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0053/0.55, allocations: 3.93 MB / 0.5371 GB, free: 2.371 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004402/0.5504, allocations: 53.7 kB / 0.5372 GB, free: 2.312 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2402/0.7906, allocations: 2.768 MB / 0.5399 GB, free: 124.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001143/0.7918, allocations: 0.7234 MB / 0.5406 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002365/0.7942, allocations: 1.18 MB / 0.5417 GB, free: 124.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.624e-05/0.7942, allocations: 302.1 kB / 0.542 GB, free: 124 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003293/0.7975, allocations: 2.386 MB / 0.5444 GB, free: 123.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003848/0.8014, allocations: 5.639 MB / 0.5499 GB, free: 118.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007038/0.8085, allocations: 8.58 MB / 0.5582 GB, free: 111.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.083e-05/0.8085, allocations: 31.94 kB / 0.5583 GB, free: 111.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01334/0.8219, allocations: 9.625 MB / 0.5677 GB, free: 105.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.736e-05/0.822, allocations: 59.7 kB / 0.5677 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.812e-05/0.822, allocations: 115.9 kB / 0.5678 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004547/0.8266, allocations: 2.012 MB / 0.5698 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003373/0.83, allocations: 1.282 MB / 0.5711 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/0.8422, allocations: 11.35 MB / 0.5821 GB, free: 91.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004557/0.8468, allocations: 343.4 kB / 0.5825 GB, free: 90.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009746/0.8478, allocations: 332 kB / 0.5828 GB, free: 90.36 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.003773/0.8516, allocations: 1.939 MB / 0.5847 GB, free: 88.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009296/0.8525, allocations: 343.5 kB / 0.585 GB, free: 88.07 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008625/0.8611, allocations: 4.903 MB / 0.5898 GB, free: 83.15 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.582e-05/0.8612, allocations: 23.83 kB / 0.5898 GB, free: 83.13 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.399e-05/0.8613, allocations: 12 kB / 0.5898 GB, free: 83.12 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.722e-05/0.8613, allocations: 15.44 kB / 0.5898 GB, free: 83.11 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01829/0.8796, allocations: 9.992 MB / 0.5996 GB, free: 73.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.246e-05/0.8796, allocations: 0 / 0.5996 GB, free: 73.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/0.8809, allocations: 264.7 kB / 0.5999 GB, free: 72.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004591/0.8855, allocations: 1.846 MB / 0.6017 GB, free: 70.98 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002368/0.8858, allocations: 28 kB / 0.6017 GB, free: 70.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/0.8968, allocations: 10.41 MB / 0.6119 GB, free: 60.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.8968, allocations: 0 / 0.6119 GB, free: 60.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01035/0.9072, allocations: 7.95 MB / 0.6196 GB, free: 52.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008881/0.9081, allocations: 404.6 kB / 0.62 GB, free: 52.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006986/0.9088, allocations: 28 kB / 0.62 GB, free: 51.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001778/0.9106, allocations: 147.7 kB / 0.6202 GB, free: 51.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000336/0.9109, allocations: 105.2 kB / 0.6203 GB, free: 51.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/0.9111, allocations: 55.92 kB / 0.6203 GB, free: 51.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003695/0.9148, allocations: 2.472 MB / 0.6227 GB, free: 49.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.9148, allocations: 0 / 0.6227 GB, free: 49.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004811/0.9196, allocations: 1.068 MB / 0.6238 GB, free: 48.17 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.0004523/0.9201, allocations: 157.7 kB / 0.6239 GB, free: 48.01 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00853/0.9286, allocations: 5.823 MB / 0.6296 GB, free: 42.19 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/0.9287, allocations: 0 / 0.6296 GB, free: 42.19 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003101/0.9318, allocations: 2.106 MB / 0.6317 GB, free: 40.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004004/0.9358, allocations: 462 kB / 0.6321 GB, free: 39.63 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/0.9526, allocations: 9.415 MB / 0.6413 GB, free: 30.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004334/0.957, allocations: 3.09 MB / 0.6443 GB, free: 27.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004248/0.9613, allocations: 1.811 MB / 0.6461 GB, free: 25.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.9624, allocations: 239.4 kB / 0.6463 GB, free: 25.02 MB / 462.1 MB Notification: Performance of SimCode: time 9.01e-07/0.9624, allocations: 3.938 kB / 0.6463 GB, free: 25.02 MB / 462.1 MB Notification: Performance of Templates: time 0.07224/1.035, allocations: 42.17 MB / 0.6875 GB, free: 15.07 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches