Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 109.3 kB / 17.73 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00167/0.001671, allocations: 188.2 kB / 18.66 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 51.94 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1041, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.208/0.3122, allocations: 12.33 MB / 387 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00967/0.3219, allocations: 4.445 MB / 391.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002512/0.3245, allocations: 83.19 kB / 391.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00535/0.3299, allocations: 2.902 MB / 394.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00583/0.3357, allocations: 2.026 MB / 396.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002383/0.3381, allocations: 1.044 MB / 397.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008222/0.3464, allocations: 5.338 MB / 402.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005625/0.352, allocations: 4.052 MB / 406.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003635/0.3557, allocations: 1.76 MB / 408.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003943/0.3596, allocations: 2.394 MB / 411 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001139/0.3608, allocations: 382.9 kB / 411.4 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00311/0.3639, allocations: 1.254 MB / 412.7 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00257/0.3665, allocations: 2.181 MB / 414.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003566/0.3701, allocations: 2.622 MB / 417.5 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01136/0.3815, allocations: 8.373 MB / 425.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.3815, allocations: 4 kB / 425.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3815, allocations: 0 / 425.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002357/0.3818, allocations: 0 / 425.8 MB, free: 12.51 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.01632/0.3981, allocations: 5.798 MB / 431.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.3981, allocations: 8.031 kB / 431.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001376/0.3995, allocations: 0.7403 MB / 432.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.185/0.5846, allocations: 12.42 MB / 444.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01181/0.5964, allocations: 4.553 MB / 449.3 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002717/0.5967, allocations: 254.2 kB / 449.6 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001272/0.598, allocations: 339.7 kB / 449.9 MB, free: 4.242 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/0.6169, allocations: 10.21 MB / 460.1 MB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001437/0.6171, allocations: 59.58 kB / 460.2 MB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004662/0.6176, allocations: 151.9 kB / 460.3 MB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003725/0.6213, allocations: 2.03 MB / 462.4 MB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01787/0.6392, allocations: 8.649 MB / 471 MB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05399/0.6933, allocations: 39.21 MB / 0.4983 GB, free: 6.109 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009508/0.7028, allocations: 3.939 MB / 0.5021 GB, free: 2.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003236/0.7061, allocations: 2.107 MB / 0.5042 GB, free: 15.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007858/0.7069, allocations: 0.6554 MB / 0.5048 GB, free: 15.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.438e-05/0.707, allocations: 51.5 kB / 0.5049 GB, free: 15.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=175): time 5.07e-06/0.707, allocations: 0 / 0.5049 GB, free: 15.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=210): time 0.05955/0.7666, allocations: 21.34 MB / 0.5257 GB, free: 9.652 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001845/0.7668, allocations: 260.6 kB / 0.526 GB, free: 9.344 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006902/0.7737, allocations: 4.296 MB / 0.5302 GB, free: 5.023 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004836/0.7742, allocations: 53.7 kB / 0.5302 GB, free: 4.965 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002925/0.7771, allocations: 3.365 MB / 0.5335 GB, free: 1.566 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001084/0.7782, allocations: 0.8333 MB / 0.5343 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001765/0.78, allocations: 1.223 MB / 0.5355 GB, free: 15.49 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.7802, allocations: 301.1 kB / 0.5358 GB, free: 15.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003796/0.784, allocations: 2.342 MB / 0.5381 GB, free: 12.85 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006941/0.7909, allocations: 5.893 MB / 0.5438 GB, free: 5.191 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2033/0.9942, allocations: 8.895 MB / 0.5525 GB, free: 139.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001359/0.9944, allocations: 40.42 kB / 0.5526 GB, free: 139.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=781) (initialization): time 0.01987/1.014, allocations: 9.783 MB / 0.5621 GB, free: 137.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.124e-05/1.014, allocations: 58.03 kB / 0.5622 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/1.015, allocations: 124.8 kB / 0.5623 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00617/1.021, allocations: 2.096 MB / 0.5643 GB, free: 136.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004269/1.025, allocations: 1.297 MB / 0.5656 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0202/1.045, allocations: 17.17 MB / 0.5824 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005119/1.05, allocations: 349.2 kB / 0.5827 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/1.051, allocations: 365.7 kB / 0.583 GB, free: 127.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 565 * Number of states: 0 () * Number of discrete variables: 33 (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 (693): * Single equations (assignments): 687 * 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 {(3,35,88.9%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.003355/1.055, allocations: 2.228 MB / 0.5852 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007859/1.056, allocations: 409.5 kB / 0.5856 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007238/1.063, allocations: 4.407 MB / 0.5899 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.321e-05/1.063, allocations: 35.47 kB / 0.59 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/1.063, allocations: 10.03 kB / 0.59 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-05/1.063, allocations: 15.11 kB / 0.59 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/1.077, allocations: 10.33 MB / 0.6001 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/1.077, allocations: 8 kB / 0.6001 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/1.079, allocations: 311.5 kB / 0.6004 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003441/1.082, allocations: 1.361 MB / 0.6017 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001735/1.082, allocations: 32 kB / 0.6017 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01/1.092, allocations: 8.98 MB / 0.6105 GB, free: 105.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/1.092, allocations: 0 / 0.6105 GB, free: 105.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009784/1.102, allocations: 7.45 MB / 0.6178 GB, free: 98.39 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001899/1.104, allocations: 0.7608 MB / 0.6185 GB, free: 97.61 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007572/1.105, allocations: 35.94 kB / 0.6185 GB, free: 97.58 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/1.106, allocations: 123.8 kB / 0.6187 GB, free: 97.46 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003941/1.107, allocations: 125.1 kB / 0.6188 GB, free: 97.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/1.107, allocations: 63.83 kB / 0.6188 GB, free: 97.28 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003242/1.11, allocations: 2.714 MB / 0.6215 GB, free: 94.56 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.11, allocations: 0 / 0.6215 GB, free: 94.56 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004944/1.115, allocations: 1.151 MB / 0.6226 GB, free: 93.41 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 (157): * Single equations (assignments): 153 * 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.009717/1.125, allocations: 8.111 MB / 0.6305 GB, free: 85.27 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007947/1.133, allocations: 6.233 MB / 0.6366 GB, free: 79.02 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/1.133, allocations: 0 / 0.6366 GB, free: 79.02 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00324/1.136, allocations: 2.274 MB / 0.6388 GB, free: 76.74 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003169/1.139, allocations: 0.5929 MB / 0.6394 GB, free: 76.17 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06885/1.208, allocations: 51.49 MB / 0.6897 GB, free: 19.13 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005555/1.214, allocations: 3.532 MB / 0.6932 GB, free: 15.57 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003857/1.218, allocations: 1.928 MB / 0.695 GB, free: 13.63 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00239/1.22, allocations: 2.093 MB / 0.6971 GB, free: 11.54 MB / 478.1 MB Notification: Performance of SimCode: time 9.72e-07/1.22, allocations: 4 kB / 0.6971 GB, free: 11.54 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.338/1.558, allocations: 85.8 MB / 0.7809 GB, free: 149.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.06/24.62, allocations: 11 kB / 0.7809 GB, free: 149.8 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulumInitTip.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches