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.001124/0.001124, allocations: 117.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 199.8 kB / 18.74 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 59.84 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.244, allocations: 50.54 MB / 409.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01039/0.2545, allocations: 10.4 MB / 419.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007345/0.2618, allocations: 3.968 MB / 423.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001498/0.2633, allocations: 67.75 kB / 423.7 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004996/0.2684, allocations: 2.184 MB / 425.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004784/0.2732, allocations: 1.829 MB / 427.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001678/0.2749, allocations: 0.7487 MB / 428.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007153/0.2821, allocations: 5.252 MB / 433.7 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003937/0.2861, allocations: 2.878 MB / 436.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002731/0.2888, allocations: 1.476 MB / 438.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00301/0.2918, allocations: 2.029 MB / 440.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009114/0.2928, allocations: 296 kB / 440.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002456/0.2952, allocations: 1.166 MB / 441.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002157/0.2974, allocations: 1.839 MB / 443.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003072/0.3005, allocations: 2.043 MB / 445.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008103/0.3086, allocations: 6.669 MB / 452.1 MB, free: 6.574 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3086, allocations: 4 kB / 452.1 MB, free: 6.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.337e-06/0.3087, allocations: 0 / 452.1 MB, free: 6.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002085/0.3089, allocations: 3.938 kB / 452.1 MB, free: 6.566 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.01049/0.3194, allocations: 4.777 MB / 456.9 MB, free: 1.711 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3194, allocations: 12.03 kB / 456.9 MB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02501/0.3444, allocations: 3.107 MB / 460 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007329/0.3518, allocations: 3.297 MB / 463.3 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001764/0.352, allocations: 201 kB / 463.5 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008857/0.3529, allocations: 267.8 kB / 463.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01333/0.3662, allocations: 8.859 MB / 472.6 MB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/0.3664, allocations: 47.66 kB / 472.6 MB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003369/0.3668, allocations: 131.9 kB / 472.8 MB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002916/0.3697, allocations: 1.77 MB / 474.5 MB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01389/0.3836, allocations: 7.784 MB / 482.3 MB, free: 7.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04075/0.4244, allocations: 35.91 MB / 0.5061 GB, free: 2.531 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008479/0.4329, allocations: 3.812 MB / 0.5098 GB, free: 14.58 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002814/0.4358, allocations: 2.162 MB / 0.5119 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004579/0.4362, allocations: 340 kB / 0.5123 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.4363, allocations: 47.5 kB / 0.5123 GB, free: 11.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 5.45e-06/0.4363, allocations: 0 / 0.5123 GB, free: 11.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05858/0.4949, allocations: 21.6 MB / 0.5334 GB, free: 6.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.4951, allocations: 256.6 kB / 0.5336 GB, free: 5.945 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006573/0.5016, allocations: 3.935 MB / 0.5375 GB, free: 2.027 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003187/0.502, allocations: 57.88 kB / 0.5375 GB, free: 1.965 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2044/0.7064, allocations: 2.873 MB / 0.5403 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001138/0.7075, allocations: 0.7648 MB / 0.5411 GB, free: 124.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003043/0.7106, allocations: 1.178 MB / 0.5422 GB, free: 124 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.582e-05/0.7107, allocations: 306.1 kB / 0.5425 GB, free: 123.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003191/0.7139, allocations: 2.381 MB / 0.5449 GB, free: 122.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003612/0.7175, allocations: 5.644 MB / 0.5504 GB, free: 117.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00668/0.7242, allocations: 8.579 MB / 0.5588 GB, free: 111 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.242e-05/0.7242, allocations: 32.09 kB / 0.5588 GB, free: 111 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.0133/0.7375, allocations: 9.641 MB / 0.5682 GB, free: 104.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.399e-05/0.7376, allocations: 55.94 kB / 0.5683 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-05/0.7377, allocations: 112 kB / 0.5684 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004624/0.7423, allocations: 2.023 MB / 0.5703 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003289/0.7456, allocations: 1.274 MB / 0.5716 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/0.757, allocations: 11.37 MB / 0.5827 GB, free: 90.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003887/0.7609, allocations: 345 kB / 0.583 GB, free: 90.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000413/0.7614, allocations: 341.4 kB / 0.5833 GB, free: 89.85 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.002107/0.7635, allocations: 1.936 MB / 0.5852 GB, free: 87.97 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004674/0.7639, allocations: 361.6 kB / 0.5856 GB, free: 87.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007693/0.7716, allocations: 4.895 MB / 0.5904 GB, free: 82.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.591e-05/0.7717, allocations: 27 kB / 0.5904 GB, free: 82.68 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.7717, allocations: 11.94 kB / 0.5904 GB, free: 82.67 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.7717, allocations: 7.969 kB / 0.5904 GB, free: 82.66 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.7849, allocations: 9.995 MB / 0.6002 GB, free: 72.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/0.785, allocations: 4 kB / 0.6002 GB, free: 72.65 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.7861, allocations: 267.6 kB / 0.6004 GB, free: 72.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004404/0.7905, allocations: 1.846 MB / 0.6022 GB, free: 70.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001598/0.7907, allocations: 31.44 kB / 0.6023 GB, free: 70.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01048/0.8011, allocations: 10.41 MB / 0.6124 GB, free: 59.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.8012, allocations: 7.703 kB / 0.6124 GB, free: 59.94 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01057/0.8117, allocations: 7.961 MB / 0.6202 GB, free: 51.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008561/0.8126, allocations: 428.5 kB / 0.6206 GB, free: 51.52 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004089/0.813, allocations: 32 kB / 0.6206 GB, free: 51.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.8145, allocations: 141.7 kB / 0.6208 GB, free: 51.36 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003291/0.8149, allocations: 117.1 kB / 0.6209 GB, free: 51.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/0.815, allocations: 47.98 kB / 0.6209 GB, free: 51.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002722/0.8177, allocations: 2.48 MB / 0.6234 GB, free: 48.73 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8177, allocations: 0 / 0.6234 GB, free: 48.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003507/0.8213, allocations: 1.056 MB / 0.6244 GB, free: 47.69 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.0003679/0.8216, allocations: 167.1 kB / 0.6245 GB, free: 47.53 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006725/0.8284, allocations: 5.831 MB / 0.6302 GB, free: 41.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.8284, allocations: 0 / 0.6302 GB, free: 41.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002285/0.8307, allocations: 2.096 MB / 0.6323 GB, free: 39.59 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002415/0.8331, allocations: 461.4 kB / 0.6327 GB, free: 39.14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/0.8467, allocations: 9.541 MB / 0.642 GB, free: 29.58 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002742/0.8495, allocations: 3.09 MB / 0.6451 GB, free: 26.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003695/0.8532, allocations: 1.817 MB / 0.6468 GB, free: 24.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007727/0.854, allocations: 235.4 kB / 0.6471 GB, free: 24.41 MB / 462.1 MB Notification: Performance of SimCode: time 1.203e-06/0.854, allocations: 0 / 0.6471 GB, free: 24.41 MB / 462.1 MB Notification: Performance of Templates: time 0.06956/0.9236, allocations: 42.17 MB / 0.6882 GB, free: 14.46 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