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.001228/0.001228, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001353/0.001353, allocations: 205.5 kB / 24.51 MB, free: 3.945 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.412/1.412, allocations: 230.5 MB / 258.2 MB, free: 7.812 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 59.91 kB / 378.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2387, allocations: 53.41 MB / 431.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01103/0.2498, allocations: 9.068 MB / 441 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007581/0.2574, allocations: 3.77 MB / 444.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001163/0.2585, allocations: 79.56 kB / 444.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004179/0.2627, allocations: 2.153 MB / 447 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004252/0.2669, allocations: 1.891 MB / 448.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001598/0.2685, allocations: 0.7487 MB / 449.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007016/0.2756, allocations: 5.261 MB / 454.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003289/0.2788, allocations: 2.404 MB / 457.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002392/0.2812, allocations: 1.499 MB / 458.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003126/0.2844, allocations: 2.216 MB / 461 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000572/0.2849, allocations: 300 kB / 461.3 MB, free: 8.957 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002007/0.2869, allocations: 1.092 MB / 462.4 MB, free: 7.863 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001898/0.2888, allocations: 1.889 MB / 464.3 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002244/0.2911, allocations: 1.658 MB / 465.9 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008038/0.2991, allocations: 7.012 MB / 472.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2991, allocations: 0 / 472.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2991, allocations: 0 / 472.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001547/0.2993, allocations: 0 / 472.9 MB, free: 13.26 MB / 382.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.01417/0.3135, allocations: 4.971 MB / 477.9 MB, free: 8.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.3135, allocations: 8.031 kB / 477.9 MB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001377/0.3137, allocations: 89.34 kB / 478 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001268/0.3149, allocations: 0.6206 MB / 478.6 MB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1465/0.4614, allocations: 12.31 MB / 490.9 MB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008675/0.4701, allocations: 3.639 MB / 494.6 MB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001791/0.4703, allocations: 209 kB / 494.8 MB, free: 7.281 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007215/0.471, allocations: 267.8 kB / 495 MB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01431/0.4853, allocations: 8.834 MB / 0.4921 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/0.4854, allocations: 47.66 kB / 0.4921 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003603/0.4858, allocations: 131.9 kB / 0.4922 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003192/0.489, allocations: 1.766 MB / 0.494 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01392/0.5029, allocations: 7.534 MB / 0.5013 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04234/0.5452, allocations: 33.59 MB / 0.5341 GB, free: 1.465 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1956/0.7409, allocations: 3.105 MB / 0.5372 GB, free: 102.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002255/0.7431, allocations: 1.901 MB / 0.539 GB, free: 101.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002968/0.7434, allocations: 95.34 kB / 0.5391 GB, free: 101.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.7435, allocations: 50.66 kB / 0.5392 GB, free: 101.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.539e-06/0.7435, allocations: 0 / 0.5392 GB, free: 101.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04525/0.7887, allocations: 20.08 MB / 0.5588 GB, free: 89.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.7888, allocations: 252.6 kB / 0.559 GB, free: 89.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003947/0.7927, allocations: 3.948 MB / 0.5629 GB, free: 85.45 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002917/0.793, allocations: 57.7 kB / 0.5629 GB, free: 85.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.7942, allocations: 2.926 MB / 0.5658 GB, free: 82.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005964/0.7948, allocations: 0.7461 MB / 0.5665 GB, free: 82.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001119/0.7959, allocations: 1.115 MB / 0.5676 GB, free: 80.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.678e-05/0.796, allocations: 305.1 kB / 0.5679 GB, free: 80.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002177/0.7982, allocations: 2.173 MB / 0.57 GB, free: 78.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003043/0.8012, allocations: 5.501 MB / 0.5754 GB, free: 71.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005865/0.8071, allocations: 8.2 MB / 0.5834 GB, free: 61.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.304e-05/0.8071, allocations: 32 kB / 0.5834 GB, free: 61.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01144/0.8186, allocations: 8.643 MB / 0.5919 GB, free: 52.86 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.761e-05/0.8186, allocations: 55.94 kB / 0.5919 GB, free: 52.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.204e-05/0.8187, allocations: 112 kB / 0.592 GB, free: 52.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003498/0.8222, allocations: 1.5 MB / 0.5935 GB, free: 51.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003132/0.8253, allocations: 1.224 MB / 0.5947 GB, free: 49.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009904/0.8352, allocations: 9.745 MB / 0.6042 GB, free: 40.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003851/0.8391, allocations: 320.1 kB / 0.6045 GB, free: 39.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005458/0.8396, allocations: 332 kB / 0.6048 GB, free: 39.48 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.002196/0.8418, allocations: 1.932 MB / 0.6067 GB, free: 37.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005662/0.8424, allocations: 373.5 kB / 0.6071 GB, free: 37.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00616/0.8485, allocations: 4.139 MB / 0.6111 GB, free: 33.01 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.787e-05/0.8486, allocations: 20 kB / 0.6111 GB, free: 32.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.8486, allocations: 8 kB / 0.6111 GB, free: 32.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.732e-05/0.8486, allocations: 7.969 kB / 0.6111 GB, free: 32.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/0.8616, allocations: 8.798 MB / 0.6197 GB, free: 24.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.8616, allocations: 0 / 0.6197 GB, free: 24.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.8627, allocations: 267.6 kB / 0.62 GB, free: 23.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003301/0.866, allocations: 1.347 MB / 0.6213 GB, free: 22.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001666/0.8662, allocations: 32 kB / 0.6213 GB, free: 22.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009185/0.8754, allocations: 8.751 MB / 0.6299 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.8754, allocations: 4 kB / 0.6299 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008757/0.8841, allocations: 7.036 MB / 0.6367 GB, free: 6.586 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007877/0.8849, allocations: 361.2 kB / 0.6371 GB, free: 6.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/0.8853, allocations: 34.27 kB / 0.6371 GB, free: 6.203 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.8868, allocations: 111.8 kB / 0.6372 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003276/0.8871, allocations: 121.1 kB / 0.6373 GB, free: 5.973 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/0.8872, allocations: 47.98 kB / 0.6374 GB, free: 5.926 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002867/0.8901, allocations: 2.501 MB / 0.6398 GB, free: 3.445 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8901, allocations: 0 / 0.6398 GB, free: 3.445 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003689/0.8938, allocations: 0.9921 MB / 0.6408 GB, free: 2.453 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.01119/0.905, allocations: 7.682 MB / 0.6483 GB, free: 10.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008532/0.9135, allocations: 5.162 MB / 0.6533 GB, free: 5.582 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/0.9135, allocations: 0 / 0.6533 GB, free: 5.582 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003417/0.9169, allocations: 1.934 MB / 0.6552 GB, free: 3.645 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/0.9197, allocations: 0.4979 MB / 0.6557 GB, free: 3.152 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07158/0.9913, allocations: 45.77 MB / 0.7004 GB, free: 420 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003417/0.9947, allocations: 2.543 MB / 0.7029 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00421/0.9989, allocations: 1.823 MB / 0.7047 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002812/1.002, allocations: 1.749 MB / 0.7064 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of SimCode: time 1.032e-06/1.002, allocations: 0 / 0.7064 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3015/1.303, allocations: 77.95 MB / 0.7825 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.84/25.15, allocations: 12.03 kB / 0.7825 GB, free: 146.4 MB / 0.5294 GB " [Timeout remaining time 635] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 29.067109463037923]