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.001045/0.001045, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 64.17 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1023, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01157/0.1139, allocations: 10.4 MB / 368 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.181/0.295, allocations: 3.972 MB / 372 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00161/0.2967, allocations: 64.78 kB / 372 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00421/0.3009, allocations: 2.192 MB / 374.2 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004003/0.3049, allocations: 1.826 MB / 376 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001723/0.3067, allocations: 0.7362 MB / 376.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009347/0.316, allocations: 5.262 MB / 382 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004533/0.3206, allocations: 2.879 MB / 384.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003088/0.3237, allocations: 1.465 MB / 386.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003269/0.327, allocations: 2.034 MB / 388.4 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001018/0.3281, allocations: 299.2 kB / 388.7 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002765/0.3308, allocations: 1.172 MB / 389.9 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00199/0.3328, allocations: 1.819 MB / 391.7 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002717/0.3356, allocations: 2.191 MB / 393.9 MB, free: 2.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007223/0.3428, allocations: 6.753 MB / 400.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3429, allocations: 0 / 400.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.3429, allocations: 4 kB / 400.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002369/0.3431, allocations: 0 / 400.6 MB, free: 13.87 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.01467/0.3578, allocations: 4.91 MB / 405.6 MB, free: 8.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3578, allocations: 8.031 kB / 405.6 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009493/0.3588, allocations: 0.6189 MB / 406.2 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1749/0.5337, allocations: 12.28 MB / 418.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008676/0.5424, allocations: 3.634 MB / 422.1 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002477/0.5427, allocations: 198.8 kB / 422.3 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001546/0.5442, allocations: 269.1 kB / 422.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01686/0.5611, allocations: 8.742 MB / 431.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001813/0.5613, allocations: 51.5 kB / 431.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008075/0.5622, allocations: 123.8 kB / 431.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003203/0.5654, allocations: 1.767 MB / 433.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01417/0.5796, allocations: 7.532 MB / 440.8 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0407/0.6203, allocations: 35.51 MB / 476.3 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008152/0.6285, allocations: 3.682 MB / 480 MB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00248/0.631, allocations: 2.039 MB / 482 MB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003984/0.6314, allocations: 339.9 kB / 482.3 MB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.451e-05/0.6315, allocations: 51.56 kB / 482.4 MB, free: 10.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 4.489e-06/0.6315, allocations: 0 / 482.4 MB, free: 10.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.05597/0.6875, allocations: 20.01 MB / 0.4906 GB, free: 6.449 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.6876, allocations: 256.6 kB / 0.4909 GB, free: 6.145 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00629/0.6939, allocations: 3.942 MB / 0.4947 GB, free: 2.223 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002581/0.6942, allocations: 49.7 kB / 0.4948 GB, free: 2.168 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001933/0.6962, allocations: 2.812 MB / 0.4975 GB, free: 15.36 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008274/0.697, allocations: 0.7187 MB / 0.4982 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001897/0.6989, allocations: 1.105 MB / 0.4993 GB, free: 13.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.322e-05/0.699, allocations: 301.1 kB / 0.4996 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003127/0.7021, allocations: 2.166 MB / 0.5017 GB, free: 11.06 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004899/0.707, allocations: 5.406 MB / 0.507 GB, free: 4.035 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008266/0.7153, allocations: 8.194 MB / 0.515 GB, free: 10.26 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.165e-05/0.7154, allocations: 35.94 kB / 0.515 GB, free: 10.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01562/0.731, allocations: 8.647 MB / 0.5235 GB, free: 1.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001472/0.7312, allocations: 56 kB / 0.5235 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000216/0.7314, allocations: 112 kB / 0.5236 GB, free: 1.406 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1758/0.9073, allocations: 1.495 MB / 0.5251 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005183/0.9125, allocations: 1.224 MB / 0.5263 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/0.9264, allocations: 9.955 MB / 0.536 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004234/0.9307, allocations: 315.6 kB / 0.5363 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009728/0.9317, allocations: 336.2 kB / 0.5366 GB, free: 135 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.003833/0.9355, allocations: 1.932 MB / 0.5385 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008855/0.9364, allocations: 363.7 kB / 0.5388 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00807/0.9445, allocations: 4.146 MB / 0.5429 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.441e-05/0.9446, allocations: 20.22 kB / 0.5429 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/0.9446, allocations: 7.031 kB / 0.5429 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.432e-05/0.9446, allocations: 13.02 kB / 0.5429 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0144/0.959, allocations: 9.305 MB / 0.552 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/0.9591, allocations: 0 / 0.552 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.9604, allocations: 276.6 kB / 0.5523 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003655/0.964, allocations: 1.347 MB / 0.5536 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002365/0.9643, allocations: 38.12 kB / 0.5536 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/0.9743, allocations: 8.952 MB / 0.5624 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.9743, allocations: 0 / 0.5624 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009033/0.9834, allocations: 7.032 MB / 0.5692 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009205/0.9843, allocations: 405.3 kB / 0.5696 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004504/0.9848, allocations: 35.98 kB / 0.5697 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.9863, allocations: 115.8 kB / 0.5698 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003418/0.9867, allocations: 109.2 kB / 0.5699 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/0.9868, allocations: 55.81 kB / 0.5699 GB, free: 117.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002756/0.9896, allocations: 2.501 MB / 0.5724 GB, free: 114.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.9896, allocations: 0 / 0.5724 GB, free: 114.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003566/0.9931, allocations: 0.9908 MB / 0.5733 GB, free: 113.6 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.008711/1.002, allocations: 7.683 MB / 0.5808 GB, free: 105.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00768/1.01, allocations: 6.434 MB / 0.5871 GB, free: 99.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/1.01, allocations: 0 / 0.5871 GB, free: 99.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002599/1.012, allocations: 2.074 MB / 0.5892 GB, free: 97.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002307/1.014, allocations: 0.494 MB / 0.5896 GB, free: 97.03 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05024/1.065, allocations: 51.48 MB / 0.6399 GB, free: 38.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00254/1.067, allocations: 3.091 MB / 0.6429 GB, free: 35.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004166/1.072, allocations: 1.819 MB / 0.6447 GB, free: 33.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001904/1.073, allocations: 1.745 MB / 0.6464 GB, free: 31.84 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/1.073, allocations: 0 / 0.6464 GB, free: 31.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2627/1.336, allocations: 77.9 MB / 0.7225 GB, free: 143 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.17/18.51, allocations: 1 kB / 0.7225 GB, free: 143 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