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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001913/0.001913, allocations: 118.8 kB / 17.78 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00245/0.00245, allocations: 201.2 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 60.09 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2455, allocations: 50.53 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01079/0.2563, allocations: 10.4 MB / 419.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007631/0.264, allocations: 3.96 MB / 423.1 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001478/0.2655, allocations: 67.75 kB / 423.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003979/0.2695, allocations: 2.2 MB / 425.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004083/0.2736, allocations: 1.821 MB / 427.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001532/0.2752, allocations: 0.7486 MB / 427.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006487/0.2817, allocations: 5.258 MB / 433.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003567/0.2853, allocations: 2.878 MB / 436.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002479/0.2878, allocations: 1.472 MB / 437.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002944/0.2907, allocations: 2.033 MB / 439.6 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008466/0.2916, allocations: 300 kB / 439.9 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00232/0.2939, allocations: 1.186 MB / 441.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00212/0.2961, allocations: 1.831 MB / 442.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003454/0.2995, allocations: 2.187 MB / 445.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007282/0.3068, allocations: 6.965 MB / 452.1 MB, free: 6.066 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3069, allocations: 0 / 452.1 MB, free: 6.066 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3069, allocations: 0 / 452.1 MB, free: 6.066 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001146/0.307, allocations: 0 / 452.1 MB, free: 6.066 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.01184/0.3188, allocations: 4.92 MB / 457 MB, free: 1.074 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.3189, allocations: 8.031 kB / 457 MB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008361/0.3197, allocations: 0.6206 MB / 457.6 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1545/0.4742, allocations: 12.28 MB / 469.9 MB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008331/0.4826, allocations: 3.694 MB / 473.6 MB, free: 392 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.4828, allocations: 197 kB / 473.8 MB, free: 192 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009819/0.4838, allocations: 275.8 kB / 474 MB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01474/0.4985, allocations: 8.734 MB / 482.8 MB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001722/0.4987, allocations: 51.55 kB / 482.8 MB, free: 6.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006572/0.4994, allocations: 127.9 kB / 482.9 MB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002996/0.5024, allocations: 1.77 MB / 484.7 MB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.5164, allocations: 7.53 MB / 492.2 MB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04337/0.5598, allocations: 35.34 MB / 0.5152 GB, free: 8.625 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008081/0.5679, allocations: 3.692 MB / 0.5188 GB, free: 4.789 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002521/0.5705, allocations: 2.035 MB / 0.5208 GB, free: 2.746 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004392/0.5709, allocations: 332.1 kB / 0.5211 GB, free: 2.363 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.872e-05/0.571, allocations: 59.55 kB / 0.5212 GB, free: 2.297 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 6.923e-06/0.571, allocations: 3.984 kB / 0.5212 GB, free: 2.293 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2576/0.8287, allocations: 20.02 MB / 0.5407 GB, free: 125.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.8288, allocations: 254.5 kB / 0.541 GB, free: 124.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004375/0.8331, allocations: 3.937 MB / 0.5448 GB, free: 123.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002467/0.8334, allocations: 59.7 kB / 0.5449 GB, free: 123.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.8345, allocations: 2.808 MB / 0.5476 GB, free: 121.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004918/0.835, allocations: 0.7244 MB / 0.5483 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001157/0.8362, allocations: 1.1 MB / 0.5494 GB, free: 120.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.97e-05/0.8362, allocations: 307.3 kB / 0.5497 GB, free: 120.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002276/0.8385, allocations: 2.164 MB / 0.5518 GB, free: 119.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003157/0.8417, allocations: 5.406 MB / 0.5571 GB, free: 114.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00616/0.8479, allocations: 8.205 MB / 0.5651 GB, free: 107.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.477e-05/0.8479, allocations: 32 kB / 0.5651 GB, free: 107.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01155/0.8595, allocations: 8.647 MB / 0.5736 GB, free: 99.62 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.238e-05/0.8596, allocations: 52 kB / 0.5736 GB, free: 99.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.894e-05/0.8596, allocations: 112 kB / 0.5737 GB, free: 99.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003535/0.8632, allocations: 1.495 MB / 0.5752 GB, free: 97.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003193/0.8664, allocations: 1.224 MB / 0.5764 GB, free: 96.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.8765, allocations: 9.936 MB / 0.5861 GB, free: 86.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003634/0.8801, allocations: 327.5 kB / 0.5864 GB, free: 86.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004854/0.8806, allocations: 327.6 kB / 0.5867 GB, free: 86.03 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 (650): * Single equations (assignments): 646 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002307/0.8829, allocations: 1.944 MB / 0.5886 GB, free: 84.08 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005429/0.8835, allocations: 351.4 kB / 0.589 GB, free: 83.73 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00631/0.8898, allocations: 4.151 MB / 0.593 GB, free: 79.57 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.542e-05/0.8899, allocations: 20 kB / 0.593 GB, free: 79.55 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.8899, allocations: 8 kB / 0.593 GB, free: 79.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.8899, allocations: 11.91 kB / 0.5931 GB, free: 79.53 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/0.9025, allocations: 9.282 MB / 0.6021 GB, free: 70.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.9026, allocations: 0 / 0.6021 GB, free: 70.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.9037, allocations: 263.6 kB / 0.6024 GB, free: 69.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003368/0.9071, allocations: 1.347 MB / 0.6037 GB, free: 68.62 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001615/0.9073, allocations: 32 kB / 0.6037 GB, free: 68.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00934/0.9166, allocations: 8.944 MB / 0.6124 GB, free: 59.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.9167, allocations: 0.75 kB / 0.6124 GB, free: 59.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008841/0.9255, allocations: 7.045 MB / 0.6193 GB, free: 52.44 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007642/0.9263, allocations: 400.5 kB / 0.6197 GB, free: 52.03 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004169/0.9267, allocations: 31.98 kB / 0.6197 GB, free: 52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/0.9281, allocations: 115.8 kB / 0.6199 GB, free: 51.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002887/0.9284, allocations: 113.2 kB / 0.62 GB, free: 51.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/0.9285, allocations: 47.98 kB / 0.62 GB, free: 51.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002802/0.9314, allocations: 2.501 MB / 0.6224 GB, free: 49.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9314, allocations: 4.938 kB / 0.6225 GB, free: 49.24 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003708/0.9351, allocations: 0.9871 MB / 0.6234 GB, free: 48.26 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008966/0.9441, allocations: 7.694 MB / 0.6309 GB, free: 40.53 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006372/0.9504, allocations: 5.367 MB / 0.6362 GB, free: 35.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.9505, allocations: 192 / 0.6362 GB, free: 35.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002638/0.9531, allocations: 2.091 MB / 0.6382 GB, free: 33.08 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002523/0.9557, allocations: 0.4931 MB / 0.6387 GB, free: 32.59 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05233/1.008, allocations: 45.59 MB / 0.6832 GB, free: 14.04 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003121/1.011, allocations: 3.087 MB / 0.6862 GB, free: 10.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00373/1.015, allocations: 1.823 MB / 0.688 GB, free: 9.098 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002105/1.017, allocations: 1.753 MB / 0.6897 GB, free: 7.344 MB / 494.1 MB Notification: Performance of SimCode: time 9.82e-07/1.017, allocations: 0 / 0.6897 GB, free: 7.344 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2871/1.304, allocations: 75.76 MB / 0.7637 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.33/23.63, allocations: 13.91 kB / 0.7637 GB, free: 155.2 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > 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