Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001849/0.001849, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002401/0.002401, allocations: 205.6 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 230.5 MB / 257.4 MB, free: 7.723 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 71.89 kB / 377.7 MB, free: 2.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2248, allocations: 53.4 MB / 431.1 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01233/0.2371, allocations: 9.117 MB / 440.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007801/0.2449, allocations: 3.79 MB / 444.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.2462, allocations: 79.56 kB / 444.1 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00441/0.2506, allocations: 2.153 MB / 446.3 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004719/0.2554, allocations: 1.887 MB / 448.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001712/0.2571, allocations: 0.7448 MB / 448.9 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007102/0.2642, allocations: 5.264 MB / 454.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00356/0.2677, allocations: 2.396 MB / 456.6 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002629/0.2704, allocations: 1.507 MB / 458.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00343/0.2738, allocations: 2.095 MB / 460.2 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008418/0.2746, allocations: 300 kB / 460.5 MB, free: 8.949 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002361/0.277, allocations: 1.077 MB / 461.5 MB, free: 7.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002177/0.2792, allocations: 1.897 MB / 463.4 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002628/0.2818, allocations: 1.655 MB / 465.1 MB, free: 4.305 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007995/0.2898, allocations: 7.024 MB / 472.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.2898, allocations: 0 / 472.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2898, allocations: 0 / 472.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001951/0.29, allocations: 0 / 472.1 MB, free: 13.25 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.01323/0.3032, allocations: 4.971 MB / 477.1 MB, free: 8.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.3033, allocations: 11.98 kB / 477.1 MB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009302/0.3042, allocations: 0.6128 MB / 477.7 MB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1671/0.4713, allocations: 12.3 MB / 490 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009507/0.4808, allocations: 3.651 MB / 493.7 MB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/0.481, allocations: 193 kB / 493.9 MB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009147/0.4819, allocations: 271.8 kB / 494.1 MB, free: 7.113 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/0.4982, allocations: 8.83 MB / 0.4912 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002313/0.4984, allocations: 59.52 kB / 0.4912 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006343/0.4991, allocations: 127.9 kB / 0.4913 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003274/0.5023, allocations: 1.77 MB / 0.4931 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0156/0.5179, allocations: 7.499 MB / 0.5004 GB, free: 4.152 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0435/0.5614, allocations: 33.6 MB / 0.5332 GB, free: 1.578 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1871/0.7486, allocations: 3.097 MB / 0.5362 GB, free: 101.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002097/0.7507, allocations: 1.902 MB / 0.5381 GB, free: 100.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002861/0.7509, allocations: 92.75 kB / 0.5382 GB, free: 100.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.751, allocations: 55.5 kB / 0.5382 GB, free: 100.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 3.837e-06/0.751, allocations: 0 / 0.5382 GB, free: 100.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.04455/0.7955, allocations: 20.07 MB / 0.5578 GB, free: 89.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.7956, allocations: 260.6 kB / 0.5581 GB, free: 89.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003934/0.7995, allocations: 4.139 MB / 0.5621 GB, free: 85.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002776/0.7998, allocations: 57.61 kB / 0.5622 GB, free: 85.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.8009, allocations: 2.914 MB / 0.565 GB, free: 82.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004477/0.8013, allocations: 0.7611 MB / 0.5658 GB, free: 81.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/0.8024, allocations: 1.109 MB / 0.5669 GB, free: 80.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.592e-05/0.8024, allocations: 308.7 kB / 0.5671 GB, free: 80.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/0.8046, allocations: 2.167 MB / 0.5693 GB, free: 78.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003072/0.8077, allocations: 5.507 MB / 0.5746 GB, free: 71.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006269/0.814, allocations: 8.184 MB / 0.5826 GB, free: 61.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.068e-05/0.814, allocations: 32 kB / 0.5827 GB, free: 61.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01234/0.8264, allocations: 8.649 MB / 0.5911 GB, free: 52.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.293e-05/0.8264, allocations: 55.94 kB / 0.5912 GB, free: 52.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.898e-05/0.8265, allocations: 115.9 kB / 0.5913 GB, free: 52.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003543/0.83, allocations: 1.496 MB / 0.5927 GB, free: 51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00347/0.8335, allocations: 1.226 MB / 0.5939 GB, free: 49.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/0.8441, allocations: 9.741 MB / 0.6034 GB, free: 39.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004109/0.8482, allocations: 327.5 kB / 0.6038 GB, free: 39.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007425/0.849, allocations: 324 kB / 0.6041 GB, free: 39.28 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.00254/0.8515, allocations: 1.939 MB / 0.606 GB, free: 37.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007055/0.8522, allocations: 369.6 kB / 0.6063 GB, free: 36.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006368/0.8586, allocations: 4.131 MB / 0.6103 GB, free: 32.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-05/0.8586, allocations: 20 kB / 0.6104 GB, free: 32.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.8586, allocations: 8 kB / 0.6104 GB, free: 32.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.8586, allocations: 11.91 kB / 0.6104 GB, free: 32.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.8711, allocations: 8.797 MB / 0.619 GB, free: 23.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.8711, allocations: 0 / 0.619 GB, free: 23.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.8722, allocations: 275.7 kB / 0.6192 GB, free: 23.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003345/0.8756, allocations: 1.343 MB / 0.6205 GB, free: 22.37 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/0.8757, allocations: 35.98 kB / 0.6206 GB, free: 22.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009392/0.8851, allocations: 8.751 MB / 0.6291 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.8851, allocations: 0 / 0.6291 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008912/0.894, allocations: 7.036 MB / 0.636 GB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.8951, allocations: 345.4 kB / 0.6363 GB, free: 6.059 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004611/0.8955, allocations: 28 kB / 0.6364 GB, free: 6.031 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/0.897, allocations: 131.4 kB / 0.6365 GB, free: 5.906 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000325/0.8973, allocations: 117 kB / 0.6366 GB, free: 5.789 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.8975, allocations: 48 kB / 0.6366 GB, free: 5.742 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002705/0.9002, allocations: 2.501 MB / 0.6391 GB, free: 3.262 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9002, allocations: 0 / 0.6391 GB, free: 3.262 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003605/0.9038, allocations: 0.9921 MB / 0.6401 GB, free: 2.27 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.01119/0.915, allocations: 7.684 MB / 0.6476 GB, free: 10.55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008408/0.9234, allocations: 5.15 MB / 0.6526 GB, free: 5.406 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.9234, allocations: 0 / 0.6526 GB, free: 5.406 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003471/0.9269, allocations: 1.936 MB / 0.6545 GB, free: 3.465 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002865/0.9297, allocations: 0.496 MB / 0.655 GB, free: 2.969 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07166/1.001, allocations: 45.77 MB / 0.6997 GB, free: 228 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003582/1.005, allocations: 2.539 MB / 0.7021 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004444/1.009, allocations: 1.826 MB / 0.7039 GB, free: 11.83 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003049/1.012, allocations: 1.753 MB / 0.7056 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of SimCode: time 1.973e-06/1.012, allocations: 3.938 kB / 0.7056 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3168/1.329, allocations: 75.99 MB / 0.7799 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.56/17.89, allocations: 3.984 kB / 0.7799 GB, free: 148.3 MB / 0.5294 GB " [Timeout remaining time 642] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00059976 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/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_trunk_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: 20.576604686211795]