Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008218/0.0008219, allocations: 175.3 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.163/1.163, allocations: 205.4 MB / 222.9 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007127/0.0007128, allocations: 90.39 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003032, allocations: 8 kB / 327.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1816, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02124/0.2028, allocations: 34.78 MB / 410 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01296/0.2159, allocations: 8.19 MB / 418.2 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004348/0.2202, allocations: 167.6 kB / 418.3 MB, free: 5.449 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003369/0.2236, allocations: 1.773 MB / 420.1 MB, free: 3.668 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01045/0.2341, allocations: 5.533 MB / 425.6 MB, free: 14.12 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001709/0.2358, allocations: 0.6826 MB / 426.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.03772/0.2736, allocations: 33.57 MB / 459.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004798/0.2784, allocations: 3.752 MB / 463.6 MB, free: 8 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001589/0.28, allocations: 1.253 MB / 464.9 MB, free: 6.742 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001947/0.282, allocations: 1.982 MB / 466.9 MB, free: 4.754 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002676/0.2822, allocations: 132 kB / 467 MB, free: 4.625 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001613/0.2839, allocations: 1.069 MB / 468.1 MB, free: 3.555 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.2851, allocations: 1.66 MB / 469.7 MB, free: 1.891 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001424/0.2865, allocations: 1.882 MB / 471.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004074/0.2906, allocations: 5.436 MB / 477 MB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2906, allocations: 0 / 477 MB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2906, allocations: 4 kB / 477 MB, free: 10.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.754e-05/0.2907, allocations: 0 / 477 MB, free: 10.54 MB / 362.7 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.008448/0.2991, allocations: 4.109 MB / 481.1 MB, free: 6.359 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.2992, allocations: 15.97 kB / 481.2 MB, free: 6.344 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006712/0.2999, allocations: 0.6167 MB / 481.8 MB, free: 5.719 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1519/0.4518, allocations: 12.62 MB / 494.4 MB, free: 9.082 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007777/0.4596, allocations: 4.175 MB / 498.6 MB, free: 4.848 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.4598, allocations: 193 kB / 498.8 MB, free: 4.656 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004641/0.4602, allocations: 275.7 kB / 499 MB, free: 4.387 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1476/0.6079, allocations: 8.719 MB / 0.4958 GB, free: 109.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.596e-05/0.608, allocations: 44.89 kB / 0.4959 GB, free: 109.6 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003081/0.6083, allocations: 127.9 kB / 0.496 GB, free: 109.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002745/0.6111, allocations: 1.768 MB / 0.4977 GB, free: 109.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01106/0.6222, allocations: 7.519 MB / 0.5051 GB, free: 105.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02575/0.6479, allocations: 35.57 MB / 0.5398 GB, free: 70.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005945/0.6539, allocations: 3.706 MB / 0.5434 GB, free: 66.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/0.6556, allocations: 2.029 MB / 0.5454 GB, free: 64.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002772/0.6559, allocations: 327.5 kB / 0.5457 GB, free: 64.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.6559, allocations: 51.48 kB / 0.5458 GB, free: 64.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 3.637e-06/0.6559, allocations: 0 / 0.5458 GB, free: 64.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.04299/0.6989, allocations: 20.13 MB / 0.5654 GB, free: 44.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.699, allocations: 256.6 kB / 0.5657 GB, free: 43.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003583/0.7026, allocations: 3.959 MB / 0.5695 GB, free: 39.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001364/0.7028, allocations: 53.7 kB / 0.5696 GB, free: 39.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001068/0.7038, allocations: 2.82 MB / 0.5723 GB, free: 37.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003789/0.7042, allocations: 0.7178 MB / 0.573 GB, free: 36.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/0.7044, allocations: 104 kB / 0.5731 GB, free: 36.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.7046, allocations: 0.5373 MB / 0.5737 GB, free: 35.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002254/0.7069, allocations: 2.146 MB / 0.5758 GB, free: 33.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003158/0.71, allocations: 5.383 MB / 0.581 GB, free: 26.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006388/0.7164, allocations: 8.166 MB / 0.589 GB, free: 16.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.544e-05/0.7165, allocations: 32 kB / 0.589 GB, free: 16.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01226/0.7288, allocations: 8.62 MB / 0.5974 GB, free: 8.105 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.948e-05/0.7289, allocations: 52 kB / 0.5975 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/0.729, allocations: 112 kB / 0.5976 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003664/0.7327, allocations: 1.52 MB / 0.5991 GB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003267/0.736, allocations: 1.22 MB / 0.6003 GB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.7469, allocations: 9.176 MB / 0.6092 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003716/0.7507, allocations: 323.4 kB / 0.6095 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008374/0.7515, allocations: 332 kB / 0.6099 GB, free: 11.25 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003549/0.7551, allocations: 1.932 MB / 0.6118 GB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007987/0.7559, allocations: 355.3 kB / 0.6121 GB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008037/0.7639, allocations: 4.139 MB / 0.6161 GB, free: 4.797 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.56e-05/0.764, allocations: 27.91 kB / 0.6162 GB, free: 4.773 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/0.764, allocations: 11.88 kB / 0.6162 GB, free: 4.762 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.428e-05/0.7641, allocations: 12.25 kB / 0.6162 GB, free: 4.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/0.7803, allocations: 9.32 MB / 0.6253 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.7804, allocations: 4 kB / 0.6253 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.7816, allocations: 267.6 kB / 0.6255 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003755/0.7854, allocations: 1.343 MB / 0.6269 GB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000168/0.7856, allocations: 32 kB / 0.6269 GB, free: 9.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/0.7966, allocations: 8.319 MB / 0.635 GB, free: 1.273 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.7967, allocations: 0 / 0.635 GB, free: 1.273 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/0.8078, allocations: 7.026 MB / 0.6419 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/0.8099, allocations: 0.6994 MB / 0.6426 GB, free: 9.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007453/0.8106, allocations: 39.98 kB / 0.6426 GB, free: 9.461 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001785/0.8124, allocations: 115.8 kB / 0.6427 GB, free: 9.348 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004897/0.8129, allocations: 117 kB / 0.6428 GB, free: 9.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.8131, allocations: 54.33 kB / 0.6429 GB, free: 9.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004428/0.8175, allocations: 2.506 MB / 0.6453 GB, free: 6.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8175, allocations: 0 / 0.6453 GB, free: 6.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004702/0.8222, allocations: 1.01 MB / 0.6463 GB, free: 5.652 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1531/0.9753, allocations: 7.676 MB / 0.6538 GB, free: 143.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007243/0.9826, allocations: 5.326 MB / 0.659 GB, free: 142.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.9826, allocations: 1.062 kB / 0.659 GB, free: 142.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003038/0.9856, allocations: 2.07 MB / 0.661 GB, free: 141.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003067/0.9887, allocations: 475.2 kB / 0.6615 GB, free: 141.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04488/1.034, allocations: 35.81 MB / 0.6964 GB, free: 112.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002281/1.036, allocations: 3.099 MB / 0.6995 GB, free: 109.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001743/1.038, allocations: 1.796 MB / 0.7012 GB, free: 107.5 MB / 426.7 MB Notification: Performance of SimCode: time 8.01e-07/1.038, allocations: 0 / 0.7012 GB, free: 107.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.542/7.58, allocations: 88.09 MB / 0.7872 GB, free: 19.23 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches