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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001894/0.001894, allocations: 117.8 kB / 18.5 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002639/0.002639, allocations: 212.9 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.532/1.532, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002683/0.002683, allocations: 67.89 kB / 373.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1167, allocations: 53.32 MB / 426.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0126/0.1293, allocations: 10.44 MB / 437.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007589/0.1369, allocations: 3.987 MB / 441.1 MB, free: 6.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000946/0.1379, allocations: 67.81 kB / 441.2 MB, free: 6.453 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004526/0.1424, allocations: 2.227 MB / 443.4 MB, free: 4.219 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003863/0.1463, allocations: 1.86 MB / 445.3 MB, free: 2.352 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001429/0.1477, allocations: 0.7448 MB / 446 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1848/0.3325, allocations: 5.257 MB / 451.3 MB, free: 7.863 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003811/0.3363, allocations: 2.467 MB / 453.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002773/0.339, allocations: 1.479 MB / 455.2 MB, free: 7.551 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003624/0.3427, allocations: 2.209 MB / 457.4 MB, free: 7.336 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001257/0.3439, allocations: 303.2 kB / 457.7 MB, free: 7.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003086/0.347, allocations: 1.214 MB / 458.9 MB, free: 7.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003321/0.3503, allocations: 1.886 MB / 460.8 MB, free: 7.109 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004426/0.3548, allocations: 2.187 MB / 463 MB, free: 6.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01052/0.3653, allocations: 6.99 MB / 470 MB, free: 3.723 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.3653, allocations: 1.219 kB / 470 MB, free: 3.723 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3653, allocations: 0 / 470 MB, free: 3.723 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002263/0.3655, allocations: 0 / 470 MB, free: 3.723 MB / 366.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.01584/0.3814, allocations: 5.044 MB / 475 MB, free: 304 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.3814, allocations: 13.67 kB / 475 MB, free: 300 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001817/0.3832, allocations: 0.6196 MB / 475.7 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1496/0.5328, allocations: 12.3 MB / 488 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/0.5432, allocations: 3.715 MB / 491.7 MB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.5434, allocations: 201.3 kB / 491.9 MB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008971/0.5443, allocations: 272.5 kB / 492.1 MB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01583/0.5601, allocations: 8.731 MB / 0.4891 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001282/0.5602, allocations: 56.52 kB / 0.4892 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003727/0.5606, allocations: 127.2 kB / 0.4893 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00319/0.5638, allocations: 1.767 MB / 0.491 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01531/0.5791, allocations: 7.527 MB / 0.4984 GB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05132/0.6304, allocations: 35.4 MB / 0.533 GB, free: 0 / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008688/0.6391, allocations: 3.577 MB / 0.5365 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002842/0.642, allocations: 1.888 MB / 0.5383 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004867/0.6425, allocations: 328.2 kB / 0.5386 GB, free: 10.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.331e-05/0.6425, allocations: 55.55 kB / 0.5387 GB, free: 9.973 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.669e-06/0.6425, allocations: 3.188 kB / 0.5387 GB, free: 9.973 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05674/0.6993, allocations: 20.21 MB / 0.5584 GB, free: 5.734 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001657/0.6994, allocations: 255.8 kB / 0.5586 GB, free: 5.434 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006412/0.7059, allocations: 3.943 MB / 0.5625 GB, free: 1.512 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004308/0.7063, allocations: 60.36 kB / 0.5625 GB, free: 1.449 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002665/0.709, allocations: 2.92 MB / 0.5654 GB, free: 14.54 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001298/0.7103, allocations: 0.759 MB / 0.5661 GB, free: 13.79 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001873/0.7121, allocations: 1.106 MB / 0.5672 GB, free: 12.68 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.7123, allocations: 301.1 kB / 0.5675 GB, free: 12.38 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003605/0.7159, allocations: 2.166 MB / 0.5696 GB, free: 10.21 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007077/0.723, allocations: 5.411 MB / 0.5749 GB, free: 3.207 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/0.734, allocations: 8.189 MB / 0.5829 GB, free: 9.453 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.832e-05/0.7341, allocations: 32 kB / 0.5829 GB, free: 9.422 MB / 494.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01662/0.7507, allocations: 8.652 MB / 0.5914 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001308/0.7508, allocations: 60.02 kB / 0.5914 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001805/0.751, allocations: 116 kB / 0.5916 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004319/0.7553, allocations: 1.491 MB / 0.593 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004048/0.7594, allocations: 1.22 MB / 0.5942 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/0.7748, allocations: 9.946 MB / 0.6039 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005059/0.7799, allocations: 327 kB / 0.6042 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/0.7812, allocations: 328 kB / 0.6045 GB, free: 3.156 MB / 0.4981 GB 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.00573/0.7869, allocations: 1.939 MB / 0.6064 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001246/0.7882, allocations: 371.9 kB / 0.6068 GB, free: 0.8398 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01022/0.7984, allocations: 4.135 MB / 0.6108 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.631e-05/0.7984, allocations: 23.75 kB / 0.6108 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.227e-05/0.7985, allocations: 8 kB / 0.6109 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-05/0.7985, allocations: 7.969 kB / 0.6109 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0213/0.8198, allocations: 9.26 MB / 0.6199 GB, free: 3.359 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/0.8198, allocations: 0 / 0.6199 GB, free: 3.359 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.8212, allocations: 263.7 kB / 0.6202 GB, free: 3.102 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004102/0.8253, allocations: 1.339 MB / 0.6215 GB, free: 1.758 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002374/0.8255, allocations: 43.94 kB / 0.6215 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01411/0.8396, allocations: 8.94 MB / 0.6302 GB, free: 8.637 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.8396, allocations: 0 / 0.6302 GB, free: 8.637 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01246/0.8521, allocations: 7.036 MB / 0.6371 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.8534, allocations: 426.4 kB / 0.6375 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004673/0.8538, allocations: 35.12 kB / 0.6376 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/0.8553, allocations: 115.8 kB / 0.6377 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003544/0.8557, allocations: 113.1 kB / 0.6378 GB, free: 0.8828 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/0.8558, allocations: 48 kB / 0.6378 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.2055/1.061, allocations: 2.503 MB / 0.6403 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.4e-07/1.061, allocations: 0.5312 kB / 0.6403 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005616/1.067, allocations: 0.992 MB / 0.6412 GB, free: 176.5 MB / 0.5294 GB 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.0115/1.078, allocations: 7.689 MB / 0.6487 GB, free: 175 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008014/1.086, allocations: 5.156 MB / 0.6538 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.086, allocations: 1.5 kB / 0.6538 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003146/1.09, allocations: 1.939 MB / 0.6557 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002778/1.092, allocations: 498.1 kB / 0.6561 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0627/1.155, allocations: 45.72 MB / 0.7008 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003289/1.158, allocations: 3.088 MB / 0.7038 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003646/1.162, allocations: 1.817 MB / 0.7056 GB, free: 133.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002112/1.164, allocations: 1.745 MB / 0.7073 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.222e-06/1.164, allocations: 4 kB / 0.7073 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/1.27, allocations: 75.09 MB / 0.7806 GB, free: 56.86 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.75/24.02, allocations: 3.938 kB / 0.7806 GB, free: 56.85 MB / 0.5294 GB " [Timeout remaining time 636] (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 --stepSize=0.00059976 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 30.049254717770964]