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.0008468/0.0008469, allocations: 92.36 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009894/0.0009894, allocations: 205.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 227.7 MB / 246.8 MB, free: 11.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.00024, allocations: 4 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08823/0.08849, allocations: 51.53 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1908/0.2793, allocations: 37.06 MB / 396.4 MB, free: 15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0181/0.2974, allocations: 8.508 MB / 404.9 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004776/0.3022, allocations: 166.5 kB / 405.1 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008031/0.3031, allocations: 395.6 kB / 405.5 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003294/0.3064, allocations: 1.718 MB / 407.2 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001232/0.3076, allocations: 0.68 MB / 407.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006608/0.3142, allocations: 7.302 MB / 415.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004383/0.3186, allocations: 3.867 MB / 419.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.32, allocations: 1.14 MB / 420.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.3219, allocations: 1.974 MB / 422.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002335/0.3222, allocations: 128 kB / 422.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.3237, allocations: 1.076 MB / 423.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001156/0.3249, allocations: 1.652 MB / 425 MB, free: 9.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001344/0.3262, allocations: 1.962 MB / 427 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004876/0.3311, allocations: 6.509 MB / 433.5 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3311, allocations: 0 / 433.5 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3311, allocations: 0 / 433.5 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.401e-05/0.3312, allocations: 0 / 433.5 MB, free: 0.5938 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.008724/0.3399, allocations: 4.098 MB / 437.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.34, allocations: 8.031 kB / 437.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006382/0.3406, allocations: 0.6167 MB / 438.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1643/0.5049, allocations: 12.62 MB / 450.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008526/0.5135, allocations: 3.632 MB / 454.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/0.5137, allocations: 205 kB / 454.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/0.5149, allocations: 267.8 kB / 454.9 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.5295, allocations: 8.749 MB / 463.7 MB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001664/0.5297, allocations: 55.52 kB / 463.7 MB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004795/0.5301, allocations: 131.9 kB / 463.9 MB, free: 1.414 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003059/0.5332, allocations: 1.766 MB / 465.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01386/0.5471, allocations: 7.546 MB / 473.2 MB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03979/0.5869, allocations: 35.52 MB / 0.4968 GB, free: 3.492 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007268/0.5942, allocations: 3.689 MB / 0.5004 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00245/0.5967, allocations: 2.041 MB / 0.5024 GB, free: 13.61 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003643/0.5971, allocations: 332.1 kB / 0.5027 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.5971, allocations: 47.5 kB / 0.5027 GB, free: 13.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 3.647e-06/0.5971, allocations: 0 / 0.5027 GB, free: 13.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.0504/0.6476, allocations: 20.02 MB / 0.5223 GB, free: 9.035 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.6477, allocations: 260.6 kB / 0.5225 GB, free: 8.723 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006987/0.6547, allocations: 3.938 MB / 0.5264 GB, free: 4.805 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004155/0.6552, allocations: 49.7 kB / 0.5264 GB, free: 4.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00223/0.6574, allocations: 2.815 MB / 0.5292 GB, free: 1.898 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008756/0.6583, allocations: 0.7211 MB / 0.5299 GB, free: 1.168 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007779/0.6591, allocations: 470 kB / 0.5303 GB, free: 0.7031 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.568e-05/0.6592, allocations: 301.1 kB / 0.5306 GB, free: 416 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1751/0.8343, allocations: 2.164 MB / 0.5327 GB, free: 145.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004643/0.839, allocations: 5.406 MB / 0.538 GB, free: 141.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008572/0.8476, allocations: 8.197 MB / 0.546 GB, free: 134.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001481/0.8478, allocations: 32.88 kB / 0.546 GB, free: 134.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01532/0.8631, allocations: 8.653 MB / 0.5545 GB, free: 131.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.883e-05/0.8632, allocations: 55.91 kB / 0.5545 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/0.8634, allocations: 115.2 kB / 0.5547 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003678/0.8671, allocations: 1.493 MB / 0.5561 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00353/0.8706, allocations: 1.226 MB / 0.5573 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009937/0.8806, allocations: 9.252 MB / 0.5663 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003926/0.8845, allocations: 328.5 kB / 0.5667 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007782/0.8853, allocations: 328.5 kB / 0.567 GB, free: 126.3 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 (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.00285/0.8882, allocations: 1.939 MB / 0.5689 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005961/0.8888, allocations: 352.1 kB / 0.5692 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006936/0.8957, allocations: 4.149 MB / 0.5732 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.639e-05/0.8958, allocations: 20 kB / 0.5733 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.8958, allocations: 8 kB / 0.5733 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.8958, allocations: 7.969 kB / 0.5733 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01206/0.9079, allocations: 9.311 MB / 0.5824 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.9079, allocations: 64 / 0.5824 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.909, allocations: 271.6 kB / 0.5826 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003239/0.9123, allocations: 1.352 MB / 0.584 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/0.9124, allocations: 31.98 kB / 0.584 GB, free: 110 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008541/0.921, allocations: 8.325 MB / 0.5921 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.921, allocations: 0 / 0.5921 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009118/0.9301, allocations: 7.039 MB / 0.599 GB, free: 94.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.9313, allocations: 404.5 kB / 0.5994 GB, free: 94.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003883/0.9317, allocations: 29.8 kB / 0.5994 GB, free: 94.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.9331, allocations: 125.8 kB / 0.5995 GB, free: 94.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003405/0.9334, allocations: 109.1 kB / 0.5996 GB, free: 93.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.9336, allocations: 51.98 kB / 0.5997 GB, free: 93.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002918/0.9365, allocations: 2.501 MB / 0.6021 GB, free: 91.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9365, allocations: 0 / 0.6021 GB, free: 91.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003982/0.9405, allocations: 0.9919 MB / 0.6031 GB, free: 90.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 {(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.008942/0.9495, allocations: 7.687 MB / 0.6106 GB, free: 82.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006821/0.9563, allocations: 5.347 MB / 0.6158 GB, free: 77.37 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.9563, allocations: 4 kB / 0.6158 GB, free: 77.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002734/0.9591, allocations: 2.079 MB / 0.6179 GB, free: 75.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003228/0.9623, allocations: 476.7 kB / 0.6183 GB, free: 74.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06127/1.024, allocations: 53.2 MB / 0.6703 GB, free: 14.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002264/1.026, allocations: 3.098 MB / 0.6733 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003405/1.029, allocations: 1.819 MB / 0.6751 GB, free: 9.578 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/1.031, allocations: 1.745 MB / 0.6768 GB, free: 7.832 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/1.031, allocations: 0 / 0.6768 GB, free: 7.832 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2904/1.321, allocations: 75.06 MB / 0.7501 GB, free: 119.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001385/1.321, allocations: 237.2 kB / 0.7503 GB, free: 119.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.137/4.458, allocations: 3.828 kB / 0.7503 GB, free: 119.4 MB / 462.1 MB (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