Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.001405/0.001405, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.00153/0.00153, allocations: 187.7 kB / 23.72 MB, free: 4.684 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.421/1.421, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 47.92 kB / 370.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2635, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01502/0.2785, allocations: 11.99 MB / 434.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.2891, allocations: 4.389 MB / 439 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002764/0.2918, allocations: 95.44 kB / 439.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006317/0.2981, allocations: 2.951 MB / 442.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006311/0.3044, allocations: 2.038 MB / 444.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002999/0.3074, allocations: 1.052 MB / 445.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009254/0.3167, allocations: 5.572 MB / 450.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00459/0.3213, allocations: 3.098 MB / 453.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003204/0.3245, allocations: 1.764 MB / 455.6 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003898/0.3284, allocations: 2.492 MB / 458.1 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009935/0.3294, allocations: 368 kB / 458.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003051/0.3324, allocations: 1.299 MB / 459.7 MB, free: 9.328 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002581/0.335, allocations: 2.189 MB / 461.9 MB, free: 7.133 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003355/0.3384, allocations: 2.525 MB / 464.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01133/0.3497, allocations: 8.086 MB / 472.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.535e-06/0.3497, allocations: 0 / 472.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3497, allocations: 4 kB / 472.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002341/0.3499, allocations: 0 / 472.5 MB, free: 12.47 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: 1508 * Number of variables: 1508 Notification: Performance of Generate backend data structure: time 0.01621/0.3662, allocations: 5.566 MB / 478.1 MB, free: 6.844 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.3662, allocations: 8.031 kB / 478.1 MB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001454/0.3677, allocations: 0.7157 MB / 478.8 MB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1664/0.534, allocations: 12.4 MB / 491.2 MB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/0.5444, allocations: 4.109 MB / 495.3 MB, free: 5.535 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.5446, allocations: 242.2 kB / 495.6 MB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008275/0.5454, allocations: 327.8 kB / 495.9 MB, free: 4.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01693/0.5624, allocations: 9.896 MB / 0.4939 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001398/0.5625, allocations: 47.64 kB / 0.494 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004375/0.5629, allocations: 155.8 kB / 0.4941 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003588/0.5665, allocations: 1.963 MB / 0.4961 GB, free: 8.262 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0168/0.5833, allocations: 8.332 MB / 0.5042 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2487/0.832, allocations: 38.07 MB / 0.5414 GB, free: 83.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007008/0.839, allocations: 3.244 MB / 0.5445 GB, free: 83.17 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001943/0.841, allocations: 1.921 MB / 0.5464 GB, free: 83.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004499/0.8414, allocations: 208.9 kB / 0.5466 GB, free: 83.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.8414, allocations: 53.41 kB / 0.5467 GB, free: 83.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=166): time 3.637e-06/0.8415, allocations: 0 / 0.5467 GB, free: 83.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=201): time 0.05016/0.8916, allocations: 20.96 MB / 0.5671 GB, free: 71.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.8917, allocations: 252.1 kB / 0.5674 GB, free: 70.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004674/0.8964, allocations: 4.2 MB / 0.5715 GB, free: 66.65 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003319/0.8967, allocations: 50.64 kB / 0.5715 GB, free: 66.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001452/0.8981, allocations: 3.281 MB / 0.5747 GB, free: 63.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006695/0.8988, allocations: 0.8024 MB / 0.5755 GB, free: 62.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00121/0.9, allocations: 1.191 MB / 0.5767 GB, free: 61.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.014e-05/0.9001, allocations: 302.2 kB / 0.577 GB, free: 61.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002486/0.9026, allocations: 2.276 MB / 0.5792 GB, free: 59.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003622/0.9062, allocations: 5.743 MB / 0.5848 GB, free: 51.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00679/0.913, allocations: 8.683 MB / 0.5933 GB, free: 41.51 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.884e-05/0.913, allocations: 32 kB / 0.5933 GB, free: 41.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=759) (initialization): time 0.01431/0.9273, allocations: 9.545 MB / 0.6026 GB, free: 31.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.913e-05/0.9274, allocations: 56 kB / 0.6027 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.589e-05/0.9275, allocations: 120 kB / 0.6028 GB, free: 31.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005276/0.9328, allocations: 2.068 MB / 0.6048 GB, free: 29.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003334/0.9361, allocations: 1.255 MB / 0.606 GB, free: 28.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01773/0.9538, allocations: 16.94 MB / 0.6226 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004311/0.9582, allocations: 347.9 kB / 0.6229 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006925/0.9588, allocations: 359.3 kB / 0.6233 GB, free: 10.46 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 35 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (671): * Single equations (assignments): 665 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,36,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.002928/0.9618, allocations: 2.166 MB / 0.6254 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007187/0.9625, allocations: 401.3 kB / 0.6258 GB, free: 7.891 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006965/0.9695, allocations: 4.27 MB / 0.6299 GB, free: 3.594 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.089e-05/0.9695, allocations: 31.94 kB / 0.63 GB, free: 3.562 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.9695, allocations: 4 kB / 0.63 GB, free: 3.559 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.9695, allocations: 11.97 kB / 0.63 GB, free: 3.547 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01794/0.9875, allocations: 10 MB / 0.6397 GB, free: 9.512 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.9875, allocations: 4 kB / 0.6397 GB, free: 9.508 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001463/0.9889, allocations: 283.5 kB / 0.64 GB, free: 9.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004191/0.9931, allocations: 1.359 MB / 0.6413 GB, free: 7.867 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002421/0.9934, allocations: 40 kB / 0.6414 GB, free: 7.828 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01386/1.007, allocations: 8.863 MB / 0.65 GB, free: 14.85 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/1.007, allocations: 4.125 kB / 0.65 GB, free: 14.85 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01265/1.02, allocations: 7.248 MB / 0.6571 GB, free: 7.57 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001235/1.021, allocations: 373.2 kB / 0.6575 GB, free: 7.203 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005336/1.022, allocations: 32 kB / 0.6575 GB, free: 7.172 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/1.023, allocations: 123.3 kB / 0.6576 GB, free: 7.055 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003626/1.024, allocations: 125 kB / 0.6577 GB, free: 6.934 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/1.024, allocations: 52 kB / 0.6578 GB, free: 6.883 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004188/1.028, allocations: 2.645 MB / 0.6604 GB, free: 4.23 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.028, allocations: 4 kB / 0.6604 GB, free: 4.227 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004805/1.033, allocations: 1.121 MB / 0.6615 GB, free: 3.105 MB / 478.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 (147): * Single equations (assignments): 143 * 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 {(5,30,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01257/1.045, allocations: 7.908 MB / 0.6692 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01019/1.055, allocations: 5.82 MB / 0.6749 GB, free: 5.32 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/1.055, allocations: 0 / 0.6749 GB, free: 5.32 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003979/1.059, allocations: 2.069 MB / 0.6769 GB, free: 3.246 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00348/1.063, allocations: 0.5972 MB / 0.6775 GB, free: 2.66 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0857/1.149, allocations: 50.06 MB / 0.7264 GB, free: 11.17 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004131/1.153, allocations: 3.442 MB / 0.7297 GB, free: 7.691 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004362/1.157, allocations: 1.877 MB / 0.7316 GB, free: 5.809 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002813/1.16, allocations: 2.018 MB / 0.7335 GB, free: 3.793 MB / 0.545 GB Notification: Performance of SimCode: time 1.723e-06/1.16, allocations: 0 / 0.7335 GB, free: 3.793 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3554/1.515, allocations: 89.45 MB / 0.8209 GB, free: 134.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.69/29.2, allocations: 7.016 kB / 0.8209 GB, free: 134.4 MB / 0.545 GB " [Timeout remaining time 631] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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: 31.80737110500195]