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.001632/0.001632, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001653/0.001653, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.483/1.483, allocations: 230.6 MB / 254.1 MB, free: 15.08 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 55.91 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.111, allocations: 53.33 MB / 426.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2161/0.3271, allocations: 10.44 MB / 436.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00882/0.3359, allocations: 3.988 MB / 440.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00188/0.3378, allocations: 80.53 kB / 440.8 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004492/0.3423, allocations: 2.229 MB / 443.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006634/0.3489, allocations: 1.866 MB / 444.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002297/0.3512, allocations: 0.7439 MB / 445.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009614/0.3608, allocations: 5.252 MB / 450.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005551/0.3664, allocations: 2.462 MB / 453.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004137/0.3705, allocations: 1.512 MB / 454.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004767/0.3753, allocations: 2.204 MB / 457.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001594/0.3769, allocations: 300.1 kB / 457.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003968/0.3809, allocations: 1.212 MB / 458.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003629/0.3845, allocations: 1.893 MB / 460.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005849/0.3903, allocations: 2.187 MB / 462.7 MB, free: 9.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01392/0.4043, allocations: 6.992 MB / 469.7 MB, free: 4.242 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.4043, allocations: 1.75 kB / 469.7 MB, free: 4.242 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.4043, allocations: 0 / 469.7 MB, free: 4.242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003558/0.4046, allocations: 3.938 kB / 469.7 MB, free: 4.238 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.0233/0.4279, allocations: 5.041 MB / 474.7 MB, free: 124 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.096e-05/0.428, allocations: 8.031 kB / 474.7 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002754/0.4307, allocations: 0.6167 MB / 475.3 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1747/0.6054, allocations: 12.3 MB / 487.6 MB, free: 3.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01083/0.6162, allocations: 3.72 MB / 491.4 MB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002397/0.6165, allocations: 201 kB / 491.6 MB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001556/0.618, allocations: 267.8 kB / 491.8 MB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0207/0.6387, allocations: 8.73 MB / 0.4888 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000268/0.639, allocations: 51.59 kB / 0.4889 GB, free: 5.492 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001226/0.6402, allocations: 127.9 kB / 0.489 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003664/0.6439, allocations: 1.77 MB / 0.4907 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01668/0.6606, allocations: 7.538 MB / 0.4981 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05323/0.7138, allocations: 35.4 MB / 0.5327 GB, free: 7.621 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009092/0.7229, allocations: 3.571 MB / 0.5361 GB, free: 3.906 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.7258, allocations: 1.892 MB / 0.538 GB, free: 2.004 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005281/0.7263, allocations: 332.1 kB / 0.5383 GB, free: 1.621 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.436e-05/0.7264, allocations: 55.44 kB / 0.5384 GB, free: 1.559 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 6.201e-06/0.7264, allocations: 0 / 0.5384 GB, free: 1.559 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.06208/0.7884, allocations: 20.2 MB / 0.5581 GB, free: 13.26 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001788/0.7886, allocations: 248.6 kB / 0.5583 GB, free: 12.96 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008895/0.7975, allocations: 3.947 MB / 0.5622 GB, free: 9.035 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005032/0.798, allocations: 53.7 kB / 0.5622 GB, free: 8.977 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003106/0.8011, allocations: 2.928 MB / 0.5651 GB, free: 6.023 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001289/0.8024, allocations: 0.7519 MB / 0.5658 GB, free: 5.266 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00321/0.8056, allocations: 1.108 MB / 0.5669 GB, free: 4.148 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.8058, allocations: 305.1 kB / 0.5672 GB, free: 3.848 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003963/0.8097, allocations: 2.17 MB / 0.5693 GB, free: 1.672 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00725/0.817, allocations: 5.402 MB / 0.5746 GB, free: 10.65 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/0.8279, allocations: 8.196 MB / 0.5826 GB, free: 0.875 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000108/0.828, allocations: 36 kB / 0.5826 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01761/0.8456, allocations: 8.646 MB / 0.5911 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.8458, allocations: 56 kB / 0.5911 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001806/0.8459, allocations: 112.8 kB / 0.5912 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004565/0.8505, allocations: 1.491 MB / 0.5927 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004092/0.8546, allocations: 1.224 MB / 0.5939 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01467/0.8693, allocations: 9.942 MB / 0.6036 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004355/0.8736, allocations: 323.6 kB / 0.6039 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001031/0.8747, allocations: 327.9 kB / 0.6042 GB, free: 10.57 MB / 0.5137 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.00421/0.8789, allocations: 1.933 MB / 0.6061 GB, free: 8.629 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009501/0.8798, allocations: 377.6 kB / 0.6065 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009147/0.889, allocations: 4.123 MB / 0.6105 GB, free: 4.121 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.436e-05/0.889, allocations: 27.98 kB / 0.6105 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-05/0.889, allocations: 11.94 kB / 0.6105 GB, free: 4.082 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.42e-05/0.889, allocations: 11.97 kB / 0.6105 GB, free: 4.07 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2446/1.134, allocations: 9.251 MB / 0.6196 GB, free: 161.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.172e-05/1.134, allocations: 1.156 kB / 0.6196 GB, free: 161.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/1.135, allocations: 266.9 kB / 0.6198 GB, free: 161.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004326/1.139, allocations: 1.351 MB / 0.6212 GB, free: 161.6 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003395/1.14, allocations: 34.64 kB / 0.6212 GB, free: 161.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01313/1.153, allocations: 8.949 MB / 0.6299 GB, free: 157.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.153, allocations: 6.031 kB / 0.6299 GB, free: 157.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01223/1.165, allocations: 7.03 MB / 0.6368 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/1.166, allocations: 424.7 kB / 0.6372 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006746/1.167, allocations: 30.41 kB / 0.6372 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001695/1.169, allocations: 123.3 kB / 0.6373 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004446/1.169, allocations: 109.4 kB / 0.6375 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/1.169, allocations: 52.98 kB / 0.6375 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004315/1.174, allocations: 2.502 MB / 0.6399 GB, free: 154.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/1.174, allocations: 0 / 0.6399 GB, free: 154.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00525/1.179, allocations: 0.9951 MB / 0.6409 GB, free: 154.1 MB / 0.5137 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.009822/1.189, allocations: 7.684 MB / 0.6484 GB, free: 151 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00712/1.196, allocations: 5.152 MB / 0.6535 GB, free: 149.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/1.196, allocations: 0 / 0.6535 GB, free: 149.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002924/1.199, allocations: 1.941 MB / 0.6553 GB, free: 148 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004401/1.203, allocations: 492.8 kB / 0.6558 GB, free: 147.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07637/1.28, allocations: 45.73 MB / 0.7005 GB, free: 98.16 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0047/1.284, allocations: 3.078 MB / 0.7035 GB, free: 95.07 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004333/1.289, allocations: 1.825 MB / 0.7053 GB, free: 93.24 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002652/1.291, allocations: 1.753 MB / 0.707 GB, free: 91.49 MB / 0.5137 GB Notification: Performance of SimCode: time 1.903e-06/1.291, allocations: 0 / 0.707 GB, free: 91.49 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.513/3.804, allocations: 75.09 MB / 0.7803 GB, free: 16.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.21/29.02, allocations: 2.5 kB / 0.7803 GB, free: 16.91 MB / 0.5137 GB " [Timeout remaining time 631] (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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 32.23334615584463]