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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 199.8 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 226.6 MB / 244.3 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007998/0.0007997, allocations: 95.38 kB / 296.4 MB, free: 6.797 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002603, allocations: 4 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2649, allocations: 51.31 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02699/0.292, allocations: 34.75 MB / 442.3 MB, free: 8.973 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02187/0.3139, allocations: 8.213 MB / 450.5 MB, free: 0.75 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006411/0.3204, allocations: 167.6 kB / 450.6 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003682/0.3241, allocations: 1.773 MB / 452.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01333/0.3375, allocations: 5.494 MB / 457.9 MB, free: 9.285 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001632/0.3391, allocations: 0.6319 MB / 458.5 MB, free: 8.652 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.3416/0.6807, allocations: 60.84 MB / 0.5072 GB, free: 55.19 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005809/0.6866, allocations: 3.49 MB / 0.5106 GB, free: 54.84 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002488/0.6891, allocations: 1.255 MB / 0.5118 GB, free: 54.84 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002565/0.6917, allocations: 1.966 MB / 0.5137 GB, free: 54.83 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003715/0.6921, allocations: 129.5 kB / 0.5139 GB, free: 54.83 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002077/0.6942, allocations: 0.9115 MB / 0.5148 GB, free: 54.83 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001617/0.6958, allocations: 1.666 MB / 0.5164 GB, free: 54.83 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007206/0.6965, allocations: 0.7673 MB / 0.5171 GB, free: 54.8 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004257/0.7008, allocations: 5.092 MB / 0.5221 GB, free: 53.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.7008, allocations: 2.531 kB / 0.5221 GB, free: 53.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.7008, allocations: 0 / 0.5221 GB, free: 53.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.119e-05/0.7009, allocations: 0 / 0.5221 GB, free: 53.41 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.006982/0.7079, allocations: 3.949 MB / 0.526 GB, free: 51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.7079, allocations: 9.25 kB / 0.526 GB, free: 51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02231/0.7303, allocations: 3.159 MB / 0.5291 GB, free: 49.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007048/0.7373, allocations: 3.168 MB / 0.5322 GB, free: 47.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.7375, allocations: 192.7 kB / 0.5323 GB, free: 47.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004714/0.738, allocations: 272.8 kB / 0.5326 GB, free: 46.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/0.7499, allocations: 8.858 MB / 0.5412 GB, free: 39.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.981e-05/0.75, allocations: 43.69 kB / 0.5413 GB, free: 39.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000346/0.7503, allocations: 132.2 kB / 0.5414 GB, free: 39.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002649/0.753, allocations: 1.766 MB / 0.5431 GB, free: 38.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01127/0.7643, allocations: 7.771 MB / 0.5507 GB, free: 33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03276/0.7971, allocations: 36.03 MB / 0.5859 GB, free: 292 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008048/0.8051, allocations: 3.809 MB / 0.5896 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003357/0.8086, allocations: 2.16 MB / 0.5917 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005196/0.8091, allocations: 330.7 kB / 0.5921 GB, free: 9.809 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.567e-05/0.8092, allocations: 54.84 kB / 0.5921 GB, free: 9.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=160): time 4.708e-06/0.8092, allocations: 0 / 0.5921 GB, free: 9.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=190): time 0.06209/0.8713, allocations: 21.39 MB / 0.613 GB, free: 4.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001745/0.8716, allocations: 267.2 kB / 0.6133 GB, free: 4.004 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006892/0.8785, allocations: 3.905 MB / 0.6171 GB, free: 120 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007955/0.8793, allocations: 49.7 kB / 0.6171 GB, free: 64 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00256/0.8819, allocations: 2.78 MB / 0.6198 GB, free: 13.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001409/0.8833, allocations: 0.7239 MB / 0.6205 GB, free: 12.58 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002979/0.8836, allocations: 114 kB / 0.6206 GB, free: 12.47 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004212/0.884, allocations: 0.5458 MB / 0.6212 GB, free: 11.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004124/0.8882, allocations: 2.361 MB / 0.6235 GB, free: 9.551 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006822/0.895, allocations: 5.619 MB / 0.629 GB, free: 2.375 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005668/0.9007, allocations: 3.564 MB / 0.6325 GB, free: 14.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-05/0.9008, allocations: 35.95 kB / 0.6325 GB, free: 14.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02024/0.9211, allocations: 9.578 MB / 0.6418 GB, free: 5.785 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.344e-05/0.9212, allocations: 52 kB / 0.6419 GB, free: 5.734 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001456/0.9214, allocations: 112 kB / 0.642 GB, free: 5.625 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0062/0.9276, allocations: 2.046 MB / 0.644 GB, free: 3.574 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005457/0.9331, allocations: 1.287 MB / 0.6453 GB, free: 2.285 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01631/0.9494, allocations: 10.52 MB / 0.6555 GB, free: 7.629 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006038/0.9555, allocations: 349.6 kB / 0.6559 GB, free: 7.289 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001136/0.9567, allocations: 340 kB / 0.6562 GB, free: 6.957 MB / 458.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 (688): * Single equations (assignments): 684 * 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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00457/0.9613, allocations: 1.939 MB / 0.6581 GB, free: 5.004 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001171/0.9625, allocations: 349.2 kB / 0.6584 GB, free: 4.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00995/0.9724, allocations: 4.872 MB / 0.6632 GB, free: 15.78 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.717e-05/0.9725, allocations: 30.59 kB / 0.6632 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/0.9725, allocations: 8 kB / 0.6632 GB, free: 15.74 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/0.9726, allocations: 7.969 kB / 0.6632 GB, free: 15.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02017/0.9927, allocations: 10.02 MB / 0.673 GB, free: 5.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.738e-05/0.9928, allocations: 0 / 0.673 GB, free: 5.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/0.9942, allocations: 271.6 kB / 0.6733 GB, free: 5.395 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00541/0.9996, allocations: 1.84 MB / 0.6751 GB, free: 3.551 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003461/1, allocations: 34.25 kB / 0.6751 GB, free: 3.52 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3048/1.305, allocations: 9.695 MB / 0.6846 GB, free: 171.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/1.305, allocations: 1.375 kB / 0.6846 GB, free: 171.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0137/1.319, allocations: 7.93 MB / 0.6923 GB, free: 168.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/1.32, allocations: 414.1 kB / 0.6927 GB, free: 168.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003825/1.321, allocations: 32.34 kB / 0.6927 GB, free: 168.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/1.322, allocations: 134.7 kB / 0.6929 GB, free: 168.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003837/1.323, allocations: 117.9 kB / 0.693 GB, free: 168.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/1.323, allocations: 50.2 kB / 0.693 GB, free: 168.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003613/1.326, allocations: 2.462 MB / 0.6954 GB, free: 167.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.51e-07/1.326, allocations: 5.719 kB / 0.6954 GB, free: 167.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004574/1.331, allocations: 1.066 MB / 0.6965 GB, free: 167.6 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 {(2,100.0%) 33} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004442/1.331, allocations: 166.1 kB / 0.6966 GB, free: 167.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008384/1.34, allocations: 5.795 MB / 0.7023 GB, free: 165.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/1.34, allocations: 0 / 0.7023 GB, free: 165.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002737/1.343, allocations: 2.086 MB / 0.7043 GB, free: 163.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003157/1.346, allocations: 443.3 kB / 0.7047 GB, free: 163.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/1.362, allocations: 11.31 MB / 0.7158 GB, free: 153.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003007/1.366, allocations: 3.068 MB / 0.7188 GB, free: 150.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001314/1.367, allocations: 278.9 kB / 0.719 GB, free: 150.6 MB / 474.7 MB Notification: Performance of SimCode: time 3.526e-06/1.367, allocations: 2.406 kB / 0.7191 GB, free: 150.6 MB / 474.7 MB Notification: Performance of Templates: time 0.102/1.469, allocations: 73.44 MB / 0.7908 GB, free: 77.54 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (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 & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum --alarm=480 -emit_protected > 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/jenkins/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