Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 188.3 kB / 23.72 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 43.92 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2561, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01323/0.2693, allocations: 10.49 MB / 433.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008761/0.2781, allocations: 3.987 MB / 437.1 MB, free: 44 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.2797, allocations: 79.61 kB / 437.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004343/0.2841, allocations: 2.25 MB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004716/0.2888, allocations: 1.915 MB / 441.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001671/0.2904, allocations: 0.737 MB / 442.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007639/0.2981, allocations: 5.193 MB / 447.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003778/0.3019, allocations: 2.411 MB / 449.7 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002829/0.3047, allocations: 1.511 MB / 451.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003767/0.3085, allocations: 2.216 MB / 453.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.3096, allocations: 300 kB / 453.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003063/0.3126, allocations: 1.229 MB / 455 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002661/0.3153, allocations: 1.909 MB / 456.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003314/0.3186, allocations: 2.199 MB / 459.1 MB, free: 9.992 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009442/0.3281, allocations: 7.048 MB / 466.1 MB, free: 2.918 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3281, allocations: 0 / 466.1 MB, free: 2.918 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3281, allocations: 0 / 466.1 MB, free: 2.918 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002132/0.3283, allocations: 0 / 466.1 MB, free: 2.918 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.01322/0.3415, allocations: 4.97 MB / 471.1 MB, free: 13.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3415, allocations: 8.031 kB / 471.1 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001046/0.3426, allocations: 0.6245 MB / 471.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1513/0.4939, allocations: 12.3 MB / 484 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008811/0.5027, allocations: 3.858 MB / 487.9 MB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.5029, allocations: 205 kB / 488.1 MB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000729/0.5036, allocations: 271.8 kB / 488.3 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/0.518, allocations: 8.734 MB / 497.1 MB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.5181, allocations: 43.7 kB / 497.1 MB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003737/0.5185, allocations: 127.9 kB / 497.2 MB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003025/0.5215, allocations: 1.766 MB / 499 MB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01391/0.5354, allocations: 7.542 MB / 0.4947 GB, free: 9.688 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04458/0.58, allocations: 35.31 MB / 0.5292 GB, free: 5.293 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007921/0.5879, allocations: 3.111 MB / 0.5322 GB, free: 2.141 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002644/0.5905, allocations: 1.896 MB / 0.534 GB, free: 240 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000357/0.5909, allocations: 96.86 kB / 0.5341 GB, free: 144 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.145e-05/0.591, allocations: 59.55 kB / 0.5342 GB, free: 76 kB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.308e-06/0.591, allocations: 3.938 kB / 0.5342 GB, free: 72 kB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2349/0.8258, allocations: 20.01 MB / 0.5537 GB, free: 100.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.468e-05/0.8259, allocations: 260.5 kB / 0.554 GB, free: 100.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003979/0.8299, allocations: 3.953 MB / 0.5578 GB, free: 96.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002592/0.8301, allocations: 53.7 kB / 0.5579 GB, free: 96.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.8313, allocations: 2.917 MB / 0.5607 GB, free: 93.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00059/0.8319, allocations: 0.7615 MB / 0.5615 GB, free: 92.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/0.833, allocations: 1.104 MB / 0.5626 GB, free: 91.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.175e-05/0.8331, allocations: 301.1 kB / 0.5629 GB, free: 91.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002302/0.8354, allocations: 2.173 MB / 0.565 GB, free: 89.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003196/0.8386, allocations: 5.403 MB / 0.5702 GB, free: 82.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006187/0.8447, allocations: 8.193 MB / 0.5783 GB, free: 72.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.477e-05/0.8448, allocations: 32 kB / 0.5783 GB, free: 72.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01175/0.8565, allocations: 8.645 MB / 0.5867 GB, free: 63.94 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.854e-05/0.8566, allocations: 62.75 kB / 0.5868 GB, free: 63.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.435e-05/0.8567, allocations: 112 kB / 0.5869 GB, free: 63.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003389/0.8601, allocations: 1.496 MB / 0.5884 GB, free: 62.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003079/0.8631, allocations: 1.224 MB / 0.5895 GB, free: 61.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01023/0.8734, allocations: 9.845 MB / 0.5992 GB, free: 51.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003658/0.877, allocations: 319.6 kB / 0.5995 GB, free: 50.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005029/0.8775, allocations: 332 kB / 0.5998 GB, free: 50.45 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.002211/0.8797, allocations: 1.934 MB / 0.6017 GB, free: 48.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005418/0.8803, allocations: 373.5 kB / 0.602 GB, free: 48.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006344/0.8866, allocations: 4.135 MB / 0.6061 GB, free: 44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.502e-05/0.8867, allocations: 20 kB / 0.6061 GB, free: 43.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.8867, allocations: 13.88 kB / 0.6061 GB, free: 43.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.8867, allocations: 7.969 kB / 0.6061 GB, free: 43.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01298/0.8997, allocations: 9.213 MB / 0.6151 GB, free: 34.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.8997, allocations: 4.781 kB / 0.6151 GB, free: 34.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.9008, allocations: 263.6 kB / 0.6154 GB, free: 34.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003204/0.904, allocations: 1.347 MB / 0.6167 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.9042, allocations: 32 kB / 0.6167 GB, free: 33.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009561/0.9137, allocations: 8.856 MB / 0.6254 GB, free: 24.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.9137, allocations: 8.031 kB / 0.6254 GB, free: 24.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008631/0.9224, allocations: 7.028 MB / 0.6322 GB, free: 17.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008681/0.9232, allocations: 349.4 kB / 0.6326 GB, free: 16.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004731/0.9237, allocations: 35.94 kB / 0.6326 GB, free: 16.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.9251, allocations: 117 kB / 0.6327 GB, free: 16.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003017/0.9254, allocations: 125 kB / 0.6328 GB, free: 16.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.9255, allocations: 51.59 kB / 0.6329 GB, free: 16.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002895/0.9284, allocations: 2.502 MB / 0.6353 GB, free: 13.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.9284, allocations: 0 / 0.6353 GB, free: 13.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003764/0.9322, allocations: 1.008 MB / 0.6363 GB, free: 12.83 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.009019/0.9412, allocations: 7.694 MB / 0.6438 GB, free: 5.094 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006752/0.948, allocations: 5.152 MB / 0.6488 GB, free: 15.94 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.948, allocations: 0 / 0.6488 GB, free: 15.94 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003478/0.9514, allocations: 1.932 MB / 0.6507 GB, free: 14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002965/0.9544, allocations: 0.4897 MB / 0.6512 GB, free: 13.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07086/1.025, allocations: 45.82 MB / 0.696 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003741/1.029, allocations: 3.083 MB / 0.699 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004108/1.033, allocations: 1.827 MB / 0.7008 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002567/1.036, allocations: 1.757 MB / 0.7025 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of SimCode: time 1.143e-06/1.036, allocations: 0 / 0.7025 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.337/1.373, allocations: 79.75 MB / 0.7803 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.69/26.06, allocations: 3.938 kB / 0.7803 GB, free: 157.7 MB / 0.5294 GB " [Timeout remaining time 634] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 29.575162758119404]