Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001012/0.001012, allocations: 192.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 226.5 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007339/0.0007338, allocations: 92.56 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002237, allocations: 4 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1892, allocations: 51.29 MB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02161/0.2109, allocations: 34.76 MB / 442.9 MB, free: 8.863 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01379/0.2247, allocations: 8.204 MB / 451.1 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003228/0.2279, allocations: 167.6 kB / 451.3 MB, free: 492 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00258/0.2305, allocations: 1.769 MB / 453 MB, free: 14.7 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009182/0.2397, allocations: 5.518 MB / 458.6 MB, free: 9.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001412/0.2411, allocations: 0.6709 MB / 459.2 MB, free: 8.488 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.2272/0.4684, allocations: 60.88 MB / 0.5079 GB, free: 54.95 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004289/0.4727, allocations: 3.731 MB / 0.5116 GB, free: 54.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001587/0.4743, allocations: 1.257 MB / 0.5128 GB, free: 54.51 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001949/0.4763, allocations: 1.962 MB / 0.5147 GB, free: 54.51 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003309/0.4766, allocations: 130.5 kB / 0.5148 GB, free: 54.51 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001727/0.4783, allocations: 1.062 MB / 0.5159 GB, free: 54.5 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.4795, allocations: 1.647 MB / 0.5175 GB, free: 54.5 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001259/0.4808, allocations: 1.876 MB / 0.5193 GB, free: 54.47 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003733/0.4845, allocations: 5.405 MB / 0.5246 GB, free: 52.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.4845, allocations: 0 / 0.5246 GB, free: 52.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4845, allocations: 0 / 0.5246 GB, free: 52.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.679e-05/0.4846, allocations: 0 / 0.5246 GB, free: 52.71 MB / 378.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.008304/0.4929, allocations: 4.119 MB / 0.5286 GB, free: 50.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.493, allocations: 10.53 kB / 0.5286 GB, free: 50.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006414/0.4936, allocations: 0.6214 MB / 0.5292 GB, free: 50.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1498/0.6434, allocations: 12.62 MB / 0.5415 GB, free: 38.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007129/0.6506, allocations: 3.634 MB / 0.5451 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.649e-05/0.6507, allocations: 196.9 kB / 0.5453 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004223/0.6511, allocations: 273 kB / 0.5455 GB, free: 35.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01039/0.6615, allocations: 8.723 MB / 0.5541 GB, free: 28.76 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-05/0.6616, allocations: 54.05 kB / 0.5541 GB, free: 28.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002929/0.6619, allocations: 130.9 kB / 0.5542 GB, free: 28.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00247/0.6644, allocations: 1.766 MB / 0.556 GB, free: 27.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01069/0.6751, allocations: 7.518 MB / 0.5633 GB, free: 21.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03076/0.7059, allocations: 35.53 MB / 0.598 GB, free: 4.902 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007277/0.7132, allocations: 3.687 MB / 0.6016 GB, free: 1.086 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002237/0.7155, allocations: 2.03 MB / 0.6036 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003704/0.7159, allocations: 333.1 kB / 0.6039 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/0.7159, allocations: 47.56 kB / 0.6039 GB, free: 14.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 3.597e-06/0.7159, allocations: 0 / 0.6039 GB, free: 14.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=190): time 0.04992/0.7658, allocations: 20.02 MB / 0.6235 GB, free: 10.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.766, allocations: 260.6 kB / 0.6237 GB, free: 10.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004987/0.771, allocations: 3.922 MB / 0.6276 GB, free: 6.297 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002682/0.7713, allocations: 52.91 kB / 0.6276 GB, free: 6.242 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001746/0.773, allocations: 2.814 MB / 0.6304 GB, free: 3.441 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006624/0.7737, allocations: 0.727 MB / 0.6311 GB, free: 2.723 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/0.774, allocations: 104 kB / 0.6312 GB, free: 2.621 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003074/0.7743, allocations: 0.5334 MB / 0.6317 GB, free: 2.082 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002901/0.7772, allocations: 2.153 MB / 0.6338 GB, free: 15.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004597/0.7818, allocations: 5.375 MB / 0.6391 GB, free: 8.984 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008391/0.7902, allocations: 8.171 MB / 0.647 GB, free: 15.38 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.328e-05/0.7903, allocations: 32 kB / 0.6471 GB, free: 15.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01382/0.8041, allocations: 8.604 MB / 0.6555 GB, free: 6.727 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.612e-05/0.8042, allocations: 56 kB / 0.6555 GB, free: 6.672 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.58e-05/0.8043, allocations: 112 kB / 0.6556 GB, free: 6.562 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004059/0.8083, allocations: 1.517 MB / 0.6571 GB, free: 5.043 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003624/0.812, allocations: 1.216 MB / 0.6583 GB, free: 3.824 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01241/0.8244, allocations: 9.179 MB / 0.6673 GB, free: 10.51 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004199/0.8286, allocations: 326.4 kB / 0.6676 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007475/0.8294, allocations: 336 kB / 0.6679 GB, free: 9.867 MB / 474.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.00317/0.8326, allocations: 1.932 MB / 0.6698 GB, free: 7.922 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006423/0.8332, allocations: 351.4 kB / 0.6701 GB, free: 7.574 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00754/0.8408, allocations: 4.143 MB / 0.6742 GB, free: 3.414 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.603e-05/0.8409, allocations: 20 kB / 0.6742 GB, free: 3.395 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.8409, allocations: 15.78 kB / 0.6742 GB, free: 3.383 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-05/0.8409, allocations: 9.609 kB / 0.6742 GB, free: 3.375 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1682/1.009, allocations: 9.289 MB / 0.6833 GB, free: 173 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/1.009, allocations: 2.625 kB / 0.6833 GB, free: 173 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/1.01, allocations: 262.7 kB / 0.6835 GB, free: 173 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003596/1.014, allocations: 1.356 MB / 0.6849 GB, free: 172.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001374/1.014, allocations: 30.16 kB / 0.6849 GB, free: 172.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009425/1.024, allocations: 8.316 MB / 0.693 GB, free: 168.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.024, allocations: 0 / 0.693 GB, free: 168.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009052/1.033, allocations: 7.024 MB / 0.6999 GB, free: 166.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008245/1.033, allocations: 414.3 kB / 0.7003 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003329/1.034, allocations: 31.81 kB / 0.7003 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001384/1.035, allocations: 121.7 kB / 0.7004 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004584/1.036, allocations: 105.4 kB / 0.7005 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/1.036, allocations: 56.42 kB / 0.7006 GB, free: 166.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003124/1.039, allocations: 2.483 MB / 0.703 GB, free: 165.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.039, allocations: 0 / 0.703 GB, free: 165.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003801/1.043, allocations: 1.008 MB / 0.704 GB, free: 164.1 MB / 474.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.009071/1.052, allocations: 7.668 MB / 0.7115 GB, free: 157.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006284/1.058, allocations: 5.334 MB / 0.7167 GB, free: 152.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/1.058, allocations: 4 kB / 0.7167 GB, free: 152.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002578/1.061, allocations: 2.079 MB / 0.7187 GB, free: 150.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/1.064, allocations: 479 kB / 0.7192 GB, free: 150.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04264/1.106, allocations: 35.63 MB / 0.7539 GB, free: 111.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003069/1.109, allocations: 3.09 MB / 0.757 GB, free: 108.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00193/1.111, allocations: 1.796 MB / 0.7587 GB, free: 106.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.233e-06/1.111, allocations: 0 / 0.7587 GB, free: 106.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.518/7.629, allocations: 87.82 MB / 0.8445 GB, free: 18.42 MB / 474.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches