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.001036/0.001036, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001137/0.001137, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 65.52 kB / 306.4 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08529/0.08648, allocations: 50.53 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1836/0.2701, allocations: 38.15 MB / 395 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01964/0.2898, allocations: 8.578 MB / 403.6 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007663/0.2975, allocations: 168.8 kB / 403.8 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004254/0.3018, allocations: 2.182 MB / 406 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004643/0.3065, allocations: 1.701 MB / 407.7 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001626/0.3081, allocations: 0.6832 MB / 408.3 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007676/0.3158, allocations: 7.289 MB / 415.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003715/0.3195, allocations: 2.816 MB / 418.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002308/0.3219, allocations: 1.296 MB / 419.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00322/0.3251, allocations: 2.173 MB / 421.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008488/0.326, allocations: 200 kB / 422.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002477/0.3285, allocations: 1.135 MB / 423.2 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001967/0.3304, allocations: 1.745 MB / 425 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003039/0.3335, allocations: 2.066 MB / 427.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006128/0.3396, allocations: 6.679 MB / 433.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3397, allocations: 4 kB / 433.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3397, allocations: 0 / 433.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.782e-05/0.3398, allocations: 0 / 433.7 MB, free: 14.77 MB / 350.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.01034/0.3501, allocations: 4.913 MB / 438.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.3502, allocations: 8.031 kB / 438.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006882/0.3509, allocations: 0.6245 MB / 439.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1433/0.4942, allocations: 12.27 MB / 451.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008636/0.5029, allocations: 3.644 MB / 455.2 MB, free: 9.148 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/0.5031, allocations: 201 kB / 455.4 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/0.5042, allocations: 267.8 kB / 455.7 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.5183, allocations: 8.734 MB / 464.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002304/0.5186, allocations: 55.48 kB / 464.4 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009763/0.5196, allocations: 123.9 kB / 464.6 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002927/0.5225, allocations: 1.77 MB / 466.3 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01317/0.5357, allocations: 7.53 MB / 473.9 MB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03791/0.5736, allocations: 35.5 MB / 0.4974 GB, free: 1.246 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007373/0.5811, allocations: 3.692 MB / 0.501 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002262/0.5833, allocations: 2.025 MB / 0.503 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003583/0.5837, allocations: 336 kB / 0.5033 GB, free: 10.99 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.5838, allocations: 47.56 kB / 0.5034 GB, free: 10.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 3.817e-06/0.5838, allocations: 0 / 0.5034 GB, free: 10.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05122/0.635, allocations: 20.03 MB / 0.5229 GB, free: 6.781 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.6352, allocations: 252.8 kB / 0.5232 GB, free: 6.477 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005759/0.6409, allocations: 3.938 MB / 0.527 GB, free: 2.559 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002014/0.6411, allocations: 53.64 kB / 0.5271 GB, free: 2.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1507/0.7918, allocations: 2.813 MB / 0.5298 GB, free: 146.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008704/0.7927, allocations: 0.7185 MB / 0.5305 GB, free: 146.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001555/0.7943, allocations: 1.101 MB / 0.5316 GB, free: 146.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.531e-05/0.7943, allocations: 304.1 kB / 0.5319 GB, free: 146.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/0.7972, allocations: 2.165 MB / 0.534 GB, free: 146.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003981/0.8012, allocations: 5.408 MB / 0.5393 GB, free: 141.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007216/0.8084, allocations: 8.2 MB / 0.5473 GB, free: 134.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.651e-05/0.8085, allocations: 31.66 kB / 0.5473 GB, free: 134.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01334/0.8219, allocations: 8.656 MB / 0.5558 GB, free: 131.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.587e-05/0.822, allocations: 55.69 kB / 0.5558 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001084/0.8221, allocations: 114.6 kB / 0.5559 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003599/0.8257, allocations: 1.496 MB / 0.5574 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002998/0.8287, allocations: 1.226 MB / 0.5586 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009654/0.8384, allocations: 9.252 MB / 0.5676 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003257/0.8417, allocations: 318 kB / 0.5679 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000461/0.8421, allocations: 327.5 kB / 0.5682 GB, free: 125.4 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.002208/0.8443, allocations: 1.934 MB / 0.5701 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005262/0.8449, allocations: 355.4 kB / 0.5705 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006147/0.851, allocations: 4.144 MB / 0.5745 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/0.8511, allocations: 23.83 kB / 0.5745 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.8511, allocations: 8 kB / 0.5746 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.8511, allocations: 12.84 kB / 0.5746 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.8632, allocations: 9.305 MB / 0.5837 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.475e-06/0.8632, allocations: 0 / 0.5837 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.8643, allocations: 267.6 kB / 0.5839 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003252/0.8676, allocations: 1.351 MB / 0.5852 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.8677, allocations: 33.5 kB / 0.5853 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008638/0.8764, allocations: 8.313 MB / 0.5934 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.8764, allocations: 10.59 kB / 0.5934 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008315/0.8847, allocations: 7.035 MB / 0.6003 GB, free: 92.97 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000603/0.8853, allocations: 404.4 kB / 0.6006 GB, free: 92.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000535/0.8859, allocations: 43.31 kB / 0.6007 GB, free: 92.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/0.8873, allocations: 119.8 kB / 0.6008 GB, free: 92.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002992/0.8876, allocations: 105.2 kB / 0.6009 GB, free: 92.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.8878, allocations: 51.98 kB / 0.6009 GB, free: 92.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002817/0.8906, allocations: 2.501 MB / 0.6034 GB, free: 89.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.22e-07/0.8906, allocations: 0 / 0.6034 GB, free: 89.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003506/0.8941, allocations: 0.9905 MB / 0.6044 GB, free: 88.78 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.008584/0.9027, allocations: 7.693 MB / 0.6119 GB, free: 81.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006687/0.9094, allocations: 5.355 MB / 0.6171 GB, free: 75.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.9094, allocations: 0 / 0.6171 GB, free: 75.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002781/0.9122, allocations: 2.077 MB / 0.6191 GB, free: 73.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00314/0.9154, allocations: 478.3 kB / 0.6196 GB, free: 73.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06976/0.9852, allocations: 53.11 MB / 0.6715 GB, free: 12.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00412/0.9893, allocations: 3.087 MB / 0.6745 GB, free: 9.859 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004351/0.9937, allocations: 1.819 MB / 0.6762 GB, free: 8.031 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002243/0.9959, allocations: 1.749 MB / 0.678 GB, free: 6.281 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.996, allocations: 0 / 0.678 GB, free: 6.281 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2848/1.281, allocations: 76.1 MB / 0.7523 GB, free: 119.6 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/1.281, allocations: 238.5 kB / 0.7525 GB, free: 119.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.495/4.777, allocations: 3.5 kB / 0.7525 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