Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002423/0.002423, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.375/1.375, allocations: 230.6 MB / 258.3 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 47.92 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2444, allocations: 53.36 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01167/0.2561, allocations: 10.47 MB / 442.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007461/0.2635, allocations: 4.021 MB / 446.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001123/0.2646, allocations: 79.56 kB / 446.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003913/0.2686, allocations: 2.239 MB / 448.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003899/0.2725, allocations: 1.883 MB / 450.6 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.2739, allocations: 0.7408 MB / 451.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006498/0.2804, allocations: 5.269 MB / 456.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002875/0.2832, allocations: 2.4 MB / 459 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002067/0.2853, allocations: 1.507 MB / 460.5 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00282/0.2881, allocations: 2.204 MB / 462.7 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005176/0.2887, allocations: 303.9 kB / 463 MB, free: 7.594 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001979/0.2906, allocations: 1.217 MB / 464.3 MB, free: 6.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001756/0.2924, allocations: 1.893 MB / 466.1 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002138/0.2945, allocations: 2.183 MB / 468.3 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007482/0.302, allocations: 6.993 MB / 475.3 MB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.302, allocations: 0 / 475.3 MB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.302, allocations: 0 / 475.3 MB, free: 11.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001381/0.3022, allocations: 0 / 475.3 MB, free: 11.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.01225/0.3144, allocations: 4.963 MB / 480.3 MB, free: 6.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3144, allocations: 16.02 kB / 480.3 MB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.975e-05/0.3145, allocations: 85.34 kB / 480.4 MB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000847/0.3154, allocations: 0.6245 MB / 481 MB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1653/0.4807, allocations: 12.3 MB / 493.3 MB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008669/0.4894, allocations: 3.635 MB / 496.9 MB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.4896, allocations: 197 kB / 497.1 MB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009532/0.4905, allocations: 275.8 kB / 497.4 MB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0145/0.505, allocations: 8.73 MB / 0.4943 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001342/0.5052, allocations: 55.58 kB / 0.4943 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003789/0.5056, allocations: 127.9 kB / 0.4944 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003164/0.5087, allocations: 1.77 MB / 0.4962 GB, free: 9.707 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01393/0.5226, allocations: 7.53 MB / 0.5035 GB, free: 2.172 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2366/0.7593, allocations: 35.3 MB / 0.538 GB, free: 93.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007012/0.7663, allocations: 3.117 MB / 0.541 GB, free: 92.99 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/0.7682, allocations: 1.918 MB / 0.5429 GB, free: 92.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002493/0.7684, allocations: 85.66 kB / 0.543 GB, free: 92.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.7685, allocations: 51.03 kB / 0.543 GB, free: 92.92 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 3.697e-06/0.7685, allocations: 0 / 0.543 GB, free: 92.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04603/0.8145, allocations: 20.01 MB / 0.5626 GB, free: 83.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.939e-05/0.8146, allocations: 252.6 kB / 0.5628 GB, free: 83.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003861/0.8184, allocations: 3.945 MB / 0.5667 GB, free: 79.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002284/0.8186, allocations: 65.12 kB / 0.5667 GB, free: 79.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.8197, allocations: 2.919 MB / 0.5696 GB, free: 76.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000459/0.8201, allocations: 0.7509 MB / 0.5703 GB, free: 75.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.8212, allocations: 1.104 MB / 0.5714 GB, free: 74.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.411e-05/0.8212, allocations: 308.9 kB / 0.5717 GB, free: 74.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002128/0.8233, allocations: 2.162 MB / 0.5738 GB, free: 72.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003114/0.8264, allocations: 5.399 MB / 0.5791 GB, free: 65.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006162/0.8326, allocations: 8.213 MB / 0.5871 GB, free: 55.65 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.102e-05/0.8327, allocations: 32 kB / 0.5871 GB, free: 55.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01168/0.8443, allocations: 8.635 MB / 0.5956 GB, free: 46.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6e-05/0.8444, allocations: 56 kB / 0.5956 GB, free: 46.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.435e-05/0.8445, allocations: 116.2 kB / 0.5957 GB, free: 46.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00349/0.848, allocations: 1.501 MB / 0.5972 GB, free: 45.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003265/0.8512, allocations: 1.228 MB / 0.5984 GB, free: 44.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009727/0.8609, allocations: 9.829 MB / 0.608 GB, free: 34.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003679/0.8646, allocations: 323.6 kB / 0.6083 GB, free: 33.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003704/0.865, allocations: 334.3 kB / 0.6086 GB, free: 33.49 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.002014/0.867, allocations: 1.943 MB / 0.6105 GB, free: 31.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004465/0.8675, allocations: 369.6 kB / 0.6109 GB, free: 31.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006153/0.8736, allocations: 4.127 MB / 0.6149 GB, free: 27.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/0.8736, allocations: 27.98 kB / 0.6149 GB, free: 27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.8736, allocations: 8 kB / 0.6149 GB, free: 27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.8736, allocations: 7.969 kB / 0.6149 GB, free: 26.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01196/0.8856, allocations: 9.221 MB / 0.6239 GB, free: 17.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.8856, allocations: 0 / 0.6239 GB, free: 17.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.8867, allocations: 267.6 kB / 0.6242 GB, free: 17.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003246/0.89, allocations: 1.349 MB / 0.6255 GB, free: 16.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/0.8901, allocations: 36.5 kB / 0.6256 GB, free: 16.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009129/0.8992, allocations: 8.858 MB / 0.6342 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.8992, allocations: 0 / 0.6342 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008561/0.9078, allocations: 7.04 MB / 0.6411 GB, free: 56 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008937/0.9087, allocations: 353.6 kB / 0.6414 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003935/0.9091, allocations: 32 kB / 0.6414 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/0.9106, allocations: 115.8 kB / 0.6416 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003238/0.9109, allocations: 120.8 kB / 0.6417 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/0.911, allocations: 51.45 kB / 0.6417 GB, free: 15.39 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003528/0.9146, allocations: 2.509 MB / 0.6442 GB, free: 12.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.9146, allocations: 0 / 0.6442 GB, free: 12.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003877/0.9184, allocations: 0.996 MB / 0.6451 GB, free: 11.91 MB / 462.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.01143/0.9299, allocations: 7.679 MB / 0.6526 GB, free: 4.188 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008197/0.9381, allocations: 5.149 MB / 0.6577 GB, free: 15.06 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.9381, allocations: 2.812 kB / 0.6577 GB, free: 15.06 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003324/0.9414, allocations: 1.943 MB / 0.6596 GB, free: 13.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002779/0.9442, allocations: 488.9 kB / 0.66 GB, free: 12.63 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07097/1.015, allocations: 45.79 MB / 0.7048 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003656/1.019, allocations: 3.087 MB / 0.7078 GB, free: 6.762 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003906/1.023, allocations: 1.819 MB / 0.7095 GB, free: 4.934 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002499/1.025, allocations: 1.749 MB / 0.7113 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of SimCode: time 1.423e-06/1.025, allocations: 0 / 0.7113 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3185/1.344, allocations: 79.71 MB / 0.7891 GB, free: 166.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.13/24.48, allocations: 4.062 kB / 0.7891 GB, free: 166.4 MB / 0.545 GB " [Timeout remaining time 635] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.72332347597694]