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.001028/0.001028, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 55.47 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08771/0.08887, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0105/0.09941, allocations: 10.4 MB / 369.3 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1532/0.2527, allocations: 3.961 MB / 373.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.254, allocations: 66.38 kB / 373.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00371/0.2578, allocations: 2.197 MB / 375.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003719/0.2615, allocations: 1.831 MB / 377.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.2629, allocations: 0.744 MB / 378.1 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006361/0.2693, allocations: 5.251 MB / 383.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003172/0.2725, allocations: 2.889 MB / 386.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.2744, allocations: 1.462 MB / 387.7 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002133/0.2766, allocations: 2.04 MB / 389.7 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005191/0.2771, allocations: 300.5 kB / 390 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001798/0.2789, allocations: 1.173 MB / 391.2 MB, free: 5.305 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.2802, allocations: 1.83 MB / 393 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00145/0.2817, allocations: 2.055 MB / 395.1 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004758/0.2864, allocations: 6.633 MB / 401.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2865, allocations: 0 / 401.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2865, allocations: 0 / 401.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.45e-05/0.2865, allocations: 0 / 401.7 MB, free: 13.92 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.008232/0.2948, allocations: 4.663 MB / 406.4 MB, free: 9.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.2948, allocations: 8.031 kB / 406.4 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02356/0.3184, allocations: 3.081 MB / 409.5 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008423/0.3269, allocations: 3.273 MB / 412.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001965/0.3271, allocations: 197.3 kB / 412.9 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007087/0.3278, allocations: 279 kB / 413.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/0.3414, allocations: 8.856 MB / 422.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001251/0.3416, allocations: 51.58 kB / 422.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003316/0.3419, allocations: 133 kB / 422.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003077/0.345, allocations: 1.773 MB / 424 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01348/0.3585, allocations: 7.778 MB / 431.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04076/0.3993, allocations: 35.86 MB / 467.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007746/0.4071, allocations: 3.821 MB / 471.5 MB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002535/0.4096, allocations: 2.159 MB / 473.6 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000407/0.4101, allocations: 330 kB / 474 MB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/0.4101, allocations: 59.59 kB / 474 MB, free: 4.039 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 3.347e-06/0.4101, allocations: 0 / 474 MB, free: 4.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05361/0.4637, allocations: 21.38 MB / 495.4 MB, free: 14.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.4639, allocations: 256.6 kB / 495.7 MB, free: 14.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005197/0.4691, allocations: 3.918 MB / 499.6 MB, free: 10.35 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004229/0.4695, allocations: 57.69 kB / 499.6 MB, free: 10.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002059/0.4716, allocations: 2.777 MB / 0.4906 GB, free: 7.512 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008864/0.4725, allocations: 0.7274 MB / 0.4913 GB, free: 6.789 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00174/0.4743, allocations: 1.172 MB / 0.4925 GB, free: 5.605 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.4744, allocations: 305.1 kB / 0.4928 GB, free: 5.305 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00329/0.4777, allocations: 2.385 MB / 0.4951 GB, free: 2.914 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005162/0.4829, allocations: 5.64 MB / 0.5006 GB, free: 11.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009274/0.4921, allocations: 8.568 MB / 0.509 GB, free: 1.508 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.963e-05/0.4922, allocations: 32 kB / 0.509 GB, free: 1.477 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01763/0.5099, allocations: 9.621 MB / 0.5184 GB, free: 7.836 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001225/0.51, allocations: 56 kB / 0.5185 GB, free: 7.781 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002018/0.5103, allocations: 112 kB / 0.5186 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00611/0.5164, allocations: 2.026 MB / 0.5205 GB, free: 5.641 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004858/0.5213, allocations: 1.283 MB / 0.5218 GB, free: 4.355 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1772/0.6985, allocations: 11.35 MB / 0.5329 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004146/0.7026, allocations: 346.4 kB / 0.5332 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005775/0.7032, allocations: 341 kB / 0.5335 GB, free: 134.2 MB / 446.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.002756/0.706, allocations: 1.939 MB / 0.5354 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005823/0.7066, allocations: 343.8 kB / 0.5358 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009099/0.7157, allocations: 4.899 MB / 0.5405 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.623e-05/0.7157, allocations: 20.94 kB / 0.5406 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/0.7158, allocations: 7.156 kB / 0.5406 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/0.7158, allocations: 13 kB / 0.5406 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01699/0.7328, allocations: 9.99 MB / 0.5503 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.7328, allocations: 3.125 kB / 0.5503 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.734, allocations: 270.2 kB / 0.5506 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004578/0.7386, allocations: 1.846 MB / 0.5524 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001795/0.7388, allocations: 30.39 kB / 0.5524 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/0.7499, allocations: 10.39 MB / 0.5626 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.75, allocations: 3.812 kB / 0.5626 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/0.7603, allocations: 7.957 MB / 0.5703 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009153/0.7612, allocations: 407.7 kB / 0.5707 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005069/0.7617, allocations: 28 kB / 0.5708 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.7632, allocations: 141.7 kB / 0.5709 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003115/0.7635, allocations: 121 kB / 0.571 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/0.7637, allocations: 47.84 kB / 0.5711 GB, free: 116.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002771/0.7664, allocations: 2.48 MB / 0.5735 GB, free: 114.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7665, allocations: 0 / 0.5735 GB, free: 114.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003582/0.77, allocations: 1.048 MB / 0.5745 GB, free: 113.1 MB / 446.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.0003318/0.7704, allocations: 174.3 kB / 0.5747 GB, free: 112.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006295/0.7767, allocations: 5.825 MB / 0.5804 GB, free: 107.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.7767, allocations: 3.094 kB / 0.5804 GB, free: 107.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002188/0.7789, allocations: 2.093 MB / 0.5824 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.7809, allocations: 456.6 kB / 0.5828 GB, free: 104.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.792, allocations: 9.429 MB / 0.592 GB, free: 95.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002369/0.7943, allocations: 3.083 MB / 0.5951 GB, free: 92.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003223/0.7976, allocations: 1.815 MB / 0.5968 GB, free: 90.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005899/0.7982, allocations: 239.4 kB / 0.5971 GB, free: 90.04 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.7982, allocations: 0 / 0.5971 GB, free: 90.04 MB / 446.1 MB Notification: Performance of Templates: time 0.05569/0.8539, allocations: 40.28 MB / 0.6364 GB, free: 50.04 MB / 446.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 -s gbode -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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches