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.001216/0.001216, allocations: 106.2 kB / 17.16 MB, free: 6.324 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.001217/0.001217, allocations: 198.9 kB / 18.08 MB, free: 5.418 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.344/1.344, allocations: 222.9 MB / 241.8 MB, free: 15.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 46.52 kB / 300.6 MB, free: 6.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1308, allocations: 49.45 MB / 350.1 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2627/0.3935, allocations: 38.38 MB / 388.4 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01763/0.4112, allocations: 8.661 MB / 397.1 MB, free: 112 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008016/0.4193, allocations: 172.6 kB / 397.3 MB, free: 80 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004632/0.424, allocations: 2.19 MB / 399.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004999/0.429, allocations: 1.733 MB / 401.2 MB, free: 14.15 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001635/0.4307, allocations: 0.6845 MB / 401.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008712/0.4394, allocations: 7.197 MB / 409.1 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003536/0.443, allocations: 2.818 MB / 411.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00215/0.4451, allocations: 1.3 MB / 413.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.4481, allocations: 2.192 MB / 415.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006425/0.4488, allocations: 196 kB / 415.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002226/0.451, allocations: 1.154 MB / 416.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001644/0.4527, allocations: 1.777 MB / 418.5 MB, free: 456 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002141/0.4548, allocations: 1.972 MB / 420.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005121/0.4599, allocations: 5.219 MB / 425.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.46, allocations: 0 / 425.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.46, allocations: 0 / 425.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001452/0.4601, allocations: 3.938 kB / 425.7 MB, free: 9.223 MB / 334.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.009844/0.47, allocations: 4.674 MB / 430.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.4701, allocations: 8.031 kB / 430.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0235/0.4936, allocations: 3.085 MB / 433.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008038/0.5017, allocations: 3.269 MB / 436.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/0.5019, allocations: 197 kB / 436.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009241/0.5028, allocations: 271.7 kB / 437.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.5168, allocations: 8.855 MB / 446.1 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001495/0.517, allocations: 51.5 kB / 446.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003795/0.5174, allocations: 127.9 kB / 446.2 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002897/0.5203, allocations: 1.77 MB / 448 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/0.534, allocations: 7.792 MB / 455.8 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04203/0.5761, allocations: 36.01 MB / 491.8 MB, free: 5.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007938/0.584, allocations: 3.81 MB / 495.6 MB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002698/0.5868, allocations: 2.158 MB / 497.8 MB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004291/0.5872, allocations: 328.1 kB / 498.1 MB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.275e-05/0.5873, allocations: 55.5 kB / 498.1 MB, free: 14.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.108e-06/0.5873, allocations: 0 / 498.1 MB, free: 14.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05947/0.6468, allocations: 21.38 MB / 0.5074 GB, free: 9.172 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.647, allocations: 248.6 kB / 0.5076 GB, free: 8.875 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007437/0.6544, allocations: 3.934 MB / 0.5114 GB, free: 4.957 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005302/0.655, allocations: 57.7 kB / 0.5115 GB, free: 4.895 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002471/0.6575, allocations: 2.775 MB / 0.5142 GB, free: 2.086 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001245/0.6587, allocations: 0.7289 MB / 0.5149 GB, free: 1.348 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002968/0.6617, allocations: 1.17 MB / 0.5161 GB, free: 168 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.6619, allocations: 309.1 kB / 0.5163 GB, free: 15.86 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004067/0.666, allocations: 2.385 MB / 0.5187 GB, free: 13.47 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006888/0.6729, allocations: 5.647 MB / 0.5242 GB, free: 6.203 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2166/0.8895, allocations: 8.568 MB / 0.5326 GB, free: 143.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/0.8897, allocations: 32.97 kB / 0.5326 GB, free: 143.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.0198/0.9095, allocations: 9.624 MB / 0.542 GB, free: 140.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.513e-05/0.9096, allocations: 54.62 kB / 0.542 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001563/0.9098, allocations: 113 kB / 0.5422 GB, free: 140.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00588/0.9157, allocations: 2.019 MB / 0.5441 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004127/0.9198, allocations: 1.282 MB / 0.5454 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01258/0.9324, allocations: 10.6 MB / 0.5557 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004296/0.9367, allocations: 345 kB / 0.5561 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006571/0.9374, allocations: 344 kB / 0.5564 GB, free: 135.6 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.002673/0.9401, allocations: 1.944 MB / 0.5583 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006389/0.9407, allocations: 345.2 kB / 0.5586 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007968/0.9487, allocations: 4.889 MB / 0.5634 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.561e-05/0.9488, allocations: 21.47 kB / 0.5634 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.9488, allocations: 7.5 kB / 0.5634 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.067e-05/0.9488, allocations: 7.969 kB / 0.5634 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01453/0.9634, allocations: 10.05 MB / 0.5732 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.9634, allocations: 0 / 0.5732 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.9645, allocations: 271.7 kB / 0.5735 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004429/0.969, allocations: 1.838 MB / 0.5753 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001784/0.9692, allocations: 43.44 kB / 0.5753 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01021/0.9794, allocations: 9.706 MB / 0.5848 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.9794, allocations: 0 / 0.5848 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/0.9901, allocations: 7.95 MB / 0.5926 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009547/0.9911, allocations: 404.5 kB / 0.593 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006587/0.9918, allocations: 39.98 kB / 0.593 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/0.9934, allocations: 135.8 kB / 0.5931 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003779/0.9938, allocations: 109.1 kB / 0.5932 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.9939, allocations: 51.83 kB / 0.5933 GB, free: 103 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00281/0.9967, allocations: 2.484 MB / 0.5957 GB, free: 100.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9967, allocations: 3.938 kB / 0.5957 GB, free: 100.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004069/1.001, allocations: 1.061 MB / 0.5967 GB, free: 99.43 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.0003967/1.001, allocations: 166.7 kB / 0.5969 GB, free: 99.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006955/1.008, allocations: 5.809 MB / 0.6026 GB, free: 93.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.008, allocations: 11.83 kB / 0.6026 GB, free: 93.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002336/1.011, allocations: 2.093 MB / 0.6046 GB, free: 91.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002602/1.013, allocations: 433.5 kB / 0.605 GB, free: 90.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/1.027, allocations: 11.62 MB / 0.6164 GB, free: 79.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002367/1.029, allocations: 3.071 MB / 0.6194 GB, free: 76.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/1.031, allocations: 279.4 kB / 0.6196 GB, free: 75.9 MB / 446.1 MB Notification: Performance of SimCode: time 2.955e-06/1.031, allocations: 4 kB / 0.6197 GB, free: 75.9 MB / 446.1 MB Notification: Performance of Templates: time 0.2403/1.271, allocations: 73.88 MB / 0.6918 GB, free: 136.9 MB / 446.1 MB 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